|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Operator
Operator instances are predicates and the building blocks of OperatorFilters. They may be nested
recursively -- an argument of an Operator can be another Operator so they form a tree structure that
can be evaluated by traversing it.
| Nested Class Summary | |
|---|---|
static class |
Operator.Type
Convenience enum type for discriminating the different operator types. |
| Method Summary | ||
|---|---|---|
|
evaluate(T obj,
XPathEvaluator<T> xpathEvaluator)
Determines the value of the boolean operator. |
|
Operator.Type |
getType()
Returns the type of operator. |
|
String |
toString(String indent)
|
|
| Method Detail |
|---|
Operator.Type getType()
Operator.
<T> boolean evaluate(T obj,
XPathEvaluator<T> xpathEvaluator)
throws FilterEvaluationException
T - type of the context objectobj - object that the operator is evaluated upon, must not be nullxpathEvaluator - used for evaluation of XPath expressions, must not be null
FilterEvaluationException - if the evaluation failsString toString(String indent)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||