Package io.zerocopy.json.schema.context
Class SchemaResolutionContext
- java.lang.Object
-
- io.zerocopy.json.schema.context.SchemaResolutionContext
-
public class SchemaResolutionContext extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description SchemaResolutionContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()java.net.URIgetDefaultSchemaVersion()DocumentLoadergetDocumentLoader()java.net.URIgetFullId()com.fasterxml.jackson.databind.ObjectMappergetObjectMapper()java.net.URIgetUpperId()SchemaReferenceloadRemoteSchema(com.fasterxml.jackson.databind.JsonNode rootNode, java.net.URI schemaLocation)JsonSchemaV7mapSchema(com.fasterxml.jackson.databind.JsonNode node)voidpopSchemaNode(com.fasterxml.jackson.databind.JsonNode rootNode, com.fasterxml.jackson.core.JsonPointer jsonPointer, com.fasterxml.jackson.databind.JsonNode node)voidpopSchemaNode(com.fasterxml.jackson.databind.JsonNode rootNode, java.lang.String path, com.fasterxml.jackson.databind.JsonNode node)voidpopSchemaNode(com.fasterxml.jackson.databind.JsonNode rootNode, java.util.List<java.lang.String> path, com.fasterxml.jackson.databind.JsonNode node)voidpopSchemaNode(SchemaReference schemaReference)voidpopSchemaReference(SchemaReference schemaReference)JsonSchemaV7pushSchemaNode(com.fasterxml.jackson.databind.JsonNode rootNode, com.fasterxml.jackson.core.JsonPointer jsonPointer, com.fasterxml.jackson.databind.JsonNode node, boolean requireSchema)JsonSchemaV7pushSchemaNode(com.fasterxml.jackson.databind.JsonNode rootNode, java.lang.String path, com.fasterxml.jackson.databind.JsonNode node, boolean requireSchema)JsonSchemaV7pushSchemaNode(com.fasterxml.jackson.databind.JsonNode rootNode, java.util.List<java.lang.String> path, com.fasterxml.jackson.databind.JsonNode node, boolean requireSchema)JsonSchemaV7pushSchemaNode(SchemaReference schemaReference, boolean requireSchema)JsonSchemaV7pushSchemaReference(SchemaReference schemaReference)SchemaReferenceresolveSchema(com.fasterxml.jackson.databind.JsonNode rootNode, com.fasterxml.jackson.databind.JsonNode schemaNode, java.lang.String ref, java.util.List<java.lang.String> refPathOut, boolean noRecurse)voidsetDefaultSchemaVersion(java.net.URI defaultSchemaVersion)voidsetDocumentLoader(DocumentLoader documentLoader)
-
-
-
Method Detail
-
getDefaultSchemaVersion
public java.net.URI getDefaultSchemaVersion()
-
setDefaultSchemaVersion
public void setDefaultSchemaVersion(java.net.URI defaultSchemaVersion)
-
getDocumentLoader
public DocumentLoader getDocumentLoader()
-
setDocumentLoader
public void setDocumentLoader(DocumentLoader documentLoader)
-
getObjectMapper
public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
-
pushSchemaNode
public JsonSchemaV7 pushSchemaNode(com.fasterxml.jackson.databind.JsonNode rootNode, java.lang.String path, com.fasterxml.jackson.databind.JsonNode node, boolean requireSchema)
-
pushSchemaNode
public JsonSchemaV7 pushSchemaNode(com.fasterxml.jackson.databind.JsonNode rootNode, java.util.List<java.lang.String> path, com.fasterxml.jackson.databind.JsonNode node, boolean requireSchema)
-
pushSchemaNode
public JsonSchemaV7 pushSchemaNode(com.fasterxml.jackson.databind.JsonNode rootNode, com.fasterxml.jackson.core.JsonPointer jsonPointer, com.fasterxml.jackson.databind.JsonNode node, boolean requireSchema)
-
pushSchemaNode
public JsonSchemaV7 pushSchemaNode(SchemaReference schemaReference, boolean requireSchema)
-
popSchemaNode
public void popSchemaNode(com.fasterxml.jackson.databind.JsonNode rootNode, java.lang.String path, com.fasterxml.jackson.databind.JsonNode node)
-
popSchemaNode
public void popSchemaNode(com.fasterxml.jackson.databind.JsonNode rootNode, java.util.List<java.lang.String> path, com.fasterxml.jackson.databind.JsonNode node)
-
popSchemaNode
public void popSchemaNode(com.fasterxml.jackson.databind.JsonNode rootNode, com.fasterxml.jackson.core.JsonPointer jsonPointer, com.fasterxml.jackson.databind.JsonNode node)
-
popSchemaNode
public void popSchemaNode(SchemaReference schemaReference)
-
pushSchemaReference
public JsonSchemaV7 pushSchemaReference(SchemaReference schemaReference)
-
popSchemaReference
public void popSchemaReference(SchemaReference schemaReference)
-
getUpperId
public java.net.URI getUpperId()
-
getFullId
public java.net.URI getFullId()
-
clear
public void clear()
-
mapSchema
public JsonSchemaV7 mapSchema(com.fasterxml.jackson.databind.JsonNode node)
-
resolveSchema
public SchemaReference resolveSchema(com.fasterxml.jackson.databind.JsonNode rootNode, com.fasterxml.jackson.databind.JsonNode schemaNode, java.lang.String ref, java.util.List<java.lang.String> refPathOut, boolean noRecurse) throws java.io.IOException
- Throws:
java.io.IOException
-
loadRemoteSchema
public SchemaReference loadRemoteSchema(com.fasterxml.jackson.databind.JsonNode rootNode, java.net.URI schemaLocation) throws java.io.IOException
- Throws:
java.io.IOException
-
-