Package dev.harrel.jsonschema
Class SchemaParsingContext
java.lang.Object
dev.harrel.jsonschema.SchemaParsingContext
SchemaParsingContext
class represents state of current schema parsing process.
EvaluatorFactory
can use this class for evaluator creation process.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetAbsoluteUri
(JsonNode node) Calculates absolute URI to the providedJsonNode
.getAbsoluteUri
(String jsonPointer) Calculates absolute URI for the corresponding JSON pointer.Returns JSON object which is currently being parsed in form of map.Returns URI of the closest parent schema that contains $id keyword.
-
Method Details
-
getParentUri
Returns URI of the closest parent schema that contains $id keyword. If there is no such parent, then the URI of root schema is returned. -
getAbsoluteUri
Calculates absolute URI to the providedJsonNode
.- See Also:
-
getAbsoluteUri
Calculates absolute URI for the corresponding JSON pointer.- Parameters:
jsonPointer
- JSON pointer string- Returns:
- absolute URI
-
getCurrentSchemaObject
Returns JSON object which is currently being parsed in form of map.- Returns:
- unmodifiable map representing schema object
-