public class EvaluationContextImpl extends Object implements EvaluationContext
| Constructor and Description |
|---|
EvaluationContextImpl(Path path,
Object rootDocument,
Configuration configuration,
boolean forUpdate) |
| Modifier and Type | Method and Description |
|---|---|
void |
addResult(String path,
PathRef operation,
Object model) |
Configuration |
configuration() |
HashMap<Path,Object> |
documentEvalCache() |
boolean |
forUpdate() |
<T> T |
getPath()
Returns the list of formalized paths that represent the result of the evaluation
|
List<String> |
getPathList()
Convenience method to get list of hits as String path representations
|
<T> T |
getValue()
This method does not adhere to configuration settings.
|
<T> T |
getValue(boolean unwrap)
|
JsonProvider |
jsonProvider() |
Set<Option> |
options() |
Object |
rootDocument()
The json document that is evaluated
|
Collection<PathRef> |
updateOperations() |
public EvaluationContextImpl(Path path, Object rootDocument, Configuration configuration, boolean forUpdate)
public boolean forUpdate()
public JsonProvider jsonProvider()
public Configuration configuration()
configuration in interface EvaluationContextpublic Object rootDocument()
EvaluationContextrootDocument in interface EvaluationContextpublic 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 List<String> getPathList()
EvaluationContextgetPathList in interface EvaluationContextCopyright © 2016. All rights reserved.