Class SchemaParsingContext

java.lang.Object
dev.harrel.jsonschema.SchemaParsingContext

public final class SchemaParsingContext extends Object
SchemaParsingContext class represents state of current schema parsing process. EvaluatorFactory can use this class for evaluator creation process.
See Also:
  • Method Details

    • getParentUri

      public URI 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

      public String getAbsoluteUri(JsonNode node)
      Calculates absolute URI to the provided JsonNode.
      See Also:
    • getAbsoluteUri

      public String getAbsoluteUri(String jsonPointer)
      Calculates absolute URI for the corresponding JSON pointer.
      Parameters:
      jsonPointer - JSON pointer string
      Returns:
      absolute URI
    • getCurrentSchemaObject

      public Map<String,JsonNode> getCurrentSchemaObject()
      Returns JSON object which is currently being parsed in form of map.
      Returns:
      unmodifiable map representing schema object