Class AsExternalTypeDeserializer
- java.lang.Object
-
- com.fasterxml.jackson.databind.jsontype.TypeDeserializer
-
- com.fasterxml.jackson.databind.jsontype.impl.TypeDeserializerBase
-
- com.fasterxml.jackson.databind.jsontype.impl.AsArrayTypeDeserializer
-
- com.fasterxml.jackson.databind.jsontype.impl.AsExternalTypeDeserializer
-
- All Implemented Interfaces:
java.io.Serializable
public class AsExternalTypeDeserializer extends AsArrayTypeDeserializer
Type deserializer used withJsonTypeInfo.As.EXTERNAL_PROPERTY
inclusion mechanism. Actual implementation may look bit strange since it depends on comprehensive pre-processing done byBeanDeserializer
to basically transform external type id into structure that looks more like "wrapper-array" style inclusion. This intermediate form is chosen to allow supporting all possible JSON structures.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AsExternalTypeDeserializer(JavaType bt, TypeIdResolver idRes, java.lang.String typePropertyName, boolean typeIdVisible, JavaType defaultImpl)
AsExternalTypeDeserializer(AsExternalTypeDeserializer src, BeanProperty property)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TypeDeserializer
forProperty(BeanProperty prop)
Method called to create contextual version, to be used for values of given property.JsonTypeInfo.As
getTypeInclusion()
Accessor for type information inclusion method that deserializer uses; indicates how type information is (expected to be) embedded in JSON input.-
Methods inherited from class com.fasterxml.jackson.databind.jsontype.impl.AsArrayTypeDeserializer
deserializeTypedFromAny, deserializeTypedFromArray, deserializeTypedFromObject, deserializeTypedFromScalar
-
Methods inherited from class com.fasterxml.jackson.databind.jsontype.impl.TypeDeserializerBase
baseType, baseTypeName, getDefaultImpl, getPropertyName, getTypeIdResolver, hasDefaultImpl, toString
-
Methods inherited from class com.fasterxml.jackson.databind.jsontype.TypeDeserializer
deserializeIfNatural, deserializeIfNatural
-
-
-
-
Constructor Detail
-
AsExternalTypeDeserializer
public AsExternalTypeDeserializer(JavaType bt, TypeIdResolver idRes, java.lang.String typePropertyName, boolean typeIdVisible, JavaType defaultImpl)
- Since:
- 2.8
-
AsExternalTypeDeserializer
public AsExternalTypeDeserializer(AsExternalTypeDeserializer src, BeanProperty property)
-
-
Method Detail
-
forProperty
public TypeDeserializer forProperty(BeanProperty prop)
Description copied from class:TypeDeserializer
Method 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 (forCollection
orMap
valued properties).- Overrides:
forProperty
in classAsArrayTypeDeserializer
-
getTypeInclusion
public JsonTypeInfo.As 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.- Overrides:
getTypeInclusion
in classAsArrayTypeDeserializer
-
-