public class ListingPredicate extends Object
| Constructor and Description |
|---|
ListingPredicate()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPredicate(ListingPredicate listingPredicate)
Adds a child predicate
|
ListingPredicate |
and()
Makes this a conjunctive predicate
|
ListingPredicate |
filter(String attribute,
String filter)
Makes this a predicate
|
String |
getAttribute() |
String |
getFilter() |
List<ListingPredicate> |
getPredicates() |
boolean |
hasPredicates()
Has child predicates
|
ListingPredicate |
in()
Makes this a IN statement predicate by providing an filter of values conjuncted by pipes ("|")
|
boolean |
isDisjunctive() |
boolean |
isIn() |
boolean |
isNegation() |
ListingPredicate |
not()
Makes this a negated predicate
|
ListingPredicate |
or()
Makes this a disjunctive predicate
|
ListingPredicate |
predicate(ListingPredicate predicate)
Adds this a child predicate
|
ListingPredicate |
predicates(List<ListingPredicate> predicates)
Makes this a set of predicates
|
void |
setAttribute(String attribute) |
void |
setDisjunctive(boolean disjunctive) |
void |
setFilter(String filter) |
void |
setIn(boolean in) |
void |
setNegation(boolean negation) |
void |
setPredicates(List<ListingPredicate> predicates) |
String |
toString() |
public ListingPredicate and()
public ListingPredicate or()
public ListingPredicate not()
public ListingPredicate in()
public ListingPredicate filter(String attribute, String filter)
attribute - target attributefilter - filter valuepublic ListingPredicate predicate(ListingPredicate predicate)
predicate - filter predicatepublic ListingPredicate predicates(List<ListingPredicate> predicates)
predicates - filter predicatespublic void addPredicate(ListingPredicate listingPredicate)
listingPredicate - child predicatepublic boolean hasPredicates()
true if child predicate list is not null or empty, false otherwisepublic String getAttribute()
public void setAttribute(String attribute)
public String getFilter()
public void setFilter(String filter)
public boolean isIn()
public void setIn(boolean in)
public boolean isDisjunctive()
public void setDisjunctive(boolean disjunctive)
public boolean isNegation()
public void setNegation(boolean negation)
public List<ListingPredicate> getPredicates()
public void setPredicates(List<ListingPredicate> predicates)
Copyright © 2017–2019 coodoo GmbH. All rights reserved.