public class JsonSchemaFactory extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
JsonSchemaFactory.Builder |
| 限定符和类型 | 方法和说明 |
|---|---|
(专用程序包) static JsonSchemaFactory.Builder |
builder()
Builder without keywords or formats.
|
static JsonSchemaFactory.Builder |
builder(JsonSchemaFactory blueprint) |
protected ValidationContext |
createValidationContext(com.fasterxml.jackson.databind.JsonNode schemaNode) |
static JsonSchemaFactory |
getInstance()
已过时。
This is a method that is kept to ensure backward compatible. You shouldn't use it anymore.
Please specify the draft version when get an instance.
|
static JsonSchemaFactory |
getInstance(SpecVersion.VersionFlag versionFlag) |
JsonSchema |
getSchema(InputStream schemaStream) |
JsonSchema |
getSchema(InputStream schemaStream,
SchemaValidatorsConfig config) |
JsonSchema |
getSchema(com.fasterxml.jackson.databind.JsonNode jsonNode) |
JsonSchema |
getSchema(com.fasterxml.jackson.databind.JsonNode jsonNode,
SchemaValidatorsConfig config) |
JsonSchema |
getSchema(String schema) |
JsonSchema |
getSchema(String schema,
SchemaValidatorsConfig config) |
JsonSchema |
getSchema(URI schemaUri) |
JsonSchema |
getSchema(URI schemaUri,
com.fasterxml.jackson.databind.JsonNode jsonNode) |
JsonSchema |
getSchema(URI schemaUri,
com.fasterxml.jackson.databind.JsonNode jsonNode,
SchemaValidatorsConfig config) |
JsonSchema |
getSchema(URI schemaUri,
SchemaValidatorsConfig config) |
URIFactory |
getUriFactory() |
protected JsonSchema |
newJsonSchema(URI schemaUri,
com.fasterxml.jackson.databind.JsonNode schemaNode,
SchemaValidatorsConfig config) |
static JsonSchemaFactory.Builder builder()
JsonSchemaFactory.builder(JsonSchemaFactory.getDraftV4()).build();
@Deprecated public static JsonSchemaFactory getInstance()
public static JsonSchemaFactory getInstance(SpecVersion.VersionFlag versionFlag)
public static JsonSchemaFactory.Builder builder(JsonSchemaFactory blueprint)
protected JsonSchema newJsonSchema(URI schemaUri, com.fasterxml.jackson.databind.JsonNode schemaNode, SchemaValidatorsConfig config)
protected ValidationContext createValidationContext(com.fasterxml.jackson.databind.JsonNode schemaNode)
public URIFactory getUriFactory()
URI factory that is used for creating the URI references in schemas.public JsonSchema getSchema(String schema, SchemaValidatorsConfig config)
public JsonSchema getSchema(String schema)
public JsonSchema getSchema(InputStream schemaStream, SchemaValidatorsConfig config)
public JsonSchema getSchema(InputStream schemaStream)
public JsonSchema getSchema(URI schemaUri, SchemaValidatorsConfig config)
public JsonSchema getSchema(URI schemaUri)
public JsonSchema getSchema(URI schemaUri, com.fasterxml.jackson.databind.JsonNode jsonNode, SchemaValidatorsConfig config)
public JsonSchema getSchema(com.fasterxml.jackson.databind.JsonNode jsonNode, SchemaValidatorsConfig config)
public JsonSchema getSchema(URI schemaUri, com.fasterxml.jackson.databind.JsonNode jsonNode)
public JsonSchema getSchema(com.fasterxml.jackson.databind.JsonNode jsonNode)
Copyright © 2023. All rights reserved.