org.codehaus.jackson.map.jsontype.impl
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
public class AsExternalTypeDeserializer
- extends AsArrayTypeDeserializer
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
Method Summary |
String |
getPropertyName()
Name of property that contains type information, if
property-based inclusion is used. |
JsonTypeInfo.As |
getTypeInclusion()
Accessor for type information inclusion method
that deserializer uses; indicates how type information
is (expected to be) embedded in JSON input. |
_typePropertyName
protected final String _typePropertyName
AsExternalTypeDeserializer
public AsExternalTypeDeserializer(JavaType bt,
TypeIdResolver idRes,
BeanProperty property,
Class<?> defaultImpl,
String typePropName)
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 class AsArrayTypeDeserializer
getPropertyName
public String getPropertyName()
- Description copied from class:
TypeDeserializer
- Name of property that contains type information, if
property-based inclusion is used.
- Overrides:
getPropertyName
in class TypeDeserializerBase