Interface EvaluationContext

All Known Implementing Classes:
EvaluationContextImpl

public interface EvaluationContext
  • Method Details

    • configuration

      Configuration configuration()
      Returns:
      the configuration used for this evaluation
    • rootDocument

      Object rootDocument()
      The json document that is evaluated
      Returns:
      the document
    • 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 the Option.ALWAYS_RETURN_LIST
      Type Parameters:
      T - expected return type
      Returns:
      evaluation result
    • getValue

      <T> T getValue(boolean unwrap)
      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

      List<String> getPathList()
      Convenience method to get list of hits as String path representations
      Returns:
      list of path representations
    • updateOperations

      Collection<PathRef> updateOperations()