public static class SchemaLoader.SchemaLoaderBuilder extends Object
SchemaLoader.| Constructor and Description |
|---|
SchemaLoaderBuilder() |
public SchemaLoader.SchemaLoaderBuilder addFormatValidator(FormatValidator formatValidator)
FormatValidator.formatName().formatValidator - the format validator to be registered with its namethis@Deprecated public SchemaLoader.SchemaLoaderBuilder addFormatValidator(String formatName, FormatValidator formatValidator)
FormatValidator.formatName()
and use addFormatValidator(FormatValidator)formatName - the name which will be used in the schema JSON files to refer to this formatValidatorformatValidator - the object performing the validation for schemas which use the formatName formatthispublic SchemaLoader.SchemaLoaderBuilder draftV6Support()
public SchemaLoader.SchemaLoaderBuilder draftV7Support()
public SchemaLoader build()
@Deprecated public org.json.JSONObject getRootSchemaJson()
public SchemaLoader.SchemaLoaderBuilder httpClient(SchemaClient httpClient)
public SchemaLoader.SchemaLoaderBuilder resolutionScope(String id)
id and $ref attributes
accuring in the schema will be resolved against this value.id - the initial (absolute) URI, used as the resolution scope.thispublic SchemaLoader.SchemaLoaderBuilder resolutionScope(URI id)
public SchemaLoader.SchemaLoaderBuilder schemaJson(org.json.JSONObject schemaJson)
public SchemaLoader.SchemaLoaderBuilder schemaJson(Object schema)
public SchemaLoader.SchemaLoaderBuilder useDefaults(boolean useDefaults)
useDefaults - if true, validator doesn't ignore default valuesthispublic SchemaLoader.SchemaLoaderBuilder nullableSupport(boolean nullableSupport)
public SchemaLoader.SchemaLoaderBuilder regexpFactory(RegexpFactory regexpFactory)
Copyright © 2018 Everit Kft.. All rights reserved.