|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--solar.service.directory.NameNode
A node in the directory tree, either an internal node or a leaf node. A name node may have a set of children name nodes and a set of name records (such as network addresses).
Field Summary | |
protected java.util.Set |
_children
|
protected java.lang.String |
_label
|
protected NameNode |
_parent
|
protected java.util.Set |
_records
|
Constructor Summary | |
NameNode(java.lang.String label)
|
Method Summary | |
void |
addChild(NameNode child)
Add a child, either another name node or a name record. |
void |
addRecord(NameRecord rec)
Add a name record to this name node. |
NameNode |
createChild(java.lang.String label)
Create a new child with specified label. |
NameNode |
getChild(java.lang.String label)
Return a child node with specified label. |
java.util.Set |
getChildren()
Return the set of children of this name node. |
java.lang.String |
getLabel()
Return the label of this name node. |
NameNode |
getParent()
Return the parent node of this name node. |
java.util.Set |
getRecords()
Return the set of name records for this name node. |
boolean |
isLeaf()
Return whether this name node is a leaf of name tree. |
boolean |
isRoot()
Return whether this name node is the root of name tree. |
void |
removeRecord(NameRecord rec)
Remove a name record from this name node. |
void |
setParent(NameNode parent)
Set the parent node of this name node. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.String _label
protected java.util.Set _children
protected java.util.Set _records
protected NameNode _parent
Constructor Detail |
public NameNode(java.lang.String label)
Method Detail |
public boolean isLeaf()
public boolean isRoot()
public java.lang.String getLabel()
public void setParent(NameNode parent)
public NameNode getParent()
public void addChild(NameNode child)
public NameNode createChild(java.lang.String label)
public NameNode getChild(java.lang.String label)
public java.util.Set getChildren()
public void addRecord(NameRecord rec)
public void removeRecord(NameRecord rec)
public java.util.Set getRecords()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |