Enum Class CoercionInputShape
java.lang.Object
java.lang.Enum<CoercionInputShape>
edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.cfg.CoercionInputShape
- All Implemented Interfaces:
Serializable
,Comparable<CoercionInputShape>
,java.lang.constant.Constable
Set of input types (which mostly match one of
JsonToken
types) used for
configuring CoercionAction
s to take when reading
input into target types (specific type or LogicalType
).
Contains both physical input shapes (which match one of
JsonToken
types) and a few
logical input shapes ("empty" variants).
Note that null
input shape is explicitly not included as
its configuration is distinct from other types.
- Since:
- 2.12
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionShape of Array values from input (token sequence fromJsonToken.START_ARRAY
toJsonToken.END_ARRAY
)Shape of binary data values from input, if expressed natively by underlying format (many textual formats, including JSON, do not have such shape); if so generally seen asJsonToken.VALUE_EMBEDDED_OBJECT
.Shape of boolean values from input (tokensJsonToken.VALUE_TRUE
andJsonToken.VALUE_FALSE
)Special case of Array values with no actual content (sequence of 2 tokens:JsonToken.START_ARRAY
,JsonToken.END_ARRAY
): usually used to allow special coercion into "empty" ornull
target type.Special case of Object values with no actual content (sequence of 2 tokens:JsonToken.START_OBJECT
,JsonToken.END_OBJECT
): usually used to allow special coercion into "empty" ornull
target type.Special case for String values with no content (or, if allowed by format or specific configuration, also "blank" String, that is, all-whitespace content).Shape of floating point (non-integral) numeric values from input (tokenJsonToken.VALUE_NUMBER_FLOAT
)Shape of integral (non-floating point) numeric values from input (tokenJsonToken.VALUE_NUMBER_INT
)Shape of Object values from input (token sequence fromJsonToken.START_OBJECT
toJsonToken.END_OBJECT
)Shape of string values from input (tokensJsonToken.VALUE_STRING
) -
Method Summary
Modifier and TypeMethodDescriptionstatic CoercionInputShape
Returns the enum constant of this class with the specified name.static CoercionInputShape[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Array
Shape of Array values from input (token sequence fromJsonToken.START_ARRAY
toJsonToken.END_ARRAY
) -
Object
Shape of Object values from input (token sequence fromJsonToken.START_OBJECT
toJsonToken.END_OBJECT
) -
Integer
Shape of integral (non-floating point) numeric values from input (tokenJsonToken.VALUE_NUMBER_INT
) -
Float
Shape of floating point (non-integral) numeric values from input (tokenJsonToken.VALUE_NUMBER_FLOAT
) -
Boolean
Shape of boolean values from input (tokensJsonToken.VALUE_TRUE
andJsonToken.VALUE_FALSE
) -
String
Shape of string values from input (tokensJsonToken.VALUE_STRING
) -
Binary
Shape of binary data values from input, if expressed natively by underlying format (many textual formats, including JSON, do not have such shape); if so generally seen asJsonToken.VALUE_EMBEDDED_OBJECT
. -
EmptyArray
Special case of Array values with no actual content (sequence of 2 tokens:JsonToken.START_ARRAY
,JsonToken.END_ARRAY
): usually used to allow special coercion into "empty" ornull
target type. -
EmptyObject
Special case of Object values with no actual content (sequence of 2 tokens:JsonToken.START_OBJECT
,JsonToken.END_OBJECT
): usually used to allow special coercion into "empty" ornull
target type. -
EmptyString
Special case for String values with no content (or, if allowed by format or specific configuration, also "blank" String, that is, all-whitespace content). usually used to allow special coercion into "empty" ornull
target type.
-
-
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
-