Class LabelGroup
java.lang.Object
org.simpleframework.xml.core.LabelGroup
The
LabelList contains a group of labels associated
with a specific contact. Here any number of annotations can be
associated with a single contact. This allows for element unions
that may contain more than one label to be represented.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLabelGroup(List<Label> list) Constructor for theLabelListobject.LabelGroup(Label label) Constructor for theLabelListobject. -
Method Summary
Modifier and TypeMethodDescriptiongetList()This is used to acquire all of the labels associated with this group.This is used to acquire the primary label associated with this group.
-
Field Details
-
list
-
size
private final int sizeThis contains the number of labels this list contains.
-
-
Constructor Details
-
LabelGroup
Constructor for theLabelListobject. This is used to create a group of labels that contains a single label. Typically this is used for non-union annotations.- Parameters:
label- this is the label that this group represents
-
LabelGroup
-
-
Method Details
-
getList
-
getPrimary
This is used to acquire the primary label associated with this group. If this group represents a non-union then this will return the only label associated with the contact.- Returns:
- this returns the primary annotation for the group
-