Package com.networknt.schema
Class ValidationContext
- java.lang.Object
-
- com.networknt.schema.ValidationContext
-
public class ValidationContext extends Object
-
-
Constructor Summary
Constructors Constructor Description ValidationContext(JsonMetaSchema metaSchema, JsonSchemaFactory jsonSchemaFactory, SchemaValidatorsConfig config)
ValidationContext(JsonMetaSchema metaSchema, JsonSchemaFactory jsonSchemaFactory, SchemaValidatorsConfig config, ConcurrentMap<String,JsonSchema> schemaReferences, ConcurrentMap<String,JsonSchema> schemaResources, ConcurrentMap<String,JsonSchema> dynamicAnchors)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<SpecVersion.VersionFlag>
activeDialect()
SchemaValidatorsConfig
getConfig()
ConcurrentMap<String,JsonSchema>
getDynamicAnchors()
Gets the dynamic anchors.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.JsonSchema
newSchema(SchemaLocation schemaLocation, JsonNodePath evaluationPath, 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(JsonMetaSchema metaSchema, JsonSchemaFactory jsonSchemaFactory, SchemaValidatorsConfig config)
-
ValidationContext
public ValidationContext(JsonMetaSchema metaSchema, JsonSchemaFactory jsonSchemaFactory, SchemaValidatorsConfig config, ConcurrentMap<String,JsonSchema> schemaReferences, ConcurrentMap<String,JsonSchema> schemaResources, ConcurrentMap<String,JsonSchema> dynamicAnchors)
-
-
Method Detail
-
newSchema
public JsonSchema newSchema(SchemaLocation schemaLocation, JsonNodePath evaluationPath, 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)
-
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
-
getDynamicAnchors
public ConcurrentMap<String,JsonSchema> getDynamicAnchors()
Gets the dynamic anchors.- Returns:
- the dynamic anchors
-
getMetaSchema
public JsonMetaSchema getMetaSchema()
-
activeDialect
public Optional<SpecVersion.VersionFlag> activeDialect()
-
-