public class CoercionConfigs
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
CoercionConfigs() |
Modifier and Type | Method and Description |
---|---|
CoercionConfigs |
copy()
Method called to create a non-shared copy of configuration settings,
to be used by another
ObjectMapper
instance. |
MutableCoercionConfig |
defaultCoercions() |
CoercionAction |
findCoercion(DeserializationConfig config,
LogicalType targetType,
java.lang.Class<?> targetClass,
CoercionInputShape inputShape)
General-purpose accessor for finding what to do when specified coercion
from shape that is now always allowed to be coerced from is requested.
|
CoercionAction |
findCoercionFromBlankString(DeserializationConfig config,
LogicalType targetType,
java.lang.Class<?> targetClass,
CoercionAction actionIfBlankNotAllowed)
More specialized accessor called in case of input being a blank
String (one consisting of only white space characters with length of at least one).
|
MutableCoercionConfig |
findOrCreateCoercion(java.lang.Class<?> type) |
MutableCoercionConfig |
findOrCreateCoercion(LogicalType type) |
public CoercionConfigs copy()
ObjectMapper
instance.public MutableCoercionConfig defaultCoercions()
public MutableCoercionConfig findOrCreateCoercion(LogicalType type)
public MutableCoercionConfig findOrCreateCoercion(java.lang.Class<?> type)
public CoercionAction findCoercion(DeserializationConfig config, LogicalType targetType, java.lang.Class<?> targetClass, CoercionInputShape inputShape)
config
- Currently active deserialization configurationtargetType
- Logical target type of coerciontargetClass
- Physical target type of coercioninputShape
- Input shape to coerce frompublic CoercionAction findCoercionFromBlankString(DeserializationConfig config, LogicalType targetType, java.lang.Class<?> targetClass, CoercionAction actionIfBlankNotAllowed)
actionIfBlankNotAllowed
, otherwise returns action for
CoercionInputShape.EmptyString
.config
- Currently active deserialization configurationtargetType
- Logical target type of coerciontargetClass
- Physical target type of coercionactionIfBlankNotAllowed
- Return value to use in case "blanks as empty"
is not allowedCopyright © 2010 - 2023 Adobe. All Rights Reserved