public static enum NodeMapper.WhenMissing extends java.lang.Enum<NodeMapper.WhenMissing>
| Enum Constant and Description |
|---|
FAIL
Throws an exception when attempting to deserialize an unknown property.
|
INGORE
Ignores unknown properties.
|
WARN
Warns when attempting to deserialize an unknown property.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
handle(java.lang.reflect.Type into,
java.lang.String pointer,
java.lang.String property,
Node value)
Invoked when an object property cannot be deserialized.
|
static NodeMapper.WhenMissing |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NodeMapper.WhenMissing[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NodeMapper.WhenMissing FAIL
public static final NodeMapper.WhenMissing WARN
public static final NodeMapper.WhenMissing INGORE
public static NodeMapper.WhenMissing[] values()
for (NodeMapper.WhenMissing c : NodeMapper.WhenMissing.values()) System.out.println(c);
public static NodeMapper.WhenMissing valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic abstract void handle(java.lang.reflect.Type into,
java.lang.String pointer,
java.lang.String property,
Node value)
into - The value type being created.pointer - The JSON pointer to the type from the original node.property - The property that was unknown to the type.value - The Node being deserialized.