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() |
protected ValidatorContext |
generateValidationContext(SchemaInternal schema,
ValidatorContext parent) |
Future<Object> |
getOrApplyDefaultAsync(Object input) |
Object |
getOrApplyDefaultSync(Object input) |
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
|
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 boolean isSync()
Validator
protected void checkSync() throws ValidationException, NoSyncValidationException
checkSync
in class BaseMutableStateValidator
ValidationException
NoSyncValidationException
protected ValidatorContext generateValidationContext(SchemaInternal schema, ValidatorContext parent)
public Future<Object> getOrApplyDefaultAsync(Object input)
getOrApplyDefaultAsync
in interface SchemaInternal
getOrApplyDefaultAsync
in class SchemaImpl
public Object getOrApplyDefaultSync(Object input)
getOrApplyDefaultSync
in interface SchemaInternal
getOrApplyDefaultSync
in class SchemaImpl
Copyright © 2021 Eclipse. All rights reserved.