Enum CoercionInputShape
- java.lang.Object
 - 
- java.lang.Enum<CoercionInputShape>
 - 
- com.fasterxml.jackson.databind.cfg.CoercionInputShape
 
 
 
- 
- All Implemented Interfaces:
 java.io.Serializable,java.lang.Comparable<CoercionInputShape>
public enum CoercionInputShape extends java.lang.Enum<CoercionInputShape>
Set of input types (which mostly match one ofJsonTokentypes) used for configuringCoercionActions to take when reading input into target types (specific type orLogicalType). Contains both physical input shapes (which match one ofJsonTokentypes) and a few logical input shapes ("empty" variants).Note that
nullinput shape is explicitly not included as its configuration is distinct from other types.- Since:
 - 2.12
 
 
- 
- 
Enum Constant Summary
Enum Constants Enum Constant Description ArrayShape of Array values from input (token sequence fromJsonToken.START_ARRAYtoJsonToken.END_ARRAY)BinaryShape 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.BooleanShape of boolean values from input (tokensJsonToken.VALUE_TRUEandJsonToken.VALUE_FALSE)EmptyArraySpecial 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" ornulltarget type.EmptyObjectSpecial 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" ornulltarget type.EmptyStringSpecial case for String values with no content (or, if allowed by format or specific configuration, also "blank" String, that is, all-whitespace content).FloatShape of floating point (non-integral) numeric values from input (tokenJsonToken.VALUE_NUMBER_FLOAT)IntegerShape of integral (non-floating point) numeric values from input (tokenJsonToken.VALUE_NUMBER_INT)ObjectShape of Object values from input (token sequence fromJsonToken.START_OBJECTtoJsonToken.END_OBJECT)StringShape of string values from input (tokensJsonToken.VALUE_STRING) 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CoercionInputShapevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static CoercionInputShape[]values()Returns an array containing the constants of this enum type, in the order they are declared. 
 - 
 
- 
- 
Enum Constant Detail
- 
Array
public static final CoercionInputShape Array
Shape of Array values from input (token sequence fromJsonToken.START_ARRAYtoJsonToken.END_ARRAY) 
- 
Object
public static final CoercionInputShape Object
Shape of Object values from input (token sequence fromJsonToken.START_OBJECTtoJsonToken.END_OBJECT) 
- 
Integer
public static final CoercionInputShape Integer
Shape of integral (non-floating point) numeric values from input (tokenJsonToken.VALUE_NUMBER_INT) 
- 
Float
public static final CoercionInputShape Float
Shape of floating point (non-integral) numeric values from input (tokenJsonToken.VALUE_NUMBER_FLOAT) 
- 
Boolean
public static final CoercionInputShape Boolean
Shape of boolean values from input (tokensJsonToken.VALUE_TRUEandJsonToken.VALUE_FALSE) 
- 
String
public static final CoercionInputShape String
Shape of string values from input (tokensJsonToken.VALUE_STRING) 
- 
Binary
public static final CoercionInputShape 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
public static final CoercionInputShape 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" ornulltarget type. 
- 
EmptyObject
public static final CoercionInputShape 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" ornulltarget type. 
- 
EmptyString
public static final CoercionInputShape 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" ornulltarget type. 
 - 
 
- 
Method Detail
- 
values
public static CoercionInputShape[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CoercionInputShape c : CoercionInputShape.values()) System.out.println(c);
- Returns:
 - an array containing the constants of this enum type, in the order they are declared
 
 
- 
valueOf
public static CoercionInputShape valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
 java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
 
 - 
 
 -