|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An ExpressionEvaluator
is used to implement a query expression evaluation of a
ResourcePropertySet
. An evaluator can be registered with a QueryEngine
, which in turn calls
the evaluator when a matching expression is found.
ResourcePropertySet
,
QueryEngine
Method Summary | |
java.lang.Object |
evaluate(QueryExpression queryExpr,
ResourcePropertySet resourcePropertySet,
org.w3c.dom.Element nsContext)
Evaluates the expression over a ResourcePropertySet and returns the result. |
java.net.URI[] |
getSupportedDialects()
Gets the list of dialects that this evaluator can handle. |
Method Detail |
public java.net.URI[] getSupportedDialects()
public java.lang.Object evaluate(QueryExpression queryExpr, ResourcePropertySet resourcePropertySet, org.w3c.dom.Element nsContext) throws UnknownQueryExpressionDialectException, QueryEvaluationErrorException, InvalidQueryExpressionException
queryExpr
- object passed by client representing query expression.resourcePropertySet
- ResourcePropertySet associated with resource. The expression is evaluated against this
set.
SOAPElment
or DOM Element
. If the result
object returned is null an empty query result is returned.
UnknownQueryExpressionDialectException
- if query dialect is unsupported
QueryEvaluationErrorException
- if query evaluation fails
InvalidQueryExpressionException
- if query expression is invalid
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |