Package org.gittorr.ccerial
Annotation Interface CcSerializable
This annotation marks a class as a Ccerializable, it means that the annotated class can be serialized with Ccerial, and it will generate serializers for it.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionThe accessor type defines if the fields will be accessed through SETTER, FIELD, CONSTRUCTORintAn identifier for the class.booleanInclude some headers if necessarybooleanWhen serializing a null or empty become a zero.The fields described in this field will be used to serialize including their order. * for all and a comma separated list to define the fields.booleanThe fields can be serialized as variable size.
-
Element Details
-
accessorType
AccessorType accessorTypeThe accessor type defines if the fields will be accessed through SETTER, FIELD, CONSTRUCTOR- Default:
- CONSTRUCTOR
-
properties
String propertiesThe fields described in this field will be used to serialize including their order. * for all and a comma separated list to define the fields.- Default:
- "*"
-
classIdentifier
int classIdentifierAn identifier for the class. Used for complex objects.- Default:
- 0
-
variableSize
boolean variableSizeThe fields can be serialized as variable size.- Default:
- true
-
nullIsZeroOrEmpty
boolean nullIsZeroOrEmptyWhen serializing a null or empty become a zero.- Default:
- true
-
includeHeader
boolean includeHeaderInclude some headers if necessary- Default:
- false
-