|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface INode
Tree interface. implement memory management policy. The node may exist in disk or keep in the memory.
Method Summary | |
---|---|
void |
appendChild(INode child)
Append a child to this node. |
java.util.Iterator |
getChildren()
Get the children of the node. |
INode |
getNext()
Get the sibling node immediately following the specified node. |
INode |
getParent()
Get the parent of the node, or return null if the node is in tree top level. |
INode |
getPrevious()
Get the sibling node immediately preceding the specified node. |
void |
removeChildren()
Remove all children of the node. |
void |
setNext(INode next)
Set the sibling node immediately following the specified node. |
void |
setParent(INode parent)
Set the parent of the node. |
void |
setPrevious(INode previous)
Set the sibling node immediately preceding the specified node. |
Method Detail |
---|
INode getParent()
void setParent(INode parent)
parent
- the parent of the node.INode getPrevious()
void setPrevious(INode previous)
previous
- the sibling node immediately preceding the specified node.INode getNext()
void setNext(INode next)
next
- the sibling node immediately following the specified node.void appendChild(INode child)
child
- the child need to be appended.java.util.Iterator getChildren()
void removeChildren()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |