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 ssilvert@redhat.com (C) 2012 Red Hat Inc.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classManagementModelNode.UserObjectEncapsulates 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 StringaddressPath()Get the DMR path for this node.ManagementModelNodeclone()Clone as a root nodestatic StringescapeAddressElement(String element)voidexplore()Refresh children using read-resource operation.booleanisGeneric()booleanisLeaf()-
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:
clonein 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:
isLeafin interfaceTreeNode- Overrides:
isLeafin classDefaultMutableTreeNode
-
isGeneric
public boolean isGeneric()
-
-