| 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, waitgetDefaultValueAs, isArray, isEmpty, isObject, validateOrDefaultPrimitiveSchema(PrimitiveSchema.Type type, java.lang.Object defaultValue, boolean required, java.lang.String fieldName)
public java.lang.Object getDefaultValue()
getDefaultValue in interface Schemapublic boolean isRequired()
isRequired in interface Schemapublic boolean validate(java.lang.Object object)
Validator