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 EvaluationContext
public Object rootDocument()
EvaluationContext
rootDocument
in interface EvaluationContext
public Collection<PathRef> updateOperations()
updateOperations
in interface EvaluationContext
public <T> T getValue()
EvaluationContext
Option.ALWAYS_RETURN_LIST
getValue
in interface EvaluationContext
T
- expected return typepublic <T> T getValue(boolean unwrap)
EvaluationContext
getValue
in interface EvaluationContext
T
- expected return typeunwrap
- tells th underlying json provider if primitives should be unwrappedpublic <T> T getPath()
EvaluationContext
getPath
in interface EvaluationContext
public List<String> getPathList()
EvaluationContext
getPathList
in interface EvaluationContext
Copyright © 2020. All rights reserved.