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 JavaTypeprotected final JavaTypeType 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 TypeIdResolverprotected final BeanProperty -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTypeDeserializerBase(JavaType baseType, TypeIdResolver idRes, BeanProperty property) Deprecated.Since 1.9, use the constructor that takes 'defaultImpl'protectedTypeDeserializerBase(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.AsAccessor 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 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:TypeDeserializerAccessor for type information inclusion method that deserializer uses; indicates how type information is (expected to be) embedded in JSON input.- Specified by:
getTypeInclusionin classTypeDeserializer
-
baseTypeName
-
getPropertyName
Description copied from class:TypeDeserializerName of property that contains type information, if property-based inclusion is used.- Specified by:
getPropertyNamein classTypeDeserializer
-
getTypeIdResolver
Description copied from class:TypeDeserializerAccessor for object that handles conversions between types and matching type ids.- Specified by:
getTypeIdResolverin classTypeDeserializer
-
getDefaultImpl
Description copied from class:TypeDeserializerAccessor 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:
getDefaultImplin classTypeDeserializer
-
toString
-
_findDeserializer
protected final JsonDeserializer<Object> _findDeserializer(DeserializationContext ctxt, String typeId) throws IOException, JsonProcessingException - Throws:
IOExceptionJsonProcessingException
-
_findDefaultImplDeserializer
protected final JsonDeserializer<Object> _findDefaultImplDeserializer(DeserializationContext ctxt) throws IOException, JsonProcessingException - Throws:
IOExceptionJsonProcessingException
-