|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LabelsMetaData
Represents meta data about label attributes and their structure.
The labels can be organized in hierarchical structure. If no hierarchy
is defined between labels, they are stored in a flat structure.
This means all labels are represented as root LabelNode
element.
Method Summary | |
---|---|
LabelsMetaData |
clone()
Returns a deep copy of the LabelsMetaDataImpl instance. |
boolean |
containsLabel(String labelName)
Determines if LabelsMetaData contains a label with specified name. |
Set<String> |
getLabelNames()
Gets the names of all labels. |
LabelNode |
getLabelNode(String labelName)
Gets the LabelNode specified by label name. |
int |
getNumLabels()
Gets the total number of LabelNode nodes. |
Set<LabelNode> |
getRootLabels()
Gets the unmodifiable Set of root LabelNode
nodes of label attributes hierarchy. |
boolean |
isHierarchy()
Determines if there is a hierarchy defined between labels. |
Method Detail |
---|
Set<LabelNode> getRootLabels()
Set
of root LabelNode
nodes of label attributes hierarchy.
Set
of root nodes.LabelNode getLabelNode(String labelName)
LabelNode
specified by label name. The name is unique identifier
of the node and corresponds to label attribute in the data set.
If LabelNode
for given label name does not exists, null
is returned.
labelName
- the name of label of which the node should be retrieved
LabelNode
for specified label of null
if LabelNode
does not exists for specified label nameSet<String> getLabelNames()
boolean containsLabel(String labelName)
LabelsMetaData
contains a label with specified name.
labelName
- the label name
true
if meta data contains the given label name;
false
otherwise.boolean isHierarchy()
LabelNode
nodes.
true
if there is hierarchy defined between labels;
false
otherwise.int getNumLabels()
LabelNode
nodes.
LabelNode
nodesLabelsMetaData clone()
LabelsMetaDataImpl
instance.
LabelsMetaDataImpl
instance
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |