public enum Nulls extends Enum<Nulls>
JsonSetter
(for properties `nulls`
and `contentNulls`)
to define how explicit `null` values from input (if input format
has the concept; JSON, for example does) are handled.Enum Constant and Description |
---|
AS_EMPTY
Value that indicates that value to assign should come from the value
deserializer of the type, using method
getEmptyValue() . |
DEFAULT
Pseudo-value used to indicate that defaults are to be used for handling,
that is, this value specifies no explicit handling override.
|
FAIL
Value that indicates that an exception (of type that indicates input mismatch
problem) is to be thrown, to indicate that null values are not accepted.
|
SET
Value that indicates that an input null should result in assignment
of Java `null` value of matching property (except where deserializer
indicates other "null value" by overriding
getNullValue(...)
method) |
SKIP
Value that indicates that an input null value should be skipped and
no assignment is to be made; this usually means that the property
will have its default value.
|
Modifier and Type | Method and Description |
---|---|
static Nulls |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Nulls[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Nulls SET
getNullValue(...)
method)public static final Nulls SKIP
public static final Nulls FAIL
public static final Nulls AS_EMPTY
getEmptyValue()
.public static final Nulls DEFAULT
public static Nulls[] values()
for (Nulls c : Nulls.values()) System.out.println(c);
public static Nulls 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 nullCopyright © 2008–2018 FasterXML. All rights reserved.