public interface EvaluationContext
EvaluationContext
is a helper class that provides access to
various elements required for PredicateEvaluators
during the query evaluation process.Modifier and Type | Method and Description |
---|---|
java.lang.Object |
get(java.lang.String key)
Retrieves an object that is temporarily stored during the current
evaluation.
|
Node |
getNode(Row row)
|
java.lang.String |
getPath(Row row)
Helper method for returning the path behind a row.
|
PredicateEvaluator |
getPredicateEvaluator(java.lang.String type)
Retrieves a
PredicateEvaluator for the given type. |
Resource |
getResource(Row row)
Helper method that returns the resource for the given row.
|
ResourceResolver |
getResourceResolver()
Returns a (jcr) resource resolver based on the current session.
|
Session |
getSession()
Returns the session under which the
Query runs. |
void |
put(java.lang.String key,
java.lang.Object value)
Allows to store any object temporarily for the current evaluation.
|
PredicateEvaluator getPredicateEvaluator(java.lang.String type)
PredicateEvaluator
for the given type.ResourceResolver getResourceResolver()
Node getNode(Row row)
Node
behind
a Row
. This method will be obsolete with JCR 2.0, where the
new Row.getNode()
method will be available.getPath(Row)
,
getResource(Row)
java.lang.String getPath(Row row)
null
will be returned.getNode(Row)
,
getResource(Row)
Resource getResource(Row row)
getPath(Row)
,
getNode(Row)
void put(java.lang.String key, java.lang.Object value)
key
- unique key for the valuevalue
- any object or null
to remove the entry under keyget(String)
java.lang.Object get(java.lang.String key)
key
- unique key for the valuenull
if there is no value stored
under the given keyput(String, Object)
Copyright © 2010 - 2020 Adobe. All Rights Reserved