|
|||||||||||
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,
java.lang.Object evalContext)
Evaluates the expression over the specified context object and returns the result. |
java.lang.Object |
evaluate(QueryExpression queryExpr,
ResourcePropertySet resourcePropertySet)
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) throws UnknownQueryExpressionDialectException, QueryEvaluationErrorException, InvalidQueryExpressionException
queryExpr
- the query expression to evaluateresourcePropertySet
- a WSRF resource property set to be used as the evaluation context
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 invalidpublic java.lang.Object evaluate(QueryExpression queryExpr, java.lang.Object evalContext) throws UnknownQueryExpressionDialectException, QueryEvaluationErrorException, InvalidQueryExpressionException
queryExpr
- the query expression to evaluateevalContext
- the XPath evaluation context; can be any object that represents
an XML InfoSet item (e.g. a DOM Node
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 |