@OpenApi public class ElementNode extends javax.swing.tree.DefaultMutableTreeNode implements com.nomagic.magicdraw.grouping.GroupNode<ElementNode>, java.lang.Comparable
Element
Note: children of the node often does NOT represent the owned elements of the model Element, tree model can be constructed by different criteriaModifier and Type | Method and Description |
---|---|
java.util.List<ElementNode> |
getChildren() |
Element |
getElement() |
ElementNode |
getParent() |
boolean |
isExpanded() |
boolean |
isInfinityNode()
Nodes which represent recursive branches are marked as
infinite nodes, meaning the rest of the infinite branch is cut off bellow this node
|
boolean |
isReal()
Tells if this node belongs to the model represented by the tree
|
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toString
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addGroupNode, getBreadthFirstEnumeration, getChild, getChildCount, getDepthFirstEnumeration, getGroupNodeChildAt, getGroupNodeChildren, getGroupNodeIndex, getGroupNodeParent, getGroupNodePath, getIndex, removeAllChildren, removeGroupNode, setReal
@CheckForNull @OpenApi public Element getElement()
getElement
in interface com.nomagic.magicdraw.grouping.GroupNode<ElementNode>
@OpenApi public ElementNode getParent()
getParent
in interface javax.swing.tree.TreeNode
getParent
in class javax.swing.tree.DefaultMutableTreeNode
@OpenApi public java.util.List<ElementNode> getChildren()
@OpenApi public boolean isReal()
isReal
in interface com.nomagic.magicdraw.grouping.GroupNode<ElementNode>
@OpenApi public boolean isExpanded()
@OpenApi public boolean isInfinityNode()
isInfinityNode
in interface com.nomagic.magicdraw.grouping.GroupNode<ElementNode>