|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.filter.OperatorFilter
public class OperatorFilter
Filter
that selects objects that test positively against Operator
-based expressions.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.deegree.filter.Filter |
---|
Filter.Type |
Constructor Summary | |
---|---|
OperatorFilter(Operator rootOperator)
Creates a new OperatorFilter . |
Method Summary | ||
---|---|---|
|
evaluate(T obj,
XPathEvaluator<T> xpathEvaluator)
Determines if the given object matches this Filter . |
|
Operator |
getOperator()
Returns the root Operator of the test expression. |
|
Filter.Type |
getType()
Always returns Filter.Type.OPERATOR_FILTER (for OperatorFilter instances). |
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public OperatorFilter(Operator rootOperator)
OperatorFilter
.
rootOperator
- root operator that defines the test expressionMethod Detail |
---|
public Filter.Type getType()
Filter.Type.OPERATOR_FILTER
(for OperatorFilter
instances).
getType
in interface Filter
Filter.Type.OPERATOR_FILTER
public Operator getOperator()
Operator
of the test expression.
public <T> boolean evaluate(T obj, XPathEvaluator<T> xpathEvaluator) throws FilterEvaluationException
Filter
Filter
.
evaluate
in interface Filter
T
- type of the context objectobj
- object that the operator is evaluated upon, must not be null
xpathEvaluator
- used for evaluation of XPath expressions, must not be null
FilterEvaluationException
- if the evaluation failspublic String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |