|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.github.fge.jsonschema.main.JsonSchemaFactoryBuilder
@NotThreadSafe public final class JsonSchemaFactoryBuilder
Thawed instance of a 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
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public JsonSchemaFactoryBuilder setReportProvider(ReportProvider reportProvider)
reportProvider
- the report provider
NullPointerException
- provider is nullpublic JsonSchemaFactoryBuilder setLoadingConfiguration(LoadingConfiguration loadingCfg)
loadingCfg
- the loading configuration
NullPointerException
- configuration is nullpublic JsonSchemaFactoryBuilder setValidationConfiguration(ValidationConfiguration validationCfg)
validationCfg
- the validation configuration
NullPointerException
- configuration is nullpublic JsonSchemaFactory freeze()
freeze
in interface Thawed<JsonSchemaFactory>
JsonSchemaFactory
JsonSchemaFactory.JsonSchemaFactory(JsonSchemaFactoryBuilder)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |