@Documented @Target(value=ANNOTATION_TYPE) @Retention(value=RUNTIME) public @interface FieldGroup
FieldGroups for further explanation). The specification of
contained fields does take place on the field directly with a reference to
the group in order to allow adding fields in subclasses (which is much easier
if just the reference to the group defined on the superclass needs to be
passed instead of developing an override mechanism of FieldGroups and
FieldGroup annotations on subclasses) and improving readability of
information about group membership directly on the field.for possible references between fields and groups| Modifier and Type | Required Element and Description |
|---|---|
String |
name |
| Modifier and Type | Optional Element and Description |
|---|---|
String[] |
afterGroups
The list of field groups to be placed before this group.
|
String[] |
beforeGroups
The list of field groups to be placed after this group.
|
public abstract String name
public abstract String[] beforeGroups
public abstract String[] afterGroups
Copyright © 2018. All rights reserved.