|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.github.fge.jsonschema.cfg.ValidationConfiguration
public final class ValidationConfiguration
Validation configuration (frozen instance)
This allows you to configure the following aspects of validation:
$schema value;format;The default configuration has both draft v4 and draft v3 libraries
preloaded, and format validation is enabled; the default library to
use is draft v4.
ValidationConfigurationBuilder,
Keyword,
Library| Method Summary | |
|---|---|
static ValidationConfiguration |
byDefault()
Return a default, frozen configuration |
Library |
getDefaultLibrary()
Return the default library to use |
Map<JsonRef,Library> |
getLibraries()
Return the map of libraries for this configuration |
MessageBundle |
getSyntaxMessages()
|
boolean |
getUseFormat()
Whether format should be used |
MessageBundle |
getValidationMessages()
|
static ValidationConfigurationBuilder |
newBuilder()
Return a new thawed instance of the default configuration |
ValidationConfigurationBuilder |
thaw()
Return a thawed instance out of this frozen configuration |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ValidationConfigurationBuilder newBuilder()
ValidationConfigurationBuilder.ValidationConfigurationBuilder()public static ValidationConfiguration byDefault()
public Map<JsonRef,Library> getLibraries()
public Library getDefaultLibrary()
public boolean getUseFormat()
format should be used
true if the answer is yespublic MessageBundle getSyntaxMessages()
public MessageBundle getValidationMessages()
public ValidationConfigurationBuilder thaw()
thaw in interface Frozen<ValidationConfigurationBuilder>ValidationConfigurationBuilderValidationConfigurationBuilder.ValidationConfigurationBuilder(ValidationConfiguration)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||