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 polymorphicModifier and Type | Field and Description |
---|---|
protected JsonTypeInfo.As |
_inclusion |
_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) |
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, toString
deserializeIfNatural, deserializeIfNatural
protected final JsonTypeInfo.As _inclusion
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)
TypeDeserializer
Collection
or Map
valued properties).forProperty
in class AsArrayTypeDeserializer
public JsonTypeInfo.As getTypeInclusion()
TypeDeserializer
getTypeInclusion
in class AsArrayTypeDeserializer
public Object deserializeTypedFromObject(JsonParser p, DeserializationContext ctxt) throws IOException
deserializeTypedFromObject
in class AsArrayTypeDeserializer
IOException
protected Object _deserializeTypedForId(JsonParser p, DeserializationContext ctxt, TokenBuffer tb, String typeId) throws IOException
IOException
protected Object _deserializeTypedUsingDefaultImpl(JsonParser p, DeserializationContext ctxt, TokenBuffer tb) throws IOException
IOException
public Object deserializeTypedFromAny(JsonParser p, DeserializationContext ctxt) throws IOException
TypeDeserializer
deserializeTypedFromAny
in class AsArrayTypeDeserializer
IOException
Copyright © 2021 JBoss by Red Hat. All rights reserved.