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_PROPERTYinclusion mechanism. Actual implementation may look bit strange since it depends on comprehensive pre-processing done byBeanDeserializerto 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 TypeDeserializerforProperty(BeanProperty prop)Method called to create contextual version, to be used for values of given property.JsonTypeInfo.AsgetTypeInclusion()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, 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: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).- Overrides:
forPropertyin classAsArrayTypeDeserializer
-
getTypeInclusion
public 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.- Overrides:
getTypeInclusionin classAsArrayTypeDeserializer
-
-