Class JSONPointer
- java.lang.Object
-
- org.everit.json.schema.loader.internal.JSONPointer
-
@Deprecated public class JSONPointer extends 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(Supplier<org.json.JSONObject> documentProvider, String fragment)
Deprecated.
-
Method Summary
Modifier and Type Method Description static JSONPointer
forDocument(org.json.JSONObject document, String fragment)
Deprecated.static JSONPointer
forURL(SchemaClient schemaClient, String url)
Deprecated.JSONPointer.QueryResult
query()
Deprecated.Queries fromdocument
based on this pointer.
-
-
-
Constructor Detail
-
JSONPointer
@Deprecated public JSONPointer(Supplier<org.json.JSONObject> documentProvider, String fragment)
Deprecated.
-
-
Method Detail
-
forDocument
@Deprecated public static final JSONPointer forDocument(org.json.JSONObject document, String fragment)
Deprecated.
-
forURL
@Deprecated public static final JSONPointer forURL(SchemaClient schemaClient, String url)
Deprecated.Static factory method.- Parameters:
schemaClient
- the client implementation to be used for obtaining the remote raw JSON schemaurl
- 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 fromdocument
based on this pointer.- Returns:
- a DTO containing the query result and the root document containing the query result.
- Throws:
IllegalArgumentException
- if the pointer does not start with'#'
.
-
-