Class AbstractValueBeanJsonSerializer<T>
java.lang.Object
org.dominokit.jacksonapt.JsonSerializer<T>
org.dominokit.jacksonapt.ser.bean.AbstractBeanJsonSerializer<T>
org.dominokit.jacksonapt.ser.bean.AbstractValueBeanJsonSerializer<T>
public abstract class AbstractValueBeanJsonSerializer<T> extends AbstractBeanJsonSerializer<T>
Abstract AbstractValueBeanJsonSerializer class.
- Version:
- $Id: $
- Author:
- Nicolas Morel
-
Field Summary
Fields inherited from class org.dominokit.jacksonapt.ser.bean.AbstractBeanJsonSerializer
serializers -
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractValueBeanJsonSerializer()Constructor for AbstractValueBeanJsonSerializer. -
Method Summary
Modifier and Type Method Description protected abstract BeanPropertySerializer<T,?>initValueSerializer()initValueSerializerprotected voidserializeObject(JsonWriter writer, T value, JsonSerializationContext ctx, java.util.Set<java.lang.String> ignoredProperties, IdentitySerializationInfo identityInfo, ObjectIdSerializer<?> idWriter, java.lang.String typeName, java.lang.String typeInformation)Serializes all the properties of the bean in a json object.Methods inherited from class org.dominokit.jacksonapt.ser.bean.AbstractBeanJsonSerializer
doSerialize, getSerializedType, initAnyGetterPropertySerializer, initIdentityInfo, initMapSubtypeClassToSerializer, initSerializers, initTypeInfo, serializeInternallyMethods inherited from class org.dominokit.jacksonapt.JsonSerializer
isAbsent, isDefault, isEmpty, serialize, serialize, serialize, serializeNullValueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
AbstractValueBeanJsonSerializer
protected AbstractValueBeanJsonSerializer()Constructor for AbstractValueBeanJsonSerializer.
-
-
Method Details
-
initValueSerializer
initValueSerializer
- Returns:
- a
BeanPropertySerializerobject.
-
serializeObject
protected void serializeObject(JsonWriter writer, T value, JsonSerializationContext ctx, java.util.Set<java.lang.String> ignoredProperties, IdentitySerializationInfo identityInfo, ObjectIdSerializer<?> idWriter, java.lang.String typeName, java.lang.String typeInformation)Serializes all the properties of the bean in a json object.- Overrides:
serializeObjectin classAbstractBeanJsonSerializer<T>- Parameters:
writer- writervalue- bean to serializectx- context of the serialization processignoredProperties- ignored propertiesidentityInfo- identity infoidWriter- identifier writertypeName- in case of type info as property, the name of the propertytypeInformation- in case of type info as property, the type information
-