public static class SchemaLoader.SchemaLoaderBuilder extends Object
SchemaLoader.| Constructor and Description |
|---|
SchemaLoaderBuilder() |
| Modifier and Type | Method and Description |
|---|---|
SchemaLoader.SchemaLoaderBuilder |
addFormatValidator(String formatName,
FormatValidator formatValidator) |
SchemaLoader |
build() |
org.json.JSONObject |
getRootSchemaJson() |
SchemaLoader.SchemaLoaderBuilder |
httpClient(SchemaClient httpClient) |
SchemaLoader.SchemaLoaderBuilder |
resolutionScope(String id)
Sets the initial resolution scope of the schema.
|
SchemaLoader.SchemaLoaderBuilder |
resolutionScope(URI id) |
SchemaLoader.SchemaLoaderBuilder |
schemaJson(org.json.JSONObject schemaJson) |
public SchemaLoader.SchemaLoaderBuilder addFormatValidator(String formatName, FormatValidator formatValidator)
public SchemaLoader build()
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)
Copyright © 2011–2016 Everit Kft.. All rights reserved.