org.apache.geronimo.console.util
Class StringTree

java.lang.Object
  extended by org.apache.geronimo.console.util.StringTree
All Implemented Interfaces:
Comparable

public class StringTree
extends Object
implements Comparable


Field Summary
 ArrayList childs
           
 String name
           
 
Constructor Summary
StringTree(String nm)
           
StringTree(String nm, ArrayList elements)
           
 
Method Summary
 void addChild(Object obj)
           
 int compareTo(Object obj)
           
 boolean equals(Object node)
           
 StringTree findNode(String id)
           
 ArrayList getChilds()
           
 String getName()
           
 void setChilds(ArrayList elements)
           
 void setName(String nm)
           
 String toJSONObject(String prependId)
           
 String toJSONObject(String prependId, Hashtable htLinks)
           
 String toJSONObject(String prependId, Hashtable htLinks, boolean level1)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

public String name

childs

public ArrayList childs
Constructor Detail

StringTree

public StringTree(String nm,
                  ArrayList elements)

StringTree

public StringTree(String nm)
Method Detail

getName

public String getName()

setName

public void setName(String nm)

getChilds

public ArrayList getChilds()

setChilds

public void setChilds(ArrayList elements)

addChild

public void addChild(Object obj)

findNode

public StringTree findNode(String id)

equals

public boolean equals(Object node)
Overrides:
equals in class Object

toJSONObject

public String toJSONObject(String prependId)

toJSONObject

public String toJSONObject(String prependId,
                           Hashtable htLinks)

toJSONObject

public String toJSONObject(String prependId,
                           Hashtable htLinks,
                           boolean level1)

compareTo

public int compareTo(Object obj)
Specified by:
compareTo in interface Comparable


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.