com.jalios.util
Interface TreeNode

All Known Implementing Classes:
AbstractCalendarEvent, AbstractEventResource, AbstractReview, AbstractTestType, Category, Content, DBFileDocument, FileDocument, Form, MailMessage, Portal, PortalElement, PortalRedirect, Portlet, PortletCollection, PortletParent, PortletSkinable, Publication, UserContent

public interface TreeNode

Interface reprensenting an Object Tree with usefull generic method to collect Branch status, children ...

Since:
jcms-3.0.0
Version:
$Revision: 23813 $

Field Summary
static String REVISION
           
 
Method Summary
 Collection<? extends TreeNode> getTreeChildren()
          Returns a Collection of TreeNode children of the current node
 TreeNode getTreeParent()
          Returns parent of the current node
 TreeNode getTreeRoot()
          Returns the root of the current node
 boolean isTreeLeaf()
          Returns boolean true if the TreeNode is a leaf
 boolean isTreeNode()
          Returns boolean true if the TreeNode is a node
 

Field Detail

REVISION

static final String REVISION
See Also:
Constant Field Values
Method Detail

getTreeChildren

Collection<? extends TreeNode> getTreeChildren()
Returns a Collection of TreeNode children of the current node

Returns:
Collection of TreeNode

getTreeParent

TreeNode getTreeParent()
Returns parent of the current node

Returns:
TreeNode parent Node

isTreeLeaf

boolean isTreeLeaf()
Returns boolean true if the TreeNode is a leaf

Returns:
boolean indicating if node is leaf or node

isTreeNode

boolean isTreeNode()
Returns boolean true if the TreeNode is a node

Returns:
boolean indicating if node is leaf or node

getTreeRoot

TreeNode getTreeRoot()
Returns the root of the current node

Returns:
TreeNode root Node


Copyright © 2001-2010 Jalios SA. All Rights Reserved.