|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LabelNode
Represents a label attribute as a node in the labels hierarchy. The identity of the node is represented by label name, which must be unique within labels hierarchy.
Method Summary | |
---|---|
Set<LabelNode> |
getChildren()
Gets the unmodifiable Set of child LabelNode of this node, if hierarchy exists. |
Set<String> |
getDescendantLabels()
Gets a Set of the names of descendant LabelNode of this node, if hierarchy exists. |
String |
getName()
Gets the name of the label this node represents. |
LabelNode |
getParent()
Gets the parent LabelNode of this node if hierarchy exists. |
boolean |
hasChildren()
Determines whether the LabelNode has child nodes. |
boolean |
hasParent()
Determines whether the LabelNode has a parent node in a hierarchy. |
Method Detail |
---|
String getName()
LabelNode
is determined by the name.
boolean hasParent()
LabelNode
has a parent node in a hierarchy.
true
if the node has parent; false
otherwise.LabelNode getParent()
LabelNode
of this node if hierarchy exists.
If the node has not a parent LabelNode
, null
is returned.
LabelNode
or null
if the parent does not exists.boolean hasChildren()
LabelNode
has child nodes.
true
if the node has child nodes; false
otherwise.Set<LabelNode> getChildren()
Set
of child LabelNode
of this node, if hierarchy exists.
If no child nodes exists for this LabelNode
, empty Set
is returned.
Set
of child nodesSet<String> getDescendantLabels()
Set
of the names of descendant LabelNode
of this node, if hierarchy exists.
If no descendant nodes exists for this LabelNode
, empty Set
is returned.
Set
of child nodes
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |