com.jalios.util
Interface TreeNode

All Known Implementing Classes:
AbstractCalendarEvent, AbstractDBComment, AbstractDBForum, AbstractDBForumPost, AbstractDBForumTopic, AbstractForum, AbstractForumDiscussion, AbstractForumMessage, AbstractPoll, AbstractReview, AbstractWikiPage, Category, Content, FileDocument, Form, 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: 21503 $

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
 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


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