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 Node
public void setParent(Node parent) throws NodeException
setParent
in interface Node
NodeException
public Node addChild(Node node) throws NodeException
addChild
in interface Node
NodeException
public void removeChild(Node node) throws NodeException
removeChild
in interface Node
NodeException
public List<Node> getChildren()
getChildren
in interface Node
public void setChildren(List<Node> children) throws NodeException
setChildren
in interface Node
NodeException
public abstract NodeTypeFamily getNodeTypeFamily()
getNodeTypeFamily
in interface Node
public void setOrder(Integer order) throws NodeException
setOrder
in interface Node
NodeException
public void moveTo(Node container, Integer order) throws NodeException
moveTo
in interface Node
NodeException
public void insertAfter(Node node) throws NodeException
insertAfter
in interface Node
NodeException
public boolean hasSiblings()
hasSiblings
in interface Node
public Node getNextNode()
getNextNode
in interface Node
public Node getPreviousNode()
getPreviousNode
in interface Node
public boolean hasChildren()
hasChildren
in interface Node
public void removeDescendants() throws NodeException
removeDescendants
in interface Node
NodeException
public List<Node> getDescendants()
getDescendants
in interface Node
public void collectDescendants(List<Node> nodes)
collectDescendants
in interface Node
Copyright © 2013 Nuxeo SA. All Rights Reserved.