Class JSONPointer.QueryResult

  • Enclosing class:
    JSONPointer

    public static class JSONPointer.QueryResult
    extends java.lang.Object
    Data-transfer object for holding the result of a JSON pointer query.
    • Constructor Summary

      Constructors 
      Constructor Description
      QueryResult​(org.json.JSONObject containingDocument, org.json.JSONObject queryResult)
      Constructor.
    • Method Summary

      Modifier and Type Method Description
      org.json.JSONObject getContainingDocument()
      Getter for containingDocument.
      org.json.JSONObject getQueryResult()
      Getter for queryResult.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • QueryResult

        public QueryResult​(org.json.JSONObject containingDocument,
                           org.json.JSONObject queryResult)
        Constructor.
        Parameters:
        containingDocument - the JSON document which contains the query result.
        queryResult - the JSON object being the result of the query execution.
    • Method Detail

      • getContainingDocument

        public org.json.JSONObject getContainingDocument()
        Getter for containingDocument.
        Returns:
        the JSON document which contains the query result.
      • getQueryResult

        public org.json.JSONObject getQueryResult()
        Getter for queryResult.
        Returns:
        the JSON object being the result of the query execution.