@Target(value=TYPE)
@Retention(value=RUNTIME)
public @interface Settings
While it not necessary to use this annotation to serialise a POJO into a group, it can be used to specify other metadata.
onlyAnnotated(),
namingConvention()| Modifier and Type | Optional Element and Description |
|---|---|
java.lang.Class<? extends SettingNamingConvention> |
namingConvention
Returns the naming convention used for (re)naming the fields in this class during serialisation.
|
boolean |
onlyAnnotated
Specifies whether or not all fields in this class should be serialised, or only those annotated with
Setting. |
public abstract boolean onlyAnnotated
Setting.
If you want to exclude one field without having to mark all others with the Setting annotation, the field can be marked as transient instead.
All transient fields are ignored by default.
public abstract java.lang.Class<? extends SettingNamingConvention> namingConvention
naming convention for this class