Class JSONPointer
java.lang.Object
org.everit.json.schema.loader.internal.JSONPointer
Deprecated.
JSON pointer implementation.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDeprecated.Data-transfer object for holding the result of a JSON pointer query. -
Constructor Summary
ConstructorsConstructorDescriptionJSONPointer(Supplier<org.json.JSONObject> documentProvider, String fragment) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionstatic final JSONPointerforDocument(org.json.JSONObject document, String fragment) Deprecated.static final JSONPointerforURL(SchemaClient schemaClient, String url) Deprecated.query()Deprecated.Queries fromdocumentbased on this pointer.
-
Constructor Details
-
JSONPointer
Deprecated.
-
-
Method Details
-
forDocument
@Deprecated public static final JSONPointer forDocument(org.json.JSONObject document, String fragment) Deprecated. -
forURL
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
Deprecated.Queries fromdocumentbased 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'#'.
-