Class TypeDeserializerBase
java.lang.Object
com.fasterxml.jackson.databind.jsontype.TypeDeserializer
com.fasterxml.jackson.databind.jsontype.impl.TypeDeserializerBase
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AsArrayTypeDeserializer,AsWrapperTypeDeserializer
Base class for all standard Jackson
TypeDeserializers.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbaseType()abstract TypeDeserializerforProperty(BeanProperty prop) Method called to create contextual version, to be used for values of given property.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 cannot be resolved)final StringName 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.booleantoString()Methods inherited from class com.fasterxml.jackson.databind.jsontype.TypeDeserializer
deserializeIfNatural, deserializeIfNatural, deserializeTypedFromAny, deserializeTypedFromArray, deserializeTypedFromObject, deserializeTypedFromScalar
-
Method Details
-
forProperty
Description copied from class:TypeDeserializerMethod called to create contextual version, to be used for values of given property. This may be the type itself (as is the case for bean properties), or values contained (forCollectionorMapvalued properties).- Specified by:
forPropertyin classTypeDeserializer
-
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 cannot be resolved)- Specified by:
getDefaultImplin classTypeDeserializer
-
hasDefaultImpl
public boolean hasDefaultImpl()- Overrides:
hasDefaultImplin classTypeDeserializer
-
baseType
- Since:
- 2.9
-
toString
-