Class TypeDeserializerBase
- java.lang.Object
-
- com.fasterxml.jackson.databind.jsontype.TypeDeserializer
-
- com.fasterxml.jackson.databind.jsontype.impl.TypeDeserializerBase
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
AsArrayTypeDeserializer,AsWrapperTypeDeserializer
public abstract class TypeDeserializerBase extends TypeDeserializer implements java.io.Serializable
Base class for all standard JacksonTypeDeserializers.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description JavaTypebaseType()java.lang.StringbaseTypeName()abstract TypeDeserializerforProperty(BeanProperty prop)Method called to create contextual version, to be used for values of given property.java.lang.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 cannot be resolved)java.lang.StringgetPropertyName()Name of property that contains type information, if property-based inclusion is used.TypeIdResolvergetTypeIdResolver()Accessor for object that handles conversions between types and matching type ids.abstract JsonTypeInfo.AsgetTypeInclusion()Accessor for type information inclusion method that deserializer uses; indicates how type information is (expected to be) embedded in JSON input.booleanhasDefaultImpl()java.lang.StringtoString()-
Methods inherited from class com.fasterxml.jackson.databind.jsontype.TypeDeserializer
deserializeIfNatural, deserializeIfNatural, deserializeTypedFromAny, deserializeTypedFromArray, deserializeTypedFromObject, deserializeTypedFromScalar
-
-
-
-
Method Detail
-
forProperty
public abstract TypeDeserializer forProperty(BeanProperty prop)
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
public abstract JsonTypeInfo.As 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
public java.lang.String baseTypeName()
-
getPropertyName
public final java.lang.String getPropertyName()
Description copied from class:TypeDeserializerName of property that contains type information, if property-based inclusion is used.- Specified by:
getPropertyNamein classTypeDeserializer
-
getTypeIdResolver
public TypeIdResolver getTypeIdResolver()
Description copied from class:TypeDeserializerAccessor for object that handles conversions between types and matching type ids.- Specified by:
getTypeIdResolverin classTypeDeserializer
-
getDefaultImpl
public java.lang.Class<?> 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
public JavaType baseType()
- Since:
- 2.9
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-