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() |
deserialize, deserialize, deserializeNullValueprotected final InstanceBuilder<T> instanceBuilder
protected InstanceBuilder<T> initInstanceBuilder()
InstanceBuilder. Returns null if the class isn't instantiable.protected SimpleStringMap<BeanPropertyDeserializer<T,?>> initDeserializers()
SimpleStringMap containing the property deserializers. Returns an empty map if there are no properties to
deserialize.protected SimpleStringMap<BackReferenceProperty<T,?>> initBackReferenceDeserializers()
SimpleStringMap containing the back reference deserializers. Returns an empty map if there are no back
reference on the bean.protected Set<String> initIgnoredProperties()
Set containing the ignored property names. Returns an empty set if there are no ignored properties.protected Set<String> initRequiredProperties()
Set containing the required property names. Returns an empty set if there are no required properties.protected IdentityDeserializationInfo<T> initIdentityInfo()
IdentityDeserializationInfo. Returns null if there is no JsonIdentityInfo annotation on bean.protected TypeDeserializationInfo<T> initTypeInfo()
TypeDeserializationInfo. Returns null if there is no JsonTypeInfo annotation on bean.protected Map<Class,SubtypeDeserializer> initMapSubtypeClassToDeserializer()
Map containing the SubtypeDeserializer. Returns an empty map if the bean has no subtypes.protected AnySetterDeserializer<T,?> initAnySetterDeserializer()
AnySetterDeserializer. Returns null if there is no method annoted with JsonAnySetter on bean.protected boolean isDefaultIgnoreUnknown()
JsonDeserializationException) or not.public abstract Class getDeserializedType()
public T doDeserialize(JsonReader reader, JsonDeserializationContext ctx, JsonDeserializerParameters params)
JsonDeserializerdoDeserialize in class JsonDeserializer<T>reader - JsonReader used to read the JSON inputctx - Context for the full deserialization processparams - Parameters for this deserializationprotected boolean canDeserialize()
public T deserializeWrapped(JsonReader reader, JsonDeserializationContext ctx, JsonDeserializerParameters params, IdentityDeserializationInfo identityInfo, TypeDeserializationInfo typeInfo, String typeInformation)
public final T deserializeInline(JsonReader reader, JsonDeserializationContext ctx, JsonDeserializerParameters params, IdentityDeserializationInfo identityInfo, TypeDeserializationInfo typeInfo, String type, Map<String,String> bufferedProperties)
JsonReader must be in a json object.reader - readerctx - context of the deserialization processtype - in case of a subtype, it's the corresponding type valuebufferedProperties - Buffered properties in case the type info property was not in 1st positionpublic AbstractBeanJsonDeserializer<T> getDeserializer()
public void setBackReference(String referenceName, Object reference, T value, JsonDeserializationContext ctx)
JsonDeserializersetBackReference in class JsonDeserializer<T>referenceName - name of the referencereference - reference to setvalue - value to set the reference to.ctx - Context for the full deserialization processJsonBackReferenceCopyright © 2016. All Rights Reserved.