Modifier and Type | Class and Description |
---|---|
(package private) static class |
PrimitiveSchema.Type |
Constructor and Description |
---|
PrimitiveSchema(PrimitiveSchema.Type type,
java.lang.Object defaultValue,
boolean required,
java.lang.String fieldName) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
fieldName() |
java.lang.Object |
getDefaultValue() |
boolean |
isBoolean() |
boolean |
isNumber() |
boolean |
isRequired() |
boolean |
isString() |
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
getDefaultValueAs, isArray, isEmpty, isObject, validateOrDefault
PrimitiveSchema(PrimitiveSchema.Type type, java.lang.Object defaultValue, boolean required, java.lang.String fieldName)
public java.lang.Object getDefaultValue()
getDefaultValue
in interface Schema
public boolean isRequired()
isRequired
in interface Schema
public boolean validate(java.lang.Object object)
Validator