public abstract class StdDeserializer<T> extends JsonDeserializer<T> implements Serializable
JsonDeserializer.None| Modifier and Type | Method and Description |
|---|---|
Object |
deserializeWithType(JsonParser p,
DeserializationContext ctxt,
TypeDeserializer typeDeserializer)
Base implementation that does not assume specific type
inclusion mechanism.
|
Class<?> |
getValueClass()
Deprecated.
Since 2.3 use
handledType() instead |
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: |
Class<?> |
handledType()
Method for accessing type of values this deserializer produces.
|
deserialize, deserialize, deserializeWithType, findBackReference, getDelegatee, getEmptyAccessPattern, getEmptyValue, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getNullValue, getObjectIdReader, isCachable, replaceDelegatee, supportsUpdate, unwrappingDeserializerpublic 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>@Deprecated public final 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 Object deserializeWithType(JsonParser p, DeserializationContext ctxt, TypeDeserializer typeDeserializer) throws IOException
deserializeWithType in class JsonDeserializer<T>typeDeserializer - Deserializer to use for handling type informationIOExceptionCopyright © 2010 - 2020 Adobe. All Rights Reserved