public abstract class StdDeserializer<T> extends JsonDeserializer<T> implements java.io.Serializable, ValueInstantiator.Gettable
JsonDeserializer.None| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
deserializeWithType(JsonParser p,
DeserializationContext ctxt,
TypeDeserializer typeDeserializer)
Base implementation that does not assume specific type
inclusion mechanism.
|
java.lang.Class<?> |
getValueClass()
Deprecated.
Since 2.3 use
handledType() instead |
ValueInstantiator |
getValueInstantiator() |
JavaType |
getValueType()
Exact structured type this deserializer handles, if known.
|
JavaType |
getValueType(DeserializationContext ctxt)
Convenience method for getting handled type as
JavaType, regardless
of whether deserializer has one already resolved (and accessible via
getValueType()) or not: equivalent to: |
java.lang.Class<?> |
handledType()
Method for accessing concrete physical type of values this deserializer produces.
|
deserialize, deserialize, deserializeWithType, findBackReference, getAbsentValue, getDelegatee, getEmptyAccessPattern, getEmptyValue, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getNullValue, getObjectIdReader, isCachable, logicalType, replaceDelegatee, supportsUpdate, unwrappingDeserializerpublic java.lang.Class<?> handledType()
JsonDeserializer
Default implementation will return null, which means almost same
same as returning Object.class would; that is, that
nothing is known about handled type.
handledType in class JsonDeserializer<T>null if not@Deprecated public final java.lang.Class<?> getValueClass()
handledType() insteadpublic JavaType getValueType()
public JavaType getValueType(DeserializationContext ctxt)
JavaType, regardless
of whether deserializer has one already resolved (and accessible via
getValueType()) or not: equivalent to:
if (getValueType() != null) {
return getValueType();
}
return ctxt.constructType(handledType());
public ValueInstantiator getValueInstantiator()
getValueInstantiator in interface ValueInstantiator.Gettablepublic java.lang.Object deserializeWithType(JsonParser p, DeserializationContext ctxt, TypeDeserializer typeDeserializer) throws java.io.IOException
deserializeWithType in class JsonDeserializer<T>typeDeserializer - Deserializer to use for handling type informationjava.io.IOExceptionCopyright © 2010 - 2023 Adobe. All Rights Reserved