Class TypeDeserializerBase
java.lang.Object
org.codehaus.jackson.map.TypeDeserializer
org.codehaus.jackson.map.jsontype.impl.TypeDeserializerBase
- Direct Known Subclasses:
AsArrayTypeDeserializer
,AsWrapperTypeDeserializer
- Since:
- 1.5
- Author:
- tatus
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final JavaType
protected final JavaType
Type to use as the default implementation, if type id is missing or can not be resolved.protected JsonDeserializer<Object>
protected final HashMap<String,
JsonDeserializer<Object>> For efficient operation we will lazily build mappings from type ids to actual deserializers, once needed.protected final TypeIdResolver
protected final BeanProperty
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
TypeDeserializerBase
(JavaType baseType, TypeIdResolver idRes, BeanProperty property) Deprecated.Since 1.9, use the constructor that takes 'defaultImpl'protected
TypeDeserializerBase
(JavaType baseType, TypeIdResolver idRes, BeanProperty property, Class<?> defaultImpl) -
Method Summary
Modifier and TypeMethodDescriptionprotected final JsonDeserializer<Object>
protected final JsonDeserializer<Object>
_findDeserializer
(DeserializationContext ctxt, String typeId) Class<?>
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)Name of property that contains type information, if property-based inclusion is used.Accessor for object that handles conversions between types and matching type ids.abstract JsonTypeInfo.As
Accessor for type information inclusion method that deserializer uses; indicates how type information is (expected to be) embedded in JSON input.toString()
Methods inherited from class org.codehaus.jackson.map.TypeDeserializer
deserializeTypedFromAny, deserializeTypedFromArray, deserializeTypedFromObject, deserializeTypedFromScalar
-
Field Details
-
_idResolver
-
_baseType
-
_property
-
_defaultImpl
Type to use as the default implementation, if type id is missing or can not be resolved.- Since:
- 1.9
-
_deserializers
For efficient operation we will lazily build mappings from type ids to actual deserializers, once needed. -
_defaultImplDeserializer
- Since:
- 1.9
-
-
Constructor Details
-
TypeDeserializerBase
@Deprecated protected TypeDeserializerBase(JavaType baseType, TypeIdResolver idRes, BeanProperty property) Deprecated.Since 1.9, use the constructor that takes 'defaultImpl' -
TypeDeserializerBase
protected TypeDeserializerBase(JavaType baseType, TypeIdResolver idRes, BeanProperty property, Class<?> defaultImpl)
-
-
Method Details
-
getTypeInclusion
Description copied from class:TypeDeserializer
Accessor for type information inclusion method that deserializer uses; indicates how type information is (expected to be) embedded in JSON input.- Specified by:
getTypeInclusion
in classTypeDeserializer
-
baseTypeName
-
getPropertyName
Description copied from class:TypeDeserializer
Name of property that contains type information, if property-based inclusion is used.- Specified by:
getPropertyName
in classTypeDeserializer
-
getTypeIdResolver
Description copied from class:TypeDeserializer
Accessor for object that handles conversions between types and matching type ids.- Specified by:
getTypeIdResolver
in classTypeDeserializer
-
getDefaultImpl
Description copied from class:TypeDeserializer
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)- Specified by:
getDefaultImpl
in classTypeDeserializer
-
toString
-
_findDeserializer
protected final JsonDeserializer<Object> _findDeserializer(DeserializationContext ctxt, String typeId) throws IOException, JsonProcessingException - Throws:
IOException
JsonProcessingException
-
_findDefaultImplDeserializer
protected final JsonDeserializer<Object> _findDefaultImplDeserializer(DeserializationContext ctxt) throws IOException, JsonProcessingException - Throws:
IOException
JsonProcessingException
-