Package com.networknt.schema
Class ValidationContext
- java.lang.Object
-
- com.networknt.schema.ValidationContext
-
public class ValidationContext extends Object
-
-
Constructor Summary
Constructors Constructor Description ValidationContext(URIFactory uriFactory, URNFactory urnFactory, JsonMetaSchema metaSchema, JsonSchemaFactory jsonSchemaFactory, SchemaValidatorsConfig config)
ValidationContext(URIFactory uriFactory, URNFactory urnFactory, JsonMetaSchema metaSchema, JsonSchemaFactory jsonSchemaFactory, SchemaValidatorsConfig config, ConcurrentMap<String,JsonSchema> schemaReferences, ConcurrentMap<String,JsonSchema> schemaResources)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<SpecVersion.VersionFlag>
activeDialect()
SchemaValidatorsConfig
getConfig()
JsonSchemaFactory
getJsonSchemaFactory()
JsonMetaSchema
getMetaSchema()
ConcurrentMap<String,JsonSchema>
getSchemaReferences()
Gets the schema references identified by the ref uri.ConcurrentMap<String,JsonSchema>
getSchemaResources()
Gets the schema resources identified by id.URIFactory
getURIFactory()
URNFactory
getURNFactory()
JsonSchema
newSchema(SchemaLocation schemaLocation, JsonNodePath evaluationPath, com.fasterxml.jackson.databind.JsonNode schemaNode, JsonSchema parentSchema)
JsonSchema
newSchema(SchemaLocation schemaLocation, JsonNodePath evaluationPath, URI currentUri, com.fasterxml.jackson.databind.JsonNode schemaNode, JsonSchema parentSchema)
JsonValidator
newValidator(SchemaLocation schemaLocation, JsonNodePath evaluationPath, String keyword, com.fasterxml.jackson.databind.JsonNode schemaNode, JsonSchema parentSchema)
String
resolveSchemaId(com.fasterxml.jackson.databind.JsonNode schemaNode)
-
-
-
Constructor Detail
-
ValidationContext
public ValidationContext(URIFactory uriFactory, URNFactory urnFactory, JsonMetaSchema metaSchema, JsonSchemaFactory jsonSchemaFactory, SchemaValidatorsConfig config)
-
ValidationContext
public ValidationContext(URIFactory uriFactory, URNFactory urnFactory, JsonMetaSchema metaSchema, JsonSchemaFactory jsonSchemaFactory, SchemaValidatorsConfig config, ConcurrentMap<String,JsonSchema> schemaReferences, ConcurrentMap<String,JsonSchema> schemaResources)
-
-
Method Detail
-
newSchema
public JsonSchema newSchema(SchemaLocation schemaLocation, JsonNodePath evaluationPath, com.fasterxml.jackson.databind.JsonNode schemaNode, JsonSchema parentSchema)
-
newSchema
public JsonSchema newSchema(SchemaLocation schemaLocation, JsonNodePath evaluationPath, URI currentUri, com.fasterxml.jackson.databind.JsonNode schemaNode, JsonSchema parentSchema)
-
newValidator
public JsonValidator newValidator(SchemaLocation schemaLocation, JsonNodePath evaluationPath, String keyword, com.fasterxml.jackson.databind.JsonNode schemaNode, JsonSchema parentSchema)
-
resolveSchemaId
public String resolveSchemaId(com.fasterxml.jackson.databind.JsonNode schemaNode)
-
getURIFactory
public URIFactory getURIFactory()
-
getURNFactory
public URNFactory getURNFactory()
-
getJsonSchemaFactory
public JsonSchemaFactory getJsonSchemaFactory()
-
getConfig
public SchemaValidatorsConfig getConfig()
-
getSchemaReferences
public ConcurrentMap<String,JsonSchema> getSchemaReferences()
Gets the schema references identified by the ref uri.- Returns:
- the schema references
-
getSchemaResources
public ConcurrentMap<String,JsonSchema> getSchemaResources()
Gets the schema resources identified by id.- Returns:
- the schema resources
-
getMetaSchema
public JsonMetaSchema getMetaSchema()
-
activeDialect
public Optional<SpecVersion.VersionFlag> activeDialect()
-
-