public class Filter
extends java.lang.Object
Filter f = new Filter(Conjunct.OR);
f.add("username", Operator.EQ, "root");
f.add("username", Operator.STARTS_WITH, "adm_");
f.add("username", Operator.EQ, "adm_notReallyAnAdmin", true);
| Modifier and Type | Class and Description |
|---|---|
static class |
Filter.Conjunct
An enumeration of conjunctions for a composite filter.
|
static class |
Filter.Operator
An enumeration of operators for filter criteria.
|
| Constructor and Description |
|---|
Filter()
Constructor for an AND filter.
|
Filter(Filter.Conjunct conjunct)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.lang.String property,
Filter.Operator op,
java.lang.Object value)
Add the given criteria to this filter.
|
void |
add(java.lang.String property,
Filter.Operator op,
java.lang.Object value,
boolean negate)
Add the given criteria to this filter.
|
Filter.Conjunct |
getConjunct() |
java.util.List<Filter> |
getFilters() |
Filter.Operator |
getOp() |
java.lang.String |
getProperty() |
java.lang.Object |
getValue() |
boolean |
isNegate() |
public Filter()
public Filter(Filter.Conjunct conjunct)
conjunct - The Conjunct to use for this filter.public void add(java.lang.String property,
Filter.Operator op,
java.lang.Object value)
public void add(java.lang.String property,
Filter.Operator op,
java.lang.Object value,
boolean negate)
public java.util.List<Filter> getFilters()
public Filter.Conjunct getConjunct()
public java.lang.String getProperty()
public Filter.Operator getOp()
public java.lang.Object getValue()
public boolean isNegate()