public class AsPropertyTypeDeserializer extends AsArrayTypeDeserializer
JsonTypeInfo.As.PROPERTY
inclusion mechanism.
Uses regular form (additional key/value entry before actual data)
when typed object is expressed as JSON Object; otherwise behaves similar to how
JsonTypeInfo.As.WRAPPER_ARRAY works.
Latter is used if JSON representation is polymorphic| Modifier and Type | Field and Description |
|---|---|
protected JsonTypeInfo.As |
_inclusion |
protected String |
_msgForMissingId |
_baseType, _defaultImpl, _defaultImplDeserializer, _deserializers, _idResolver, _property, _typeIdVisible, _typePropertyName| Constructor and Description |
|---|
AsPropertyTypeDeserializer(AsPropertyTypeDeserializer src,
BeanProperty property) |
AsPropertyTypeDeserializer(JavaType bt,
TypeIdResolver idRes,
String typePropertyName,
boolean typeIdVisible,
JavaType defaultImpl) |
AsPropertyTypeDeserializer(JavaType bt,
TypeIdResolver idRes,
String typePropertyName,
boolean typeIdVisible,
JavaType defaultImpl,
JsonTypeInfo.As inclusion) |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
_deserializeTypedForId(JsonParser p,
DeserializationContext ctxt,
TokenBuffer tb,
String typeId) |
protected Object |
_deserializeTypedUsingDefaultImpl(JsonParser p,
DeserializationContext ctxt,
TokenBuffer tb)
Deprecated.
|
protected Object |
_deserializeTypedUsingDefaultImpl(JsonParser p,
DeserializationContext ctxt,
TokenBuffer tb,
String priorFailureMsg) |
Object |
deserializeTypedFromAny(JsonParser p,
DeserializationContext ctxt)
Method called to let this type deserializer handle
deserialization of "typed" object, when value itself
may have been serialized using any kind of JSON value
(Array, Object, scalar).
|
Object |
deserializeTypedFromObject(JsonParser p,
DeserializationContext ctxt)
This is the trickiest thing to handle, since property we are looking
for may be anywhere...
|
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.
|
_deserialize, _locateTypeId, _usesExternalId, deserializeTypedFromArray, deserializeTypedFromScalar_deserializeWithNativeTypeId, _deserializeWithNativeTypeId, _findDefaultImplDeserializer, _findDeserializer, _handleMissingTypeId, _handleUnknownTypeId, baseType, baseTypeName, getDefaultImpl, getPropertyName, getTypeIdResolver, hasDefaultImpl, toStringdeserializeIfNatural, deserializeIfNaturalprotected final JsonTypeInfo.As _inclusion
protected final String _msgForMissingId
public AsPropertyTypeDeserializer(JavaType bt, TypeIdResolver idRes, String typePropertyName, boolean typeIdVisible, JavaType defaultImpl)
public AsPropertyTypeDeserializer(JavaType bt, TypeIdResolver idRes, String typePropertyName, boolean typeIdVisible, JavaType defaultImpl, JsonTypeInfo.As inclusion)
public AsPropertyTypeDeserializer(AsPropertyTypeDeserializer src, BeanProperty property)
public TypeDeserializer forProperty(BeanProperty prop)
TypeDeserializerCollection or Map
valued properties).forProperty in class AsArrayTypeDeserializerpublic JsonTypeInfo.As getTypeInclusion()
TypeDeserializergetTypeInclusion in class AsArrayTypeDeserializerpublic Object deserializeTypedFromObject(JsonParser p, DeserializationContext ctxt) throws IOException
deserializeTypedFromObject in class AsArrayTypeDeserializerIOExceptionprotected Object _deserializeTypedForId(JsonParser p, DeserializationContext ctxt, TokenBuffer tb, String typeId) throws IOException
IOException@Deprecated protected Object _deserializeTypedUsingDefaultImpl(JsonParser p, DeserializationContext ctxt, TokenBuffer tb) throws IOException
IOExceptionprotected Object _deserializeTypedUsingDefaultImpl(JsonParser p, DeserializationContext ctxt, TokenBuffer tb, String priorFailureMsg) throws IOException
IOExceptionpublic Object deserializeTypedFromAny(JsonParser p, DeserializationContext ctxt) throws IOException
TypeDeserializerdeserializeTypedFromAny in class AsArrayTypeDeserializerIOExceptionCopyright © 2008–2021 FasterXML. All rights reserved.