public class RecursiveRefSchema extends SchemaImpl
shouldRecordContext| Constructor and Description |
|---|
RecursiveRefSchema(JsonObject schema,
JsonPointer scope,
SchemaParser schemaParser,
MutableStateValidator parent) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkSync() |
void |
doApplyDefaultValues(Object obj) |
protected ValidatorContext |
generateValidationContext(SchemaInternal schema,
ValidatorContext parent) |
Object |
getDefaultValue()
Return the default value defined in the 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(ValidatorContext inContext,
Object in)
Return a Future that succeed when the validation succeed, while fail with a
ValidationException when validation fails |
void |
validateSync(ValidatorContext context,
Object in)
Validate the provided value
|
applyDefaultValues, applyDefaultValues, calculateIsSync, generateValidationContext, getJson, getScope, runAsyncValidators, runSyncValidator, triggerUpdateIsSync, validateAsync, validateSyncgetParent, getPriority, initializeIsSync, validateSyncAsAsyncclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPrioritypublic RecursiveRefSchema(JsonObject schema, JsonPointer scope, SchemaParser schemaParser, MutableStateValidator parent)
public Future<Void> validateAsync(ValidatorContext inContext, Object in)
AsyncValidatorValidationException when validation failsvalidateAsync in interface AsyncValidatorvalidateAsync in class SchemaImplpublic void validateSync(ValidatorContext context, Object in) throws ValidationException
SyncValidatorvalidateSync in interface SyncValidatorvalidateSync in class SchemaImplValidationException - if the object is not validpublic Object getDefaultValue()
SchemagetDefaultValue in interface SchemagetDefaultValue in class SchemaImplpublic boolean hasDefaultValue()
SchemahasDefaultValue in interface SchemahasDefaultValue in class SchemaImplpublic void doApplyDefaultValues(Object obj)
doApplyDefaultValues in class SchemaImplpublic boolean isSync()
Validatorprotected void checkSync()
throws ValidationException,
NoSyncValidationException
checkSync in class BaseMutableStateValidatorValidationExceptionNoSyncValidationExceptionprotected ValidatorContext generateValidationContext(SchemaInternal schema, ValidatorContext parent)
Copyright © 2021 Eclipse. All rights reserved.