Top Description Fields Constructors Methods
com.fasterxml.jackson.databind.cfg

public final Enum CoercionInputShape

extends Enum<CoercionInputShape>
Class Inheritance
Imports
com.fasterxml.jackson.databind.type.LogicalType

Set of input types (which mostly match one of com.fasterxml.jackson.core.JsonToken types) used for configuring CoercionActions to take when reading input into target types (specific type or LogicalType). Contains both physical input shapes (which match one of com.fasterxml.jackson.core.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

Field Summary

Modifier and TypeField and Description
public static final CoercionInputShape
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 as com.fasterxml.jackson.core.JsonToken#VALUE_EMBEDDED_OBJECT.

public static final CoercionInputShape
public static final CoercionInputShape
EmptyArray

Special case of Array values with no actual content (sequence of 2 tokens: com.fasterxml.jackson.core.JsonToken#START_ARRAY, com.fasterxml.jackson.core.JsonToken#END_ARRAY): usually used to allow special coercion into "empty" or null target type.

public static final CoercionInputShape
EmptyObject

Special case of Object values with no actual content (sequence of 2 tokens: com.fasterxml.jackson.core.JsonToken#START_OBJECT, com.fasterxml.jackson.core.JsonToken#END_OBJECT): usually used to allow special coercion into "empty" or null target type.

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).

public static final CoercionInputShape
Float

Shape of floating point (non-integral) numeric values from input (token com.fasterxml.jackson.core.JsonToken#VALUE_NUMBER_FLOAT)

public static final CoercionInputShape
Integer

Shape of integral (non-floating point) numeric values from input (token com.fasterxml.jackson.core.JsonToken#VALUE_NUMBER_INT)

public static final CoercionInputShape
public static final CoercionInputShape
String

Shape of string values from input (tokens com.fasterxml.jackson.core.JsonToken#VALUE_STRING)

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static CoercionInputShape
public static CoercionInputShape[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

Arrayback to summary
public static final CoercionInputShape Array

Shape of Array values from input (token sequence from com.fasterxml.jackson.core.JsonToken#START_ARRAY to com.fasterxml.jackson.core.JsonToken#END_ARRAY)

Binaryback to summary
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 as com.fasterxml.jackson.core.JsonToken#VALUE_EMBEDDED_OBJECT.

Booleanback to summary
public static final CoercionInputShape Boolean

Shape of boolean values from input (tokens com.fasterxml.jackson.core.JsonToken#VALUE_TRUE and com.fasterxml.jackson.core.JsonToken#VALUE_FALSE)

EmptyArrayback to summary
public static final CoercionInputShape EmptyArray

Special case of Array values with no actual content (sequence of 2 tokens: com.fasterxml.jackson.core.JsonToken#START_ARRAY, com.fasterxml.jackson.core.JsonToken#END_ARRAY): usually used to allow special coercion into "empty" or null target type.

EmptyObjectback to summary
public static final CoercionInputShape EmptyObject

Special case of Object values with no actual content (sequence of 2 tokens: com.fasterxml.jackson.core.JsonToken#START_OBJECT, com.fasterxml.jackson.core.JsonToken#END_OBJECT): usually used to allow special coercion into "empty" or null target type.

EmptyStringback to summary
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" or null target type.

Floatback to summary
public static final CoercionInputShape Float

Shape of floating point (non-integral) numeric values from input (token com.fasterxml.jackson.core.JsonToken#VALUE_NUMBER_FLOAT)

Integerback to summary
public static final CoercionInputShape Integer

Shape of integral (non-floating point) numeric values from input (token com.fasterxml.jackson.core.JsonToken#VALUE_NUMBER_INT)

Objectback to summary
public static final CoercionInputShape Object

Shape of Object values from input (token sequence from com.fasterxml.jackson.core.JsonToken#START_OBJECT to com.fasterxml.jackson.core.JsonToken#END_OBJECT)

Stringback to summary
public static final CoercionInputShape String

Shape of string values from input (tokens com.fasterxml.jackson.core.JsonToken#VALUE_STRING)

Constructor Detail

CoercionInputShapeback to summary
private CoercionInputShape()

Method Detail

valueOfback to summary
public static CoercionInputShape valueOf(String name)
valuesback to summary
public static CoercionInputShape[] values()