public abstract class StdDeserializer<T> extends JsonDeserializer<T> implements java.io.Serializable
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 |
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 type of values this deserializer produces.
|
deserialize, deserialize, deserializeWithType, findBackReference, getDelegatee, getEmptyAccessPattern, getEmptyValue, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getNullValue, getObjectIdReader, isCachable, replaceDelegatee, supportsUpdate, unwrappingDeserializer
public 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>
@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 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.IOException
Copyright © 2010 - 2020 Adobe. All Rights Reserved