com.netflix.adminresources.resources.jmx
Class DynaTreeNode
java.lang.Object
com.netflix.adminresources.resources.jmx.DynaTreeNode
public class DynaTreeNode
- extends java.lang.Object
Represents a single node in a tree and simplifies adding children and serializing the final
tree into JSON.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DynaTreeNode
public DynaTreeNode()
setTitle
public DynaTreeNode setTitle(java.lang.String title)
getTitle
public java.lang.String getTitle()
setNoLink
public DynaTreeNode setNoLink(boolean noLink)
getNoLink
public boolean getNoLink()
setKey
public DynaTreeNode setKey(java.lang.String key)
getKey
public java.lang.String getKey()
setMode
public DynaTreeNode setMode(java.lang.String mode)
getMode
public java.lang.String getMode()
getChildren
public java.util.Map<java.lang.String,DynaTreeNode> getChildren()
getChild
public DynaTreeNode getChild(java.lang.String title)
putChild
public void putChild(DynaTreeNode child)
toJSONObject
public org.codehaus.jettison.json.JSONObject toJSONObject()
throws org.codehaus.jettison.json.JSONException
- Throws:
org.codehaus.jettison.json.JSONException
getChildrenJSONArray
public org.codehaus.jettison.json.JSONArray getChildrenJSONArray()