Package org.jboss.as.cli.gui
Class ManagementModelNode
- java.lang.Object
-
- javax.swing.tree.DefaultMutableTreeNode
-
- org.jboss.as.cli.gui.ManagementModelNode
-
- All Implemented Interfaces:
Serializable
,Cloneable
,MutableTreeNode
,TreeNode
public class ManagementModelNode extends DefaultMutableTreeNode
A node in the management tree. Non-leaves are addressable entities in a DMR command. Leaves are attributes.- Author:
- Stan Silvert [email protected] (C) 2012 Red Hat Inc.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
ManagementModelNode.UserObject
Encapsulates name/value pair.
-
Field Summary
-
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
-
-
Constructor Summary
Constructors Constructor Description ManagementModelNode(CliGuiContext cliGuiCtx)
Constructor for root node only.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
addressPath()
Get the DMR path for this node.ManagementModelNode
clone()
Clone as a root nodestatic String
escapeAddressElement(String element)
void
explore()
Refresh children using read-resource operation.boolean
isGeneric()
boolean
isLeaf()
-
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
add, breadthFirstEnumeration, children, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toString
-
-
-
-
Constructor Detail
-
ManagementModelNode
public ManagementModelNode(CliGuiContext cliGuiCtx)
Constructor for root node only.
-
-
Method Detail
-
clone
public ManagementModelNode clone()
Clone as a root node- Overrides:
clone
in classDefaultMutableTreeNode
- Returns:
- The cloned node.
-
explore
public void explore()
Refresh children using read-resource operation.
-
addressPath
public String addressPath()
Get the DMR path for this node. For leaves, the DMR path is the path of its parent.- Returns:
- The DMR path for this node.
-
isLeaf
public boolean isLeaf()
- Specified by:
isLeaf
in interfaceTreeNode
- Overrides:
isLeaf
in classDefaultMutableTreeNode
-
isGeneric
public boolean isGeneric()
-
-