public abstract class AbstractBeanJsonDeserializer<T> extends JsonDeserializer<T>
JsonDeserializer for beans.| Modifier and Type | Field and Description |
|---|---|
protected InstanceBuilder<T> |
instanceBuilder |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractBeanJsonDeserializer()
Constructor for AbstractBeanJsonDeserializer.
|
deserialize, deserialize, deserializeNullValueprotected final InstanceBuilder<T> instanceBuilder
protected AbstractBeanJsonDeserializer()
Constructor for AbstractBeanJsonDeserializer.
protected InstanceBuilder<T> initInstanceBuilder()
InstanceBuilder. Returns null if the class isn't instantiable.InstanceBuilder object.protected MapLike<BeanPropertyDeserializer<T,?>> initDeserializers()
MapLike containing the property deserializers. Returns an empty map if there are no properties to
deserialize.MapLike object.protected MapLike<BackReferenceProperty<T,?>> initBackReferenceDeserializers()
MapLike containing the back reference deserializers. Returns an empty map if there are no back
reference on the bean.MapLike object.protected Set<String> initIgnoredProperties()
Set containing the ignored property names. Returns an empty set if there are no ignored properties.Set object.protected Set<String> initRequiredProperties()
Set containing the required property names. Returns an empty set if there are no required properties.Set object.protected IdentityDeserializationInfo<T> initIdentityInfo()
IdentityDeserializationInfo. Returns null if there is no JsonIdentityInfo annotation on bean.IdentityDeserializationInfo object.protected TypeDeserializationInfo<T> initTypeInfo()
TypeDeserializationInfo. Returns null if there is no JsonTypeInfo annotation on bean.TypeDeserializationInfo object.protected Map<Class,SubtypeDeserializer> initMapSubtypeClassToDeserializer()
Map containing the SubtypeDeserializer. Returns an empty map if the bean has no subtypes.Map object.protected AnySetterDeserializer<T,?> initAnySetterDeserializer()
AnySetterDeserializer. Returns null if there is no method annoted with JsonAnySetter on bean.AnySetterDeserializer object.protected boolean isDefaultIgnoreUnknown()
JsonDeserializationException) or not.public abstract Class getDeserializedType()
getDeserializedType
Class object.public T doDeserialize(JsonReader reader, JsonDeserializationContext ctx, JsonDeserializerParameters params)
doDeserialize in class JsonDeserializer<T>reader - JsonReader used to read the JSON inputctx - Context for the full deserialization processparams - Parameters for this deserializationprotected boolean canDeserialize()
canDeserialize
public T deserializeWrapped(JsonReader reader, JsonDeserializationContext ctx, JsonDeserializerParameters params, IdentityDeserializationInfo identityInfo, TypeDeserializationInfo typeInfo, String typeInformation)
deserializeWrapped
reader - a JsonReader object.ctx - a JsonDeserializationContext object.params - a JsonDeserializerParameters object.identityInfo - a IdentityDeserializationInfo object.typeInfo - a TypeDeserializationInfo object.typeInformation - a String object.public final T deserializeInline(JsonReader reader, JsonDeserializationContext ctx, JsonDeserializerParameters params, IdentityDeserializationInfo identityInfo, TypeDeserializationInfo typeInfo, String type, Map<String,String> bufferedProperties)
deserializeInline
Deserializes all the properties of the bean. The JsonReader must be in a json object.
reader - a JsonReader object.ctx - a JsonDeserializationContext object.params - a JsonDeserializerParameters object.identityInfo - a IdentityDeserializationInfo object.typeInfo - a TypeDeserializationInfo object.type - a String object.bufferedProperties - a Map object.public AbstractBeanJsonDeserializer<T> getDeserializer()
getDeserializer
public void setBackReference(String referenceName, Object reference, T value, JsonDeserializationContext ctx)
setBackReference in class JsonDeserializer<T>referenceName - name of the referencereference - reference to setvalue - value to set the reference to.ctx - Context for the full deserialization processCopyright © 2020. All rights reserved.