org.dspace.app.xmlui.aspect.artifactbrowser
Class CommunityBrowser.TreeNode

java.lang.Object
  extended by org.dspace.app.xmlui.aspect.artifactbrowser.CommunityBrowser.TreeNode
Enclosing class:
CommunityBrowser

protected static class CommunityBrowser.TreeNode
extends Object

Private class to represent the tree structure of communities & collections.


Constructor Summary
CommunityBrowser.TreeNode()
          Construct a new root level node
 
Method Summary
 CommunityBrowser.TreeNode addChild(DSpaceObject dso)
          Add a child DSpaceObject
 List<CommunityBrowser.TreeNode> getChildren()
           
 List<CommunityBrowser.TreeNode> getChildrenOfType(int type)
           
 DSpaceObject getDSO()
           
 int getLevel()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommunityBrowser.TreeNode

public CommunityBrowser.TreeNode()
Construct a new root level node

Method Detail

getDSO

public DSpaceObject getDSO()
Returns:
The DSpaceObject this node represents

addChild

public CommunityBrowser.TreeNode addChild(DSpaceObject dso)
Add a child DSpaceObject

Parameters:
dso - The child
Returns:
A new TreeNode object attached to the tree structure.

getLevel

public int getLevel()
Returns:
The current level in the hierarchy of this node.

getChildren

public List<CommunityBrowser.TreeNode> getChildren()
Returns:
All children

getChildrenOfType

public List<CommunityBrowser.TreeNode> getChildrenOfType(int type)
Returns:
All children of the given @type.


Copyright © 2011 DuraSpace. All Rights Reserved.