Class AnyGetterPropertySerializer<T>
java.lang.Object
org.dominokit.jacksonapt.ser.bean.HasSerializer<V,JsonSerializer<V>>
org.dominokit.jacksonapt.ser.bean.BeanPropertySerializer<T,java.util.Map>
org.dominokit.jacksonapt.ser.bean.AnyGetterPropertySerializer<T>
public abstract class AnyGetterPropertySerializer<T> extends BeanPropertySerializer<T,java.util.Map>
Serializes a bean's property
- Version:
- $Id: $
- Author:
- Nicolas Morel
-
Field Summary
Fields inherited from class org.dominokit.jacksonapt.ser.bean.BeanPropertySerializer
propertyName -
Constructor Summary
Constructors Constructor Description AnyGetterPropertySerializer()Constructor for AnyGetterPropertySerializer. -
Method Summary
Modifier and Type Method Description protected abstract MapJsonSerializernewSerializer()newSerializervoidserialize(JsonWriter writer, T bean, JsonSerializationContext ctx)Serializes the property defined for this instance.voidserializePropertyName(JsonWriter writer, T bean, JsonSerializationContext ctx)Serializes the property nameMethods inherited from class org.dominokit.jacksonapt.ser.bean.BeanPropertySerializer
getParameters, getPropertyName, getValue, newParametersMethods inherited from class org.dominokit.jacksonapt.ser.bean.HasSerializer
getSerializerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
AnyGetterPropertySerializer
public AnyGetterPropertySerializer()Constructor for AnyGetterPropertySerializer.
-
-
Method Details
-
newSerializer
newSerializer
- Specified by:
newSerializerin classHasSerializer<java.util.Map,JsonSerializer<java.util.Map>>- Returns:
- a
MapJsonSerializerobject.
-
serializePropertyName
Serializes the property name- Overrides:
serializePropertyNamein classBeanPropertySerializer<T,java.util.Map>- Parameters:
writer- writerbean- bean containing the property to serializectx- context of the serialization process
-
serialize
Serializes the property defined for this instance.Serializes the property defined for this instance.
- Overrides:
serializein classBeanPropertySerializer<T,java.util.Map>- Parameters:
writer- writerbean- bean containing the property to serializectx- context of the serialization process
-