com.continuent.tungsten.common.directory
Class ResourceTree

java.lang.Object
  extended by com.continuent.tungsten.common.cluster.resource.Resource
      extended by com.continuent.tungsten.common.directory.ResourceTree
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
Directory

public class ResourceTree
extends Resource
implements java.io.Serializable

Version:
1.0
Author:
Ed Archibald
See Also:
Serialized Form

Field Summary
protected  ResourceNode rootNode
           
 
Fields inherited from class com.continuent.tungsten.common.cluster.resource.Resource
childType, compositeMember, description, isContainer, isExecutable, name, type
 
Constructor Summary
ResourceTree()
          Default constructor.
 
Method Summary
 ResourceNode getRootNode()
          Return the root Node of the tree.
 void setRootNode(ResourceNode rootNode)
          Set the root Element for the tree.
 java.util.Map<java.lang.String,ResourceNode> toMap()
           
 java.lang.String toString()
          Return a representation of this tree in string form.
 
Methods inherited from class com.continuent.tungsten.common.cluster.resource.Resource
copyTo, describe, getChildType, getCompositeMember, getKey, getName, getType, isContainer, isExecutable, setChildType, setCompositeMember, setContainer, setExecutable, setName, setType, toJSON, toProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

rootNode

protected ResourceNode rootNode
Constructor Detail

ResourceTree

public ResourceTree()
Default constructor.

Method Detail

getRootNode

public ResourceNode getRootNode()
Return the root Node of the tree.

Returns:
the root element.

setRootNode

public void setRootNode(ResourceNode rootNode)
Set the root Element for the tree.

Parameters:
rootNode - the root element to set.

toMap

public java.util.Map<java.lang.String,ResourceNode> toMap()
Returns:
A map of all nodes represented by this resource tree

toString

public java.lang.String toString()
Return a representation of this tree in string form.

Overrides:
toString in class Resource