class EmptySchema extends java.lang.Object implements ObjectSchema
Constructor and Description |
---|
EmptySchema(java.lang.String fieldName,
boolean required,
java.lang.Object defaultValue) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
fieldName() |
java.lang.Object |
getDefaultValue() |
java.util.Collection<java.lang.String> |
getFieldDependencies(java.lang.String name) |
Schema |
getInnerSchema(java.lang.String name,
Configuration object) |
java.util.Collection<java.lang.String> |
getInnerSchemaNames() |
boolean |
isEmpty() |
boolean |
isObject() |
boolean |
isRequired() |
boolean |
validate(java.lang.Object object)
Validates the given input object, returns whether it is successfully validated against this input
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFieldsDependingOn, getInnerSchema
getDefaultValueAs, isArray, isBoolean, isNumber, isString, validateOrDefault
EmptySchema(java.lang.String fieldName, boolean required, java.lang.Object defaultValue)
public java.lang.Object getDefaultValue()
getDefaultValue
in interface Schema
public boolean validate(java.lang.Object object)
Validator
validate
in interface ObjectSchema
validate
in interface Validator
object
- The input to validate.public boolean isRequired()
isRequired
in interface Schema
public Schema getInnerSchema(java.lang.String name, Configuration object)
getInnerSchema
in interface ObjectSchema
public java.util.Collection<java.lang.String> getFieldDependencies(java.lang.String name)
getFieldDependencies
in interface ObjectSchema
public java.util.Collection<java.lang.String> getInnerSchemaNames()
getInnerSchemaNames
in interface ObjectSchema