Class AsExternalTypeDeserializer
java.lang.Object
org.codehaus.jackson.map.TypeDeserializer
org.codehaus.jackson.map.jsontype.impl.TypeDeserializerBase
org.codehaus.jackson.map.jsontype.impl.AsArrayTypeDeserializer
org.codehaus.jackson.map.jsontype.impl.AsExternalTypeDeserializer
Type deserializer used with
JsonTypeInfo.As.EXTERNAL_PROPERTY
inclusion mechanism.
Actual implementation may look bit strange since it depends on comprehensive
pre-processing done by BeanDeserializer
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.- Since:
- 1.9
-
Field Summary
FieldsFields inherited from class org.codehaus.jackson.map.jsontype.impl.TypeDeserializerBase
_baseType, _defaultImpl, _defaultImplDeserializer, _deserializers, _idResolver, _property
-
Constructor Summary
ConstructorsConstructorDescriptionAsExternalTypeDeserializer
(JavaType bt, TypeIdResolver idRes, BeanProperty property, Class<?> defaultImpl, String typePropName) -
Method Summary
Modifier and TypeMethodDescriptionName of property that contains type information, if property-based inclusion is used.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 org.codehaus.jackson.map.jsontype.impl.AsArrayTypeDeserializer
_locateTypeId, deserializeTypedFromAny, deserializeTypedFromArray, deserializeTypedFromObject, deserializeTypedFromScalar
Methods inherited from class org.codehaus.jackson.map.jsontype.impl.TypeDeserializerBase
_findDefaultImplDeserializer, _findDeserializer, baseTypeName, getDefaultImpl, getTypeIdResolver, toString
-
Field Details
-
_typePropertyName
-
-
Constructor Details
-
AsExternalTypeDeserializer
public AsExternalTypeDeserializer(JavaType bt, TypeIdResolver idRes, BeanProperty property, Class<?> defaultImpl, String typePropName)
-
-
Method Details
-
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
-
getPropertyName
Description copied from class:TypeDeserializer
Name of property that contains type information, if property-based inclusion is used.- Overrides:
getPropertyName
in classTypeDeserializerBase
-