public abstract class AbstractNode extends Object implements Node
| Constructor and Description |
|---|
AbstractNode() |
| Modifier and Type | Method and Description |
|---|---|
Node |
addChild(Node node) |
void |
clearParent() |
void |
collectDescendants(List<Node> nodes) |
List<Node> |
getChildren() |
List<Node> |
getDescendants() |
Node |
getNextNode() |
abstract NodeTypeFamily |
getNodeTypeFamily() |
Integer |
getOrder() |
Node |
getParent() |
Node |
getPreviousNode() |
boolean |
hasChildren() |
boolean |
hasSiblings() |
void |
insertAfter(Node node) |
boolean |
isChildOf(Node node) |
boolean |
isLeaf() |
void |
moveTo(Node container,
Integer order) |
void |
removeChild(Node node) |
void |
removeDescendants() |
void |
setChildren(List<Node> children) |
void |
setOrder(Integer order) |
void |
setParent(Node parent) |
public void clearParent()
clearParent in interface Nodepublic void setParent(Node parent) throws NodeException
setParent in interface NodeNodeExceptionpublic Node addChild(Node node) throws NodeException
addChild in interface NodeNodeExceptionpublic void removeChild(Node node) throws NodeException
removeChild in interface NodeNodeExceptionpublic List<Node> getChildren()
getChildren in interface Nodepublic void setChildren(List<Node> children) throws NodeException
setChildren in interface NodeNodeExceptionpublic abstract NodeTypeFamily getNodeTypeFamily()
getNodeTypeFamily in interface Nodepublic void setOrder(Integer order) throws NodeException
setOrder in interface NodeNodeExceptionpublic void moveTo(Node container, Integer order) throws NodeException
moveTo in interface NodeNodeExceptionpublic void insertAfter(Node node) throws NodeException
insertAfter in interface NodeNodeExceptionpublic boolean hasSiblings()
hasSiblings in interface Nodepublic Node getNextNode()
getNextNode in interface Nodepublic Node getPreviousNode()
getPreviousNode in interface Nodepublic boolean hasChildren()
hasChildren in interface Nodepublic void removeDescendants()
throws NodeException
removeDescendants in interface NodeNodeExceptionpublic List<Node> getDescendants()
getDescendants in interface Nodepublic void collectDescendants(List<Node> nodes)
collectDescendants in interface NodeCopyright © 2011 Nuxeo SA. All Rights Reserved.