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, validateSync
getParent, getPriority, initializeIsSync, validateSyncAsAsync
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPriority
public RecursiveRefSchema(JsonObject schema, JsonPointer scope, SchemaParser schemaParser, MutableStateValidator parent)
public Future<Void> validateAsync(ValidatorContext inContext, Object in)
AsyncValidator
ValidationException
when validation failsvalidateAsync
in interface AsyncValidator
validateAsync
in class SchemaImpl
public void validateSync(ValidatorContext context, Object in) throws ValidationException
SyncValidator
validateSync
in interface SyncValidator
validateSync
in class SchemaImpl
ValidationException
- if the object is not validpublic Object getDefaultValue()
Schema
getDefaultValue
in interface Schema
getDefaultValue
in class SchemaImpl
public boolean hasDefaultValue()
Schema
hasDefaultValue
in interface Schema
hasDefaultValue
in class SchemaImpl
public void doApplyDefaultValues(Object obj)
doApplyDefaultValues
in class SchemaImpl
public boolean isSync()
Validator
protected void checkSync() throws ValidationException, NoSyncValidationException
checkSync
in class BaseMutableStateValidator
ValidationException
NoSyncValidationException
protected ValidatorContext generateValidationContext(SchemaInternal schema, ValidatorContext parent)
Copyright © 2020 Eclipse. All rights reserved.