class MapBasedSchema extends java.lang.Object implements ObjectSchema
Constructor and Description |
---|
MapBasedSchema(java.lang.String fieldName,
java.util.Map<java.lang.String,Schema> innerSchemas,
Configuration defaultValue,
boolean required) |
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 |
isRequired() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFieldsDependingOn, getInnerSchema, validate
getDefaultValueAs, isArray, isBoolean, isEmpty, isNumber, isObject, isString, validateOrDefault
MapBasedSchema(java.lang.String fieldName, java.util.Map<java.lang.String,Schema> innerSchemas, Configuration defaultValue, boolean required)
public java.lang.Object getDefaultValue()
getDefaultValue
in interface Schema
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