Class JSONPointer


  • @Deprecated
    public class JSONPointer
    extends java.lang.Object
    Deprecated.
    JSON pointer implementation.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  JSONPointer.QueryResult
      Deprecated.
      Data-transfer object for holding the result of a JSON pointer query.
    • Constructor Summary

      Constructors 
      Constructor Description
      JSONPointer​(java.util.function.Supplier<org.json.JSONObject> documentProvider, java.lang.String fragment)
      Deprecated.
    • Method Summary

      Modifier and Type Method Description
      static JSONPointer forDocument​(org.json.JSONObject document, java.lang.String fragment)
      Deprecated.
      static JSONPointer forURL​(SchemaClient schemaClient, java.lang.String url)
      Deprecated.
      JSONPointer.QueryResult query()
      Deprecated.
      Queries from document based on this pointer.
      • Methods inherited from class java.lang.Object

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

      • JSONPointer

        @Deprecated
        public JSONPointer​(java.util.function.Supplier<org.json.JSONObject> documentProvider,
                           java.lang.String fragment)
        Deprecated.
    • Method Detail

      • forDocument

        @Deprecated
        public static final JSONPointer forDocument​(org.json.JSONObject document,
                                                    java.lang.String fragment)
        Deprecated.
      • forURL

        @Deprecated
        public static final JSONPointer forURL​(SchemaClient schemaClient,
                                               java.lang.String url)
        Deprecated.
        Static factory method.
        Parameters:
        schemaClient - the client implementation to be used for obtaining the remote raw JSON schema
        url - a complete URL (including protocol definition like "http://"). It may also contain a fragment
        Returns:
        a JSONPointer instance with a document provider created for the URL and the optional fragment specified by the url
      • query

        public JSONPointer.QueryResult query()
        Deprecated.
        Queries from document based on this pointer.
        Returns:
        a DTO containing the query result and the root document containing the query result.
        Throws:
        java.lang.IllegalArgumentException - if the pointer does not start with '#'.