public class EvaluationContextImpl extends java.lang.Object implements EvaluationContext
| Constructor and Description |
|---|
EvaluationContextImpl(Path path,
java.lang.Object rootDocument,
Configuration configuration,
boolean forUpdate) |
| Modifier and Type | Method and Description |
|---|---|
void |
addResult(java.lang.String path,
PathRef operation,
java.lang.Object model) |
Configuration |
configuration() |
java.util.HashMap<Path,java.lang.Object> |
documentEvalCache() |
boolean |
forUpdate() |
<T> T |
getPath()
Returns the list of formalized paths that represent the result of the evaluation
|
java.util.List<java.lang.String> |
getPathList()
Convenience method to get list of hits as String path representations
|
RootPathToken |
getRoot() |
<T> T |
getValue()
This method does not adhere to configuration settings.
|
<T> T |
getValue(boolean unwrap)
|
JsonProvider |
jsonProvider() |
java.util.Set<Option> |
options() |
java.lang.Object |
rootDocument()
The json document that is evaluated
|
java.util.Collection<PathRef> |
updateOperations() |
public EvaluationContextImpl(Path path, java.lang.Object rootDocument, Configuration configuration, boolean forUpdate)
public RootPathToken getRoot()
public java.util.HashMap<Path,java.lang.Object> documentEvalCache()
public boolean forUpdate()
public void addResult(java.lang.String path,
PathRef operation,
java.lang.Object model)
public JsonProvider jsonProvider()
public java.util.Set<Option> options()
public Configuration configuration()
configuration in interface EvaluationContextpublic java.lang.Object rootDocument()
EvaluationContextrootDocument in interface EvaluationContextpublic java.util.Collection<PathRef> updateOperations()
updateOperations in interface EvaluationContextpublic <T> T getValue()
EvaluationContextOption.ALWAYS_RETURN_LISTgetValue in interface EvaluationContextT - expected return typepublic <T> T getValue(boolean unwrap)
EvaluationContextgetValue in interface EvaluationContextT - expected return typeunwrap - tells th underlying json provider if primitives should be unwrappedpublic <T> T getPath()
EvaluationContextgetPath in interface EvaluationContextpublic java.util.List<java.lang.String> getPathList()
EvaluationContextgetPathList in interface EvaluationContext