public static class JsonSchemaFactory.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
JsonSchemaFactory.Builder |
addMetaSchema(JsonMetaSchema jsonMetaSchema) |
JsonSchemaFactory.Builder |
addMetaSchemas(Collection<? extends JsonMetaSchema> jsonMetaSchemas) |
JsonSchemaFactory.Builder |
addUriMappings(Map<String,String> map) |
JsonSchemaFactory.Builder |
addUrnFactory(URNFactory urnFactory) |
JsonSchemaFactory |
build() |
JsonSchemaFactory.Builder |
defaultMetaSchemaURI(String defaultMetaSchemaURI) |
JsonSchemaFactory.Builder |
objectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
JsonSchemaFactory.Builder |
uriFactory(URIFactory uriFactory,
String... schemes)
Maps a number of schemes to a
URIFactory . |
JsonSchemaFactory.Builder |
uriFetcher(URIFetcher uriFetcher,
String... schemes)
Maps a number of schemes to a
URIFetcher . |
public JsonSchemaFactory.Builder objectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
public JsonSchemaFactory.Builder defaultMetaSchemaURI(String defaultMetaSchemaURI)
public JsonSchemaFactory.Builder uriFactory(URIFactory uriFactory, String... schemes)
URIFactory
.uriFactory
- the uri factory that will be used for the given schemes.schemes
- the scheme that the uri factory will be assocaited with.public JsonSchemaFactory.Builder uriFetcher(URIFetcher uriFetcher, String... schemes)
URIFetcher
.uriFetcher
- the uri fetcher that will be used for the given schemes.schemes
- the scheme that the uri fetcher will be assocaited with.public JsonSchemaFactory.Builder addMetaSchema(JsonMetaSchema jsonMetaSchema)
public JsonSchemaFactory.Builder addMetaSchemas(Collection<? extends JsonMetaSchema> jsonMetaSchemas)
public JsonSchemaFactory.Builder addUriMappings(Map<String,String> map)
public JsonSchemaFactory.Builder addUrnFactory(URNFactory urnFactory)
public JsonSchemaFactory build()
Copyright © 2020. All rights reserved.