@NotThreadSafe public final class JsonSchemaFactoryBuilder extends Object implements com.github.fge.jsonschema.util.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()
.
JsonSchemaFactory.byDefault()
,
LoadingConfiguration
,
ValidationConfiguration
,
ReportProvider
Modifier and Type | Method and Description |
---|---|
JsonSchemaFactory |
freeze()
Build a frozen instance of this factory configuration
|
JsonSchemaFactoryBuilder |
setLoadingConfiguration(com.github.fge.jsonschema.cfg.LoadingConfiguration loadingCfg)
Set a new loading configuration for this factory
|
JsonSchemaFactoryBuilder |
setReportProvider(com.github.fge.jsonschema.report.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(com.github.fge.jsonschema.report.ReportProvider reportProvider)
reportProvider
- the report providerFactoryConfigurationError
- provider is nullpublic JsonSchemaFactoryBuilder setLoadingConfiguration(com.github.fge.jsonschema.cfg.LoadingConfiguration loadingCfg)
loadingCfg
- the loading configurationFactoryConfigurationError
- configuration is nullpublic JsonSchemaFactoryBuilder setValidationConfiguration(ValidationConfiguration validationCfg)
validationCfg
- the validation configurationFactoryConfigurationError
- configuration is nullpublic JsonSchemaFactory freeze()
freeze
in interface com.github.fge.jsonschema.util.Thawed<JsonSchemaFactory>
JsonSchemaFactory
JsonSchemaFactory.JsonSchemaFactory(JsonSchemaFactoryBuilder)
Copyright © 2014. All Rights Reserved.