| Constructor and Description |
|---|
TrueSchema(MutableStateValidator parent) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyDefaultValues(JsonArray array)
This function mutates
array applying default values, when available. |
void |
applyDefaultValues(JsonObject object)
This function mutates
object applying default values, when available. |
Object |
getDefaultValue()
Return the default value defined in the schema
|
static TrueSchema |
getInstance() |
Boolean |
getJson()
Get Json representation of the schema
|
JsonPointer |
getScope()
Get scope of this schema
|
boolean |
hasDefaultValue()
Return true if the schema has a default value defined
|
boolean |
isSync()
Returns true if this validator can actually provide a synchronous validation
|
Future<Void> |
validateAsync(Object in)
Validate the json performing an asynchronous validation.
|
void |
validateSync(Object in)
Validate the json performing a synchronous validation.
|
public TrueSchema(MutableStateValidator parent)
public static TrueSchema getInstance()
public boolean isSync()
Schemapublic void validateSync(Object in) throws ValidationException, NoSyncValidationException
SchemaValidationException if json doesn't match the schema.validateSync in interface SchemaValidationExceptionNoSyncValidationException - If the schema cannot perform a synchronous validationpublic Future<Void> validateAsync(Object in)
SchemaValidationException if json doesn't match the schema.this#validateSync(Object)validateAsync in interface Schemapublic JsonPointer getScope()
Schemapublic Boolean getJson()
Schemapublic Object getDefaultValue()
SchemagetDefaultValue in interface Schemapublic boolean hasDefaultValue()
SchemahasDefaultValue in interface Schemapublic void applyDefaultValues(JsonArray array) throws NoSyncValidationException
Schemaarray applying default values, when available.applyDefaultValues in interface SchemaNoSyncValidationException - if this schema represents a $ref not solved yetpublic void applyDefaultValues(JsonObject object) throws NoSyncValidationException
Schemaobject applying default values, when available.applyDefaultValues in interface SchemaNoSyncValidationException - if this schema represents a $ref not solved yetCopyright © 2020 Eclipse. All rights reserved.