Home
last modified time | relevance | path

Searched refs:CoercionAction (Results 1 – 19 of 19) sorted by relevance

/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/cfg/
DCoercionConfigs.java24 protected CoercionAction _defaultAction;
49 this(CoercionAction.TryConvert, new MutableCoercionConfig(), in CoercionConfigs()
53 protected CoercionConfigs(CoercionAction defaultAction, in CoercionConfigs()
161 public CoercionAction findCoercion(DeserializationConfig config, in findCoercion()
169 CoercionAction act = cc.findAction(inputShape); in findCoercion()
180 CoercionAction act = cc.findAction(inputShape); in findCoercion()
188 CoercionAction act = _defaultCoercions.findAction(inputShape); in findCoercion()
197 CoercionAction.AsNull : CoercionAction.Fail; in findCoercion()
203 CoercionAction.TryConvert : CoercionAction.Fail; in findCoercion()
216 return CoercionAction.Fail; in findCoercion()
[all …]
DCoercionConfig.java21 protected final CoercionAction[] _coercionsByShape;
24 _coercionsByShape = new CoercionAction[INPUT_SHAPE_COUNT]; in CoercionConfig()
34 public CoercionAction findAction(CoercionInputShape shape) { in findAction()
DCoercionAction.java16 public enum CoercionAction enum
DMutableCoercionConfig.java27 CoercionAction action) { in setCoercion()
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/deser/std/
DStdDeserializer.java16 import com.fasterxml.jackson.databind.cfg.CoercionAction;
200 final CoercionAction act = _findCoercionFromEmptyArray(ctxt); in _deserializeFromArray()
203 if (unwrap || (act != CoercionAction.Fail)) { in _deserializeFromArray()
269 final CoercionAction act = ctxt.findCoercionAction(logicalType(), rawTargetType, in _deserializeFromString()
275 … final CoercionAction act = ctxt.findCoercionFromBlankString(logicalType(), rawTargetType, in _deserializeFromString()
276 CoercionAction.Fail); in _deserializeFromString()
288 CoercionInputShape.String) == CoercionAction.TryConvert) { in _deserializeFromString()
294 CoercionInputShape.String) == CoercionAction.TryConvert) { in _deserializeFromString()
301 CoercionInputShape.String) == CoercionAction.TryConvert) { in _deserializeFromString()
318 CoercionAction act, Class<?> rawTargetType, String desc) throws IOException in _deserializeFromEmptyString()
[all …]
DNumberDeserializers.java12 import com.fasterxml.jackson.databind.cfg.CoercionAction;
286 final CoercionAction act = _checkFloatToIntCoercion(p, ctxt, _valueClass); in _parseByte()
287 if (act == CoercionAction.AsNull) { in _parseByte()
290 if (act == CoercionAction.AsEmpty) { in _parseByte()
309 final CoercionAction act = _checkFromStringCoercion(ctxt, text); in _parseByte()
310 if (act == CoercionAction.AsNull) { in _parseByte()
313 if (act == CoercionAction.AsEmpty) { in _parseByte()
374 final CoercionAction act = _checkFloatToIntCoercion(p, ctxt, _valueClass); in _parseShort()
375 if (act == CoercionAction.AsNull) { in _parseShort()
378 if (act == CoercionAction.AsEmpty) { in _parseShort()
[all …]
DFromStringDeserializer.java18 import com.fasterxml.jackson.databind.cfg.CoercionAction;
228 CoercionAction act = ctxt.findCoercionAction(logicalType(), _valueClass, in _deserializeFromEmptyString()
230 if (act == CoercionAction.Fail) { in _deserializeFromEmptyString()
235 if (act == CoercionAction.AsNull) { in _deserializeFromEmptyString()
238 if (act == CoercionAction.AsEmpty) { in _deserializeFromEmptyString()
DDateDeserializers.java16 import com.fasterxml.jackson.databind.cfg.CoercionAction;
195 final CoercionAction act = _checkFromStringCoercion(ctxt, str); in _parseDate()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/convert/
DCoercePojosTest.java5 import com.fasterxml.jackson.databind.cfg.CoercionAction;
89 mapper.coercionConfigDefaults().setCoercion(shape, CoercionAction.AsNull) in _testPOJOFromEmptyGlobalConfig()
95 mapper.coercionConfigDefaults().setCoercion(shape, CoercionAction.AsEmpty) in _testPOJOFromEmptyGlobalConfig()
102 mapper.coercionConfigDefaults().setCoercion(shape, CoercionAction.TryConvert) in _testPOJOFromEmptyGlobalConfig()
115 mapper.coercionConfigFor(LogicalType.POJO).setCoercion(shape, CoercionAction.AsNull) in _testPOJOFromEmptyLogicalTypeConfig()
121 mapper.coercionConfigFor(LogicalType.POJO).setCoercion(shape, CoercionAction.AsEmpty) in _testPOJOFromEmptyLogicalTypeConfig()
128 mapper.coercionConfigDefaults().setCoercion(shape, CoercionAction.AsNull) in _testPOJOFromEmptyLogicalTypeConfig()
131 CoercionAction.Fail); in _testPOJOFromEmptyLogicalTypeConfig()
143 mapper.coercionConfigFor(Bean.class).setCoercion(shape, CoercionAction.AsNull) in _testPOJOFromEmptyPhysicalTypeConfig()
149 mapper.coercionConfigFor(Bean.class).setCoercion(shape, CoercionAction.AsEmpty) in _testPOJOFromEmptyPhysicalTypeConfig()
[all …]
DCoerceEmptyArrayTest.java11 import com.fasterxml.jackson.databind.cfg.CoercionAction;
33 .setCoercion(CoercionInputShape.EmptyArray, CoercionAction.AsEmpty);
40 .setCoercion(CoercionInputShape.EmptyArray, CoercionAction.TryConvert);
47 .setCoercion(CoercionInputShape.EmptyArray, CoercionAction.AsNull);
54 .setCoercion(CoercionInputShape.EmptyArray, CoercionAction.Fail);
106 .setCoercion(CoercionInputShape.EmptyArray, CoercionAction.Fail); in testPOJOFromEmptyArray()
114 .setCoercion(CoercionInputShape.EmptyArray, CoercionAction.AsEmpty); in testPOJOFromEmptyArray()
DCoerceMiscScalarsTest.java21 import com.fasterxml.jackson.databind.cfg.CoercionAction;
33 .setCoercion(CoercionInputShape.EmptyString, CoercionAction.AsEmpty);
40 .setCoercion(CoercionInputShape.EmptyString, CoercionAction.TryConvert);
47 .setCoercion(CoercionInputShape.EmptyString, CoercionAction.AsNull);
54 .setCoercion(CoercionInputShape.EmptyString, CoercionAction.Fail);
204 .setCoercion(CoercionInputShape.EmptyString, CoercionAction.Fail); in testUUIDCoercions()
DCoerceToBooleanTest.java13 import com.fasterxml.jackson.databind.cfg.CoercionAction;
33 .setCoercion(CoercionInputShape.Integer, CoercionAction.AsEmpty);
39 .setCoercion(CoercionInputShape.Integer, CoercionAction.TryConvert);
45 .setCoercion(CoercionInputShape.Integer, CoercionAction.AsNull);
51 .setCoercion(CoercionInputShape.Integer, CoercionAction.Fail);
DCoerceFloatToIntTest.java6 import com.fasterxml.jackson.databind.cfg.CoercionAction;
20 .setCoercion(CoercionInputShape.Float, CoercionAction.AsEmpty);
26 .setCoercion(CoercionInputShape.Float, CoercionAction.TryConvert);
32 .setCoercion(CoercionInputShape.Float, CoercionAction.AsNull);
38 .setCoercion(CoercionInputShape.Float, CoercionAction.Fail);
DCoerceContainersTest.java8 import com.fasterxml.jackson.databind.cfg.CoercionAction;
19 …APPER.coercionConfigDefaults().setCoercion(CoercionInputShape.EmptyString, CoercionAction.AsEmpty);
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/deser/
DValueInstantiator.java6 import com.fasterxml.jackson.databind.cfg.CoercionAction;
439 CoercionInputShape.String) == CoercionAction.TryConvert) { in _createFromStringFallbacks()
DBuilderBasedDeserializer.java8 import com.fasterxml.jackson.databind.cfg.CoercionAction;
514 final CoercionAction act = _findCoercionFromEmptyArray(ctxt); in _deserializeFromArray()
517 if (unwrap || (act != CoercionAction.Fail)) { in _deserializeFromArray()
DBeanDeserializer.java8 import com.fasterxml.jackson.databind.cfg.CoercionAction;
617 final CoercionAction act = _findCoercionFromEmptyArray(ctxt); in _deserializeFromArray()
620 if (unwrap || (act != CoercionAction.Fail)) { in _deserializeFromArray()
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/
DDeserializationConfig.java929 public CoercionAction findCoercionAction(LogicalType targetType, in findCoercionAction()
952 public CoercionAction findCoercionFromBlankString(LogicalType targetType, in findCoercionFromBlankString()
954 CoercionAction actionIfBlankNotAllowed) in findCoercionFromBlankString()
DDeserializationContext.java15 import com.fasterxml.jackson.databind.cfg.CoercionAction;
489 public CoercionAction findCoercionAction(LogicalType targetType, in findCoercionAction()
511 public CoercionAction findCoercionFromBlankString(LogicalType targetType, in findCoercionFromBlankString()
513 CoercionAction actionIfBlankNotAllowed) in findCoercionFromBlankString()