/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/cfg/ |
D | CoercionConfigs.java | 24 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 …]
|
D | CoercionConfig.java | 21 protected final CoercionAction[] _coercionsByShape; 24 _coercionsByShape = new CoercionAction[INPUT_SHAPE_COUNT]; in CoercionConfig() 34 public CoercionAction findAction(CoercionInputShape shape) { in findAction()
|
D | CoercionAction.java | 16 public enum CoercionAction enum
|
D | MutableCoercionConfig.java | 27 CoercionAction action) { in setCoercion()
|
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/deser/std/ |
D | StdDeserializer.java | 16 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 …]
|
D | NumberDeserializers.java | 12 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 …]
|
D | FromStringDeserializer.java | 18 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()
|
D | DateDeserializers.java | 16 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/ |
D | CoercePojosTest.java | 5 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 …]
|
D | CoerceEmptyArrayTest.java | 11 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()
|
D | CoerceMiscScalarsTest.java | 21 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()
|
D | CoerceToBooleanTest.java | 13 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);
|
D | CoerceFloatToIntTest.java | 6 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);
|
D | CoerceContainersTest.java | 8 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/ |
D | ValueInstantiator.java | 6 import com.fasterxml.jackson.databind.cfg.CoercionAction; 439 CoercionInputShape.String) == CoercionAction.TryConvert) { in _createFromStringFallbacks()
|
D | BuilderBasedDeserializer.java | 8 import com.fasterxml.jackson.databind.cfg.CoercionAction; 514 final CoercionAction act = _findCoercionFromEmptyArray(ctxt); in _deserializeFromArray() 517 if (unwrap || (act != CoercionAction.Fail)) { in _deserializeFromArray()
|
D | BeanDeserializer.java | 8 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/ |
D | DeserializationConfig.java | 929 public CoercionAction findCoercionAction(LogicalType targetType, in findCoercionAction() 952 public CoercionAction findCoercionFromBlankString(LogicalType targetType, in findCoercionFromBlankString() 954 CoercionAction actionIfBlankNotAllowed) in findCoercionFromBlankString()
|
D | DeserializationContext.java | 15 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()
|