org.dspace.app.xmlui.aspect.artifactbrowser
Class CommunityBrowser.TreeNode
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CommunityBrowser.TreeNode
public CommunityBrowser.TreeNode()
- Construct a new root level node
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 © 2013 DuraSpace. All Rights Reserved.