Constructor and Description |
---|
CombinedPredicate() |
Modifier and Type | Method and Description |
---|---|
void |
addPredicate(Predicate predicate)
Adds a predicate to the list of predicates.
|
java.lang.String |
getPath(SearchQuery query)
Unused method , combined predicate can't return path string.
|
java.util.List<Predicate> |
getPredicates()
Gets the
List of predicates combined. |
java.lang.String |
getQueryString(SearchQuery searchQuery)
Generates a specific query string depending on the predicate data.
|
boolean |
isAndOperator()
Returns whether the AND operation is applied or the OR operation is applied.
|
void |
setAndOperator(boolean isAndOperator)
Sets whether AND or OR operator should be applied.
|
void |
setPredicates(java.util.List<Predicate> predicates)
Sets the predicates for combining.
|
public boolean isAndOperator()
true
if the AND operator is applied and false
for an OR operatorpublic void setAndOperator(boolean isAndOperator)
isAndOperator
- If true
, AND operator is applied and if false
, OR operator is appliedpublic java.util.List<Predicate> getPredicates()
List
of predicates combined.List
of Predicate
objects combinedpublic void setPredicates(java.util.List<Predicate> predicates)
predicates
- the List
Predicate
objects to setpublic void addPredicate(Predicate predicate)
predicate
- The Predicate
to addpublic java.lang.String getPath(SearchQuery query)
query
- The SearchQuery
instancenull
alwayspublic java.lang.String getQueryString(SearchQuery searchQuery) throws CSAppFrameworkException
Predicate
getQueryString
in interface Predicate
searchQuery
- The SearchQuery
objectCSAppFrameworkException
- If an error occurs while obtaining the query string