Package dev.nolij.zson
Annotation Interface ZsonField
ZsonField is an annotation that can be used to specify properties
about a field in a class that is being serialized or deserialized to ZSON.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanbooleanbooleanboolean
-
Element Details
-
comment
String comment- Returns:
- a comment that describes this field, to be included in the ZSON output.
- Default:
"\u0000"
-
format
String format- Default:
"%s"
-
include
boolean include- Returns:
- whether to include this field when (de)serializing, even if it is private or static.
- Default:
false
-
exclude
boolean exclude- Returns:
- whether to exclude this field when (de)serializing.
- Default:
false
-
serializeOnly
boolean serializeOnly- Returns:
- whether this field should only be serialized, never deserialized (always true for final fields).
- Default:
false
-
deserializeOnly
boolean deserializeOnly- Returns:
- whether this field should only be deserialized, never serialized.
- Default:
false
-