public abstract class TypeDeserializerBase extends TypeDeserializer
限定符和类型 | 字段和说明 |
---|---|
protected JavaType |
_baseType |
protected JavaType |
_defaultImpl
Type to use as the default implementation, if type id is
missing or can not be resolved.
|
protected JsonDeserializer<Object> |
_defaultImplDeserializer |
protected HashMap<String,JsonDeserializer<Object>> |
_deserializers
For efficient operation we will lazily build mappings from type ids
to actual deserializers, once needed.
|
protected TypeIdResolver |
_idResolver |
protected BeanProperty |
_property |
限定符 | 构造器和说明 |
---|---|
protected |
TypeDeserializerBase(JavaType baseType,
TypeIdResolver idRes,
BeanProperty property)
已过时。
Since 1.9, use the constructor that takes 'defaultImpl'
|
protected |
TypeDeserializerBase(JavaType baseType,
TypeIdResolver idRes,
BeanProperty property,
Class<?> defaultImpl) |
限定符和类型 | 方法和说明 |
---|---|
protected JsonDeserializer<Object> |
_findDefaultImplDeserializer(DeserializationContext ctxt) |
protected JsonDeserializer<Object> |
_findDeserializer(DeserializationContext ctxt,
String typeId) |
String |
baseTypeName() |
Class<?> |
getDefaultImpl()
Accessor for "default implementation" type; optionally defined
class to use in cases where type id is not
accessible for some reason (either missing, or can not be
resolved)
|
String |
getPropertyName()
Name of property that contains type information, if
property-based inclusion is used.
|
TypeIdResolver |
getTypeIdResolver()
Accessor for object that handles conversions between
types and matching type ids.
|
abstract JsonTypeInfo.As |
getTypeInclusion()
Accessor for type information inclusion method
that deserializer uses; indicates how type information
is (expected to be) embedded in JSON input.
|
String |
toString() |
deserializeTypedFromAny, deserializeTypedFromArray, deserializeTypedFromObject, deserializeTypedFromScalar
protected final TypeIdResolver _idResolver
protected final JavaType _baseType
protected final BeanProperty _property
protected final JavaType _defaultImpl
protected final HashMap<String,JsonDeserializer<Object>> _deserializers
protected JsonDeserializer<Object> _defaultImplDeserializer
@Deprecated protected TypeDeserializerBase(JavaType baseType, TypeIdResolver idRes, BeanProperty property)
protected TypeDeserializerBase(JavaType baseType, TypeIdResolver idRes, BeanProperty property, Class<?> defaultImpl)
public abstract JsonTypeInfo.As getTypeInclusion()
TypeDeserializer
getTypeInclusion
在类中 TypeDeserializer
public String baseTypeName()
public String getPropertyName()
TypeDeserializer
getPropertyName
在类中 TypeDeserializer
public TypeIdResolver getTypeIdResolver()
TypeDeserializer
getTypeIdResolver
在类中 TypeDeserializer
public Class<?> getDefaultImpl()
TypeDeserializer
getDefaultImpl
在类中 TypeDeserializer
protected final JsonDeserializer<Object> _findDeserializer(DeserializationContext ctxt, String typeId) throws IOException, JsonProcessingException
protected final JsonDeserializer<Object> _findDefaultImplDeserializer(DeserializationContext ctxt) throws IOException, JsonProcessingException