|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.stardust.engine.api.query.FilterTerm
public abstract class FilterTerm
Filter criterion providing filter criteria groups. Grouped can be built by either
ANDing or ORing the contained criteria.
For convenience there exist subclasses FilterAndTerm and
FilterOrTerm providing smoother handling.
| Nested Class Summary | |
|---|---|
static class |
FilterTerm.Kind
Enumeration for filter term kind definition. |
| Field Summary | |
|---|---|
static FilterTerm.Kind |
AND
Constant marking AND-terms. |
static FilterTerm.Kind |
ANDNOT
Constant marking AND NOT -terms. |
static FilterTerm.Kind |
OR
Constant marking OR-terms. |
static FilterTerm.Kind |
ORNOT
Constant marking OR NOT-terms. |
| Method Summary | |
|---|---|
Object |
accept(FilterEvaluationVisitor visitor,
Object context)
Visitor dispatch callback used for evaluating filter criteria. |
FilterTerm |
add(FilterCriterion filter)
Adds the given filter to the list of criteria. |
org.eclipse.stardust.engine.api.query.FilterAndNotTerm |
addAndNotTerm()
Creates a new AND NOT-term and adds it to callee term. |
FilterAndTerm |
addAndTerm()
Creates a new AND-term and adds it to callee term. |
org.eclipse.stardust.engine.api.query.FilterOrNotTerm |
addOrNotTerm()
Creates a new OR NOT-term and adds and adds it to callee term. |
FilterOrTerm |
addOrTerm()
Creates a new OR-term and adds and adds it to callee term. |
FilterTerm.Kind |
getKind()
Gets the kind of this filter term. |
List |
getParts()
Gets the list of filter criteria this term contains. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final FilterTerm.Kind AND
ORpublic static final FilterTerm.Kind OR
ANDpublic static final FilterTerm.Kind ORNOT
ANDpublic static final FilterTerm.Kind ANDNOT
AND| Method Detail |
|---|
public FilterTerm.Kind getKind()
AND or OR.public List getParts()
public FilterTerm add(FilterCriterion filter)
throws UnsupportedFilterException
filter - The filter criterion to add.
UnsupportedFilterException - if the filter criterion to be added is not valid
for thes query this filter term belongs topublic FilterAndTerm addAndTerm()
public FilterOrTerm addOrTerm()
public org.eclipse.stardust.engine.api.query.FilterAndNotTerm addAndNotTerm()
public org.eclipse.stardust.engine.api.query.FilterOrNotTerm addOrNotTerm()
public Object accept(FilterEvaluationVisitor visitor,
Object context)
FilterCriterionreturn visitor.visit(this, context), thus calling the appropriately
overloaded visitation method.
accept in interface FilterCriterionvisitor - The visitor performing the evaluation.context - Information used by the visitor during the visitation process.
public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||