Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.theme.nodes
Class AbstractNode

java.lang.Object
  extended by org.nuxeo.theme.nodes.AbstractNode
All Implemented Interfaces:
Node
Direct Known Subclasses:
AbstractElement

public abstract class AbstractNode
extends Object
implements Node


Constructor Summary
AbstractNode()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractNode

public AbstractNode()
Method Detail

clearParent

public void clearParent()
Specified by:
clearParent in interface Node

setParent

public void setParent(Node parent)
               throws NodeException
Specified by:
setParent in interface Node
Throws:
NodeException

getParent

public Node getParent()
Specified by:
getParent in interface Node

addChild

public Node addChild(Node node)
              throws NodeException
Specified by:
addChild in interface Node
Throws:
NodeException

removeChild

public void removeChild(Node node)
                 throws NodeException
Specified by:
removeChild in interface Node
Throws:
NodeException

getChildren

public List<Node> getChildren()
Specified by:
getChildren in interface Node

setChildren

public void setChildren(List<Node> children)
                 throws NodeException
Specified by:
setChildren in interface Node
Throws:
NodeException

getNodeTypeFamily

public abstract NodeTypeFamily getNodeTypeFamily()
Specified by:
getNodeTypeFamily in interface Node

isLeaf

public boolean isLeaf()
Specified by:
isLeaf in interface Node

getOrder

public Integer getOrder()
Specified by:
getOrder in interface Node

setOrder

public void setOrder(Integer order)
              throws NodeException
Specified by:
setOrder in interface Node
Throws:
NodeException

moveTo

public void moveTo(Node container,
                   Integer order)
            throws NodeException
Specified by:
moveTo in interface Node
Throws:
NodeException

insertAfter

public void insertAfter(Node node)
                 throws NodeException
Specified by:
insertAfter in interface Node
Throws:
NodeException

hasSiblings

public boolean hasSiblings()
Specified by:
hasSiblings in interface Node

getNextNode

public Node getNextNode()
Specified by:
getNextNode in interface Node

getPreviousNode

public Node getPreviousNode()
Specified by:
getPreviousNode in interface Node

hasChildren

public boolean hasChildren()
Specified by:
hasChildren in interface Node

isChildOf

public boolean isChildOf(Node node)
Specified by:
isChildOf in interface Node

removeDescendants

public void removeDescendants()
                       throws NodeException
Specified by:
removeDescendants in interface Node
Throws:
NodeException

getDescendants

public List<Node> getDescendants()
Specified by:
getDescendants in interface Node

collectDescendants

public void collectDescendants(List<Node> nodes)
Specified by:
collectDescendants in interface Node

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.