- All Implemented Interfaces:
Serializable
,Comparable<Nulls>
,Constable
Enumeration used with
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.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionValue that indicates that value to assign should come from the value deserializer of the type, using methodgetEmptyValue()
.Pseudo-value used to indicate that defaults are to be used for handling, that is, this value specifies no explicit handling override.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.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 overridinggetNullValue(...)
method)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. -
Method Summary
-
Enum Constant Details
-
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 overridinggetNullValue(...)
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. -
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. -
AS_EMPTY
Value that indicates that value to assign should come from the value deserializer of the type, using methodgetEmptyValue()
. -
DEFAULT
Pseudo-value used to indicate that defaults are to be used for handling, that is, this value specifies no explicit handling override.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-