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:
Serializable
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.- See Also:
-
Field Summary
Fields inherited from class TypeDeserializerBase
_baseType, _defaultImpl, _defaultImplDeserializer, _deserializers, _idResolver, _property, _typeIdVisible, _typePropertyName -
Constructor Summary
ConstructorsConstructorDescriptionAsExternalTypeDeserializer(JavaType bt, TypeIdResolver idRes, String typePropertyName, boolean typeIdVisible, JavaType defaultImpl) AsExternalTypeDeserializer(AsExternalTypeDeserializer src, BeanProperty property) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanforProperty(BeanProperty prop) Method called to create contextual version, to be used for values of given property.com.fasterxml.jackson.annotation.JsonTypeInfo.AsAccessor for type information inclusion method that deserializer uses; indicates how type information is (expected to be) embedded in JSON input.Methods inherited from class AsArrayTypeDeserializer
_deserialize, _locateTypeId, deserializeTypedFromAny, deserializeTypedFromArray, deserializeTypedFromObject, deserializeTypedFromScalarMethods inherited from class TypeDeserializerBase
_deserializeWithNativeTypeId, _deserializeWithNativeTypeId, _findDefaultImplDeserializer, _findDeserializer, _handleMissingTypeId, _handleUnknownTypeId, baseType, baseTypeName, getDefaultImpl, getPropertyName, getTypeIdResolver, hasDefaultImpl, toStringMethods inherited from class TypeDeserializer
deserializeIfNatural, deserializeIfNatural
-
Constructor Details
-
AsExternalTypeDeserializer
public AsExternalTypeDeserializer(JavaType bt, TypeIdResolver idRes, String typePropertyName, boolean typeIdVisible, JavaType defaultImpl) - Since:
- 2.8
-
AsExternalTypeDeserializer
-
-
Method Details
-
forProperty
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 com.fasterxml.jackson.annotation.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
-
_usesExternalId
protected boolean _usesExternalId()- Overrides:
_usesExternalIdin classAsArrayTypeDeserializer
-