POF Serializer Generator >
Features Annotations Future Downloads Changelog Compatibility Presentations
@PofSerialized @PofAttribute @PofUniformCollection @PofUniformMap @PofDate @PofAttributeSerializer

This annotation can be added to designated object attribute serializers (which must descend from info.politext.coherence.pof.annotation.PofAttributeSerializer). It allows specifying additional information about the object attribute serializer.


Attribute Type Default value Description
consumesPropertyIds   int 1 An object attribute can use up multiple property ids when writing out the state of an attribute. For example, the serializers for most of the primitive wrappers use up two, one boolean to indicate nullity. A second one to write out the actual value in case it was not null.
needsCast boolean false The return value of the serializer readProperty method may need to be cast to the attribute type to ensure compilation. In that case this attribute must be true.