public class RefSchema extends SchemaImpl
shouldRecordContext
Constructor and Description |
---|
RefSchema(JsonObject schema,
JsonPointer scope,
SchemaParser schemaParser,
MutableStateValidator parent,
boolean executeSchemaValidators) |
Modifier and Type | Method and Description |
---|---|
boolean |
calculateIsSync() |
Future<Object> |
getOrApplyDefaultAsync(Object input) |
Object |
getOrApplyDefaultSync(Object input) |
protected void |
initializeIsSync() |
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
|
generateValidationContext, getJson, getScope, runAsyncValidators, runSyncValidator, triggerUpdateIsSync, validateAsync, validateSync
checkSync, getParent, getPriority, isSync, validateSyncAsAsync
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPriority
public RefSchema(JsonObject schema, JsonPointer scope, SchemaParser schemaParser, MutableStateValidator parent, boolean executeSchemaValidators)
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 calculateIsSync()
calculateIsSync
in class SchemaImpl
protected void initializeIsSync()
initializeIsSync
in class BaseMutableStateValidator
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 © 2023 Eclipse. All rights reserved.