public static class Category.NameSelector extends java.lang.Object implements DataSelector
This selector can also be used to select category through their synonyms by using
constructor Category.NameSelector(String, String, boolean)
with
second argument set to true.
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
lang |
protected boolean |
searchInSynonyms |
protected java.lang.String |
text |
REVISION
Constructor and Description |
---|
NameSelector(java.lang.String text)
Builds a new NameSelector to select categories matching the specified text.
|
NameSelector(java.lang.String text,
java.lang.String lang)
Builds a new NameSelector to select categories matching the specified text in the specified language.
|
NameSelector(java.lang.String text,
java.lang.String lang,
boolean searchInSynonyms)
Builds a new NameSelector to select categories matching the specified text in the specified language.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isSelected(Data data)
Evaluates if a data must be selected or not.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
test
protected java.lang.String text
protected java.lang.String lang
protected boolean searchInSynonyms
public NameSelector(java.lang.String text)
Selection is performed against the name of the category in the default site language, without searching in synonyms.
text
- the text to search, if null or empty, no category will be selectedpublic NameSelector(java.lang.String text, java.lang.String lang)
Selection is performed without searching in synonyms.
text
- the text to search, if null or empty, no category will be selectedlang
- the language of the Category's name in which the text should be checked,
if null or empty, the default site language is usedpublic NameSelector(java.lang.String text, java.lang.String lang, boolean searchInSynonyms)
text
- the text to search, if null or empty, no category will be selectedlang
- the language of the Category's name in which the text should be checked
if null or empty, the default site language is usedsearchInSynonyms
- set to true to also perform text selection in synonymspublic boolean isSelected(Data data)
DataSelector
isSelected
in interface DataSelector
data
- the data to evaluate.Copyright © 2001-2017 Jalios SA. All Rights Reserved.