@NotThreadSafe public final class JsonSchemaFactoryBuilder extends Object implements Thawed<JsonSchemaFactory>
JsonSchemaFactory
This is the class you will use to configure a schema factory before use, should you need to. In most cases, the default factory will be enough.
In order to obtain an instance of this builder class, use JsonSchemaFactory.newBuilder()
.
Modifier and Type | Method and Description |
---|---|
JsonSchemaFactory |
freeze()
Build a frozen instance of this factory configuration
|
JsonSchemaFactoryBuilder |
setLoadingConfiguration(LoadingConfiguration loadingCfg)
Set a new loading configuration for this factory
|
JsonSchemaFactoryBuilder |
setReportProvider(ReportProvider reportProvider)
Set a new report provider for this factory
|
JsonSchemaFactoryBuilder |
setValidationConfiguration(ValidationConfiguration validationCfg)
Set a new validation configuration for this factory
|
public JsonSchemaFactoryBuilder setReportProvider(ReportProvider reportProvider)
reportProvider
- the report providerNullPointerException
- provider is nullpublic JsonSchemaFactoryBuilder setLoadingConfiguration(LoadingConfiguration loadingCfg)
loadingCfg
- the loading configurationNullPointerException
- configuration is nullpublic JsonSchemaFactoryBuilder setValidationConfiguration(ValidationConfiguration validationCfg)
validationCfg
- the validation configurationNullPointerException
- configuration is nullpublic JsonSchemaFactory freeze()
freeze
in interface Thawed<JsonSchemaFactory>
JsonSchemaFactory
JsonSchemaFactory.JsonSchemaFactory(JsonSchemaFactoryBuilder)