| Modifier and Type | Field and Description |
|---|---|
| protected final Class | _valueClass
Type of values this deserializer handles: sometimes
exact types, other time most specific supertype of
types deserializer handles (which may be as generic
as |
| protected final JavaType | |
| protected static final int | F_MASK_ACCEPT_ARRAYS
Deprecated
|
| protected static final int | F_MASK_INT_COERCIONS
Bitmask that covers |
| private static final long |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected | |
| protected | StdDeserializer(StdDeserializer<?> src)
Copy-constructor for sub-classes to use, most often when creating
new instances for |
| Modifier and Type | Method and Description |
|---|---|
| protected final boolean | |
| protected CoercionAction | |
| protected CoercionAction | _checkCoercionFail(DeserializationContext ctxt, CoercionAction act, Class<?> targetType, Object inputValue, String inputDesc)
|
| protected Double | Returns: One ofDouble constants referring to special value decoded,
if value matched; null otherwise.String value to check text)Helper method called to check whether given String value contains one of
"special" values (currently, NaN ("not-a-number") and plus/minus Infinity)
and if so, returns that value; otherwise returns |
| protected Float | Returns: One ofFloat constants referring to special value decoded,
if value matched; null otherwise.String value to check text)Helper method called to check whether given String value contains one of
"special" values (currently, NaN ("not-a-number") and plus/minus Infinity)
and if so, returns that value; otherwise returns |
| protected CoercionAction | |
| protected CoercionAction | |
| protected CoercionAction | |
| protected CoercionAction | _checkFromStringCoercion(DeserializationContext ctxt, String value, LogicalType logicalType, Class<?> rawTargetType)
|
| protected CoercionAction | |
| protected CoercionAction | |
| protected boolean | _checkTextualNull(DeserializationContext ctxt, String text)
Method called when otherwise unrecognized String value is encountered for
a non-primitive type: should see if it is String value |
| protected CoercionAction | _checkToStringCoercion(JsonParser p, DeserializationContext ctxt, Class<?> rawTargetType, Object inputValue, CoercionInputShape inputShape)
|
| protected Boolean | |
| protected String | Returns: Message with backtick-enclosed name of type this deserializer supportsHelper method called to get a description of type into which a scalar value coercion is (most likely) being applied, to be used for constructing exception messages on coerce failure. |
| protected String | Returns: Message with backtick-enclosed name of target typeHelper method called to get a description of type into which a scalar value coercion is being applied, to be used for constructing exception messages on coerce failure. |
| protected Object | _coerceEmptyString(DeserializationContext ctxt, boolean isPrimitive)
Deprecated
Since 2.12
Method called when JSON String with value "" (that is, zero length) is encountered.
|
| protected Object | _coerceIntegral(JsonParser p, DeserializationContext ctxt)
Helper method called in case where an integral number is encountered, but
config settings suggest that a coercion may be needed to "upgrade"
|
| protected Object | |
| protected Object | |
| protected T | _deserializeFromArray(JsonParser p, DeserializationContext ctxt)
Helper method that allows easy support for array-related coercion features:
checks for either empty array, or single-value array-wrapped value (if coercion
enabled by |
| protected T | _deserializeFromEmpty(JsonParser p, DeserializationContext ctxt)
Deprecated
Since 2.12
Helper method that may be used to support fallback for Empty String / Empty Array
non-standard representations; usually for things serialized as JSON Objects.
|
| protected Object | _deserializeFromEmptyString(JsonParser p, DeserializationContext ctxt, CoercionAction act, Class<?> rawTargetType, String desc)
|
| protected T | _deserializeFromString(JsonParser p, DeserializationContext ctxt)
Helper method to call in case deserializer does not support native automatic use of incoming String values, but there may be standard coercions to consider. |
| protected T | _deserializeWrappedValue(JsonParser p, DeserializationContext ctxt)
Helper called to support |
| protected void | |
| protected CoercionAction | |
| protected CoercionAction | |
| protected CoercionAction | |
| protected final NullValueProvider | _findNullProvider(DeserializationContext ctxt, BeanProperty prop, Nulls nulls, JsonDeserializer<?> valueDeser)
|
| protected boolean | _hasTextualNull(String value)
Helper method called to determine if we are seeing String value of "null", and, further, that it should be coerced to null just like null token. |
| protected final boolean | |
| protected static final boolean | |
| protected boolean | |
| protected boolean | |
| protected final boolean | _isIntNumber(String text)
Helper method to check whether given text refers to what looks like a clean simple integer number, consisting of optional sign followed by a sequence of digits. |
| protected final boolean | |
| protected final boolean | |
| protected final boolean | |
| protected boolean | |
| protected static final boolean | |
| protected Number | |
| protected final Boolean | _parseBoolean(JsonParser
Underlying parser p, DeserializationContext Deserialization context for accessing configuration ctxt, Class<?> Actual type that is being deserialized, may be
same as targetType)handledType but could be AtomicBoolean for example.
Used for coercion config access.Helper method called for cases where non-primitive, boolean-based value
is to be deserialized: result of this method will be |
| protected boolean | |
| protected final boolean | |
| protected final boolean | _parseBooleanPrimitive(JsonParser
Underlying parser p, DeserializationContext Deserialization context for accessing configuration ctxt)
|
| protected final byte | |
| protected Date | |
| protected Date | |
| protected Date | |
| protected static final double | _parseDouble(final String numStr)
Helper method for encapsulating calls to low-level double value parsing; single place just because we need a work-around that must be applied to all calls. |
| protected static final double | _parseDouble(final String numStr, final boolean useFastParser)
Helper method for encapsulating calls to low-level double value parsing; single place just because we need a work-around that must be applied to all calls. |
| protected final double | |
| protected final double | |
| protected final double | |
| protected final float | |
| protected final float | |
| protected final float | |
| protected final Integer | |
| protected final Integer | |
| protected final int | |
| protected final int | |
| protected final Long | |
| protected final Long | |
| protected final long | |
| protected final long | |
| protected final short | |
| protected final String | _parseString(JsonParser p, DeserializationContext ctxt)
Deprecated
Since 2.14 (use the non-deprecated overload)
|
| protected final String | _parseString(JsonParser
Currently active parser being iterated over p, DeserializationContext Deserialization context ctxt, NullValueProvider Entity we (only) need for case of secondary value
type being coerced into nullProvider)null: if so, provider is asked for
possible "null replacement" value.Helper method used for deserializing String value, if possible, doing necessary conversion or throwing exception as necessary. |
| protected void | _reportFailedNullCoerce(DeserializationContext ctxt, boolean state, Enum<?> feature, String inputDesc)
|
| protected final boolean | |
| protected void | |
| protected final void | _verifyNullForPrimitive(DeserializationContext ctxt)
Method called to verify that |
| protected final void | _verifyNullForPrimitiveCoercion(DeserializationContext ctxt, String str)
Method called to verify that text value |
| protected final void | |
| protected void | |
| protected void | _verifyStringForScalarCoercion(DeserializationContext ctxt, String str)
Deprecated
Since 2.12 use
_checkFromStringCoercion instead
|
| public Object | deserializeWithType(JsonParser p, DeserializationContext ctxt, TypeDeserializer
Deserializer to use for handling type information typeDeserializer)Overrides com. |
| protected NullValueProvider | findContentNullProvider(DeserializationContext ctxt, BeanProperty prop, JsonDeserializer<?> valueDeser)
Method called to find |
| protected Nulls | |
| protected JsonDeserializer | findConvertingContentDeserializer(DeserializationContext ctxt, BeanProperty prop, JsonDeserializer<?>
(optional) configured content
serializer if one already exists. existingDeserializer)Helper method that can be used to see if specified property has annotation indicating that a converter is to be used for contained values (contents of structured types; array/List/Map values) |
| protected JsonDeserializer | findDeserializer(DeserializationContext ctxt, JavaType
Type of property to deserialize type, BeanProperty Actual property object (field, method, constuctor parameter) used
for passing deserialized values; provided so deserializer can be contextualized if necessary property)Helper method used to locate deserializers for properties the type this deserializer handles contains (usually for properties of bean types) |
| protected Boolean | findFormatFeature(DeserializationContext ctxt, BeanProperty prop, Class<?>
Type (erased) used for finding default format settings, if any typeForDefaults, JsonFormat.Convenience method that uses |
| protected JsonFormat. | findFormatOverrides(DeserializationContext ctxt, BeanProperty prop, Class<?>
Type (erased) used for finding default format settings, if any typeForDefaults)Helper method that may be used to find if this deserializer has specific
|
| protected final NullValueProvider | findValueNullProvider(DeserializationContext ctxt, SettableBeanProperty prop, PropertyMetadata propMetadata)
Method called to find |
| public final Class | |
| public ValueInstantiator | |
| public JavaType | |
| public JavaType | getValueType(DeserializationContext ctxt)
Convenience method for getting handled type as
if (getValueType() != null) {
return getValueType();
}
return ctxt.constructType(handledType());
|
| public Class | handledType()
Overrides com. |
| protected void | |
| protected Object | handleNestedArrayForSingle(JsonParser p, DeserializationContext ctxt)
Helper method called when detecting a deep(er) nesting of Arrays when trying
to unwrap value for |
| protected void | handleUnknownProperty(JsonParser
Parser that points to value of the unknown property p, DeserializationContext Context for deserialization; allows access to the parser,
error reporting functionality ctxt, Object Instance that is being populated by this
deserializer, or if not known, Class that would be instantiated.
If null, will assume type is what instanceOrClass, String getValueClass returns.Name of the property that cannot be mapped propName)Method called to deal with a property that did not map to a known Bean property. |
| protected boolean | isDefaultDeserializer(JsonDeserializer<?> deserializer)
Method that can be called to determine if given deserializer is the default deserializer Jackson uses; as opposed to a custom deserializer installed by a module or calling application. |
| protected boolean |