Package com.networknt.schema
Class JsonSchemaFactory
- java.lang.Object
-
- com.networknt.schema.JsonSchemaFactory
-
public class JsonSchemaFactory extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JsonSchemaFactory.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JsonSchemaFactory.Builder
builder(JsonSchemaFactory blueprint)
protected ValidationContext
createValidationContext(com.fasterxml.jackson.databind.JsonNode schemaNode)
static JsonSchemaFactory
getInstance()
JsonSchema
getSchema(com.fasterxml.jackson.databind.JsonNode jsonNode)
JsonSchema
getSchema(com.fasterxml.jackson.databind.JsonNode jsonNode, SchemaValidatorsConfig config)
JsonSchema
getSchema(InputStream schemaStream)
JsonSchema
getSchema(InputStream schemaStream, SchemaValidatorsConfig config)
JsonSchema
getSchema(String schema)
JsonSchema
getSchema(String schema, SchemaValidatorsConfig config)
JsonSchema
getSchema(URL schemaURL)
JsonSchema
getSchema(URL schemaURL, SchemaValidatorsConfig config)
-
-
-
Method Detail
-
getInstance
public static JsonSchemaFactory getInstance()
-
builder
public static JsonSchemaFactory.Builder builder(JsonSchemaFactory blueprint)
-
createValidationContext
protected ValidationContext createValidationContext(com.fasterxml.jackson.databind.JsonNode schemaNode)
-
getSchema
public JsonSchema getSchema(String schema, SchemaValidatorsConfig config)
-
getSchema
public JsonSchema getSchema(String schema)
-
getSchema
public JsonSchema getSchema(InputStream schemaStream, SchemaValidatorsConfig config)
-
getSchema
public JsonSchema getSchema(InputStream schemaStream)
-
getSchema
public JsonSchema getSchema(URL schemaURL, SchemaValidatorsConfig config)
-
getSchema
public JsonSchema getSchema(URL schemaURL)
-
getSchema
public JsonSchema getSchema(com.fasterxml.jackson.databind.JsonNode jsonNode, SchemaValidatorsConfig config)
-
getSchema
public JsonSchema getSchema(com.fasterxml.jackson.databind.JsonNode jsonNode)
-
-