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() |
void |
doApplyDefaultValues(Object obj) |
Object |
getDefaultValue()
Return the default value defined in the schema
|
boolean |
hasDefaultValue()
Return true if the schema has a default value defined
|
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
|
applyDefaultValues, applyDefaultValues, 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 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
Copyright © 2020 Eclipse. All rights reserved.