public static enum GraphErrorHandlingConfig.Field extends Enum<GraphErrorHandlingConfig.Field> implements ConfigField
| Enum Constant and Description |
|---|
ON_MISSED_PROP_KEY
what to do when missing property key is encountered
|
ON_PROP_CONVERSION
what to do when different property type is encountered than specified, but coercion is possible
|
ON_TYPE_MISMATCH
what to do when different property type is encountered than specified, but coercion is not possible
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getDefaultVal()
Gets the default value of this field.
|
List<String> |
getKeyAliases()
Gets the key aliases of this field which are also recognized during parsing.
|
Class<?> |
getType()
Gets the type of this field.
|
boolean |
isArray()
Checks if this field is an array.
|
boolean |
isEnum()
Checks if this field is of enum type.
|
boolean |
isPath()
Checks if this field is a path.
|
boolean |
isPrimitive()
Checks if this field is of primitive type.
|
boolean |
isRequired()
Checks if this field is required.
|
String |
toKey()
Get the key of this field, which is how this field is represented in serialized form.
|
String |
toString() |
static GraphErrorHandlingConfig.Field |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GraphErrorHandlingConfig.Field[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared.
|
public static final GraphErrorHandlingConfig.Field ON_MISSED_PROP_KEY
public static final GraphErrorHandlingConfig.Field ON_PROP_CONVERSION
public static final GraphErrorHandlingConfig.Field ON_TYPE_MISMATCH
public Object getDefaultVal()
ConfigFieldgetDefaultVal in interface ConfigFieldpublic List<String> getKeyAliases()
ConfigFieldgetKeyAliases in interface ConfigFieldpublic Class<?> getType()
ConfigFieldgetType in interface ConfigFieldpublic boolean isArray()
ConfigFieldisArray in interface ConfigFieldpublic boolean isEnum()
ConfigFieldisEnum in interface ConfigFieldpublic boolean isPath()
ConfigFieldisPath in interface ConfigFieldpublic boolean isPrimitive()
ConfigFieldisPrimitive in interface ConfigFieldpublic boolean isRequired()
ConfigFieldisRequired in interface ConfigFieldpublic String toKey()
ConfigFieldtoKey in interface ConfigFieldpublic String toString()
toString in class Enum<GraphErrorHandlingConfig.Field>public static GraphErrorHandlingConfig.Field valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static GraphErrorHandlingConfig.Field[] values()
for (GraphErrorHandlingConfig.Field c : GraphErrorHandlingConfig.Field.values())
System.out.println(c);
Copyright © 2015. All rights reserved.