|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.fasterxml.jackson.databind.jsontype.TypeDeserializer com.fasterxml.jackson.databind.jsontype.impl.TypeDeserializerBase
public abstract class TypeDeserializerBase
Base class for all standard Jackson TypeDeserializer
s.
Field Summary | |
---|---|
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
Property that contains value for which type information is included; null if value is a root value. |
protected boolean |
_typeIdVisible
|
protected String |
_typePropertyName
Name of type property used; needed for non-property versions too, in cases where type id is to be exposed as part of JSON. |
Constructor Summary | |
---|---|
protected |
TypeDeserializerBase(JavaType baseType,
TypeIdResolver idRes,
String typePropertyName,
boolean typeIdVisible,
Class<?> defaultImpl)
|
protected |
TypeDeserializerBase(TypeDeserializerBase src,
BeanProperty property)
|
Method Summary | |
---|---|
protected JsonDeserializer<Object> |
_findDefaultImplDeserializer(DeserializationContext ctxt)
|
protected JsonDeserializer<Object> |
_findDeserializer(DeserializationContext ctxt,
String typeId)
|
String |
baseTypeName()
|
abstract TypeDeserializer |
forProperty(BeanProperty prop)
Method called to create contextual version, to be used for values of given property. |
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 com.fasterxml.jackson.annotation.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()
|
Methods inherited from class com.fasterxml.jackson.databind.jsontype.TypeDeserializer |
---|
deserializeTypedFromAny, deserializeTypedFromArray, deserializeTypedFromObject, deserializeTypedFromScalar |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final TypeIdResolver _idResolver
protected final JavaType _baseType
protected final BeanProperty _property
forProperty(com.fasterxml.jackson.databind.BeanProperty)
is called to create
a copy.
protected final JavaType _defaultImpl
protected final String _typePropertyName
protected final boolean _typeIdVisible
protected final HashMap<String,JsonDeserializer<Object>> _deserializers
protected JsonDeserializer<Object> _defaultImplDeserializer
Constructor Detail |
---|
protected TypeDeserializerBase(JavaType baseType, TypeIdResolver idRes, String typePropertyName, boolean typeIdVisible, Class<?> defaultImpl)
protected TypeDeserializerBase(TypeDeserializerBase src, BeanProperty property)
Method Detail |
---|
public abstract TypeDeserializer forProperty(BeanProperty prop)
TypeDeserializer
Collection
or Map
valued properties).
forProperty
in class TypeDeserializer
public abstract com.fasterxml.jackson.annotation.JsonTypeInfo.As getTypeInclusion()
TypeDeserializer
getTypeInclusion
in class TypeDeserializer
public String baseTypeName()
public final String getPropertyName()
TypeDeserializer
getPropertyName
in class TypeDeserializer
public TypeIdResolver getTypeIdResolver()
TypeDeserializer
getTypeIdResolver
in class TypeDeserializer
public Class<?> getDefaultImpl()
TypeDeserializer
getDefaultImpl
in class TypeDeserializer
public String toString()
toString
in class Object
protected final JsonDeserializer<Object> _findDeserializer(DeserializationContext ctxt, String typeId) throws IOException, com.fasterxml.jackson.core.JsonProcessingException
IOException
com.fasterxml.jackson.core.JsonProcessingException
protected final JsonDeserializer<Object> _findDefaultImplDeserializer(DeserializationContext ctxt) throws IOException, com.fasterxml.jackson.core.JsonProcessingException
IOException
com.fasterxml.jackson.core.JsonProcessingException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |