Interface EvaluationContext
- All Known Implementing Classes:
EvaluationContextImpl
public interface EvaluationContext
-
Method Summary
Modifier and TypeMethodDescription<T> TgetPath()Returns the list of formalized paths that represent the result of the evaluationConvenience method to get list of hits as String path representations<T> TgetValue()This method does not adhere to configuration settings.<T> TgetValue(boolean unwrap) SeegetValue()The json document that is evaluated
-
Method Details
-
configuration
Configuration configuration()- Returns:
- the configuration used for this evaluation
-
rootDocument
-
getValue
<T> T getValue()This method does not adhere to configuration settings. It will return a single object (not wrapped in a List) even if the configuration contains theOption.ALWAYS_RETURN_LIST- Type Parameters:
T- expected return type- Returns:
- evaluation result
-
getValue
<T> T getValue(boolean unwrap) SeegetValue()- Type Parameters:
T- expected return type- Parameters:
unwrap- tells th underlying json provider if primitives should be unwrapped- Returns:
- evaluation result
-
getPath
<T> T getPath()Returns the list of formalized paths that represent the result of the evaluation- Type Parameters:
T-- Returns:
- list of paths
-
getPathList
-
updateOperations
Collection<PathRef> updateOperations()
-