public class KeywordCriteria extends Criteria
EQUAL, GREATER_OR_EQUAL_THAN, GREATER_THAN, LESS_OR_EQUAL_THAN, LESS_THAN, LIKE, NOT_EQUAL
Constructor and Description |
---|
KeywordCriteria(String categoryName,
String keyword)
Constructs a KeywordCriteria for the specified category name and keyword.
|
KeywordCriteria(String categoryName,
String[] keywords)
Constructs a KeywordCriteria for the specified category name and list of keywords.
|
KeywordCriteria(String categoryName,
String[] keywords,
FieldOperator operator)
Constructs a Criteria, with specifying operator for it.
|
KeywordCriteria(String categoryName,
String keyword,
FieldOperator operator)
Constructs a KeywordCriteria for the specified category name, keyword and operator.
|
Modifier and Type | Method and Description |
---|---|
String |
getCategoryName()
Returns category name.
|
List<String> |
getKeywords()
Returns keywords.
|
protected String |
getSignature() |
protected boolean |
isLikeOperatorApplicable()
Like operator is applicable to this criteria.
|
String |
toString()
Returns string presentation of the criteria.
|
addCriteria, getCriteriaChildren, getCriteriaName, getFieldOperatorAsString, getParentOperator, hasAnyCriteria, isOperator, setParentOperator
public KeywordCriteria(String categoryName, String[] keywords)
categoryName
- Category namekeywords
- array of keywordspublic KeywordCriteria(String categoryName, String[] keywords, FieldOperator operator)
categoryName
- Category namekeywords
- List of keywordsoperator
- Operator for criteriapublic KeywordCriteria(String categoryName, String keyword)
categoryName
- category namepublic KeywordCriteria(String categoryName, String keyword, FieldOperator operator)
categoryName
- Criteria namekeyword
- keywordoperator
- Operator for criteriapublic String getCategoryName()
protected boolean isLikeOperatorApplicable()
isLikeOperatorApplicable
in class Criteria
public String toString()
protected String getSignature()
getSignature
in class Criteria
Copyright (c) 2014-2021 All Rights Reserved by the RWS Group for and on behalf of its affiliates and subsidiaries