public class XBRLTreeNode
extends java.lang.Object
implements javax.swing.tree.MutableTreeNode
| Constructor and Description | 
|---|
| XBRLTreeNode(XBRLTreeNode parent,
            XMLFragment node,
            XBRLTreeWalker walker,
            XBRLRoleType labelRole,
            java.lang.String weight)Creates an XBRLTreeNode. | 
| Modifier and Type | Method and Description | 
|---|---|
| java.util.Enumeration<javax.swing.tree.MutableTreeNode> | children()Children. | 
| boolean | equals(java.lang.Object other)Equals. | 
| boolean | getAllowsChildren()Gets the allows children. | 
| javax.swing.tree.TreeNode | getChildAt(int childIndex)Gets the child at. | 
| int | getChildCount()Gets the child count. | 
| XBRLTreeNode[] | getChildren()Obtain the chilren elements of this element in the hierarchy of this TreeWalker
 If this node has no children an empty array is returned
 This function does not return null. | 
| java.lang.String | getHash()Gets the hash. | 
| int | getIndex(javax.swing.tree.TreeNode node)Gets the index. | 
| java.util.Collection<java.lang.String> | getLabel(java.util.Iterator<java.lang.String> iterL)Returns a Collection of labels of the node for the specified language
 
 If there are no labels in the specified language the function
 returns the first label found for the next language in the iterator
 of languages received as a parameter
 
 If there are no labels the function returns a string
 representation of the concept QName
 
 If there are multiple labels then the function returns a Collection of all of them
 Applications would have to choose which one to use. | 
| XMLFragment | getNode()Normally this can be casted to an XMLElementDefinition. | 
| java.lang.String | getNodeName()Gets the node name. | 
| javax.swing.tree.MutableTreeNode | getParent()Gets the parent. | 
| XBRLRoleType | getPreferredLabelRole()Gets the preferred label role. | 
| XBRLTreeWalker | getWalker()Returns the tree walker building the tree this node belongs to. | 
| java.lang.String | getWeight()Gets the weight. | 
| int | hashCode()Hash code. | 
| void | insert(javax.swing.tree.MutableTreeNode child,
      int index)Insert. | 
| boolean | isLeaf()Checks if is leaf. | 
| void | remove(int index)Removes the. | 
| void | remove(javax.swing.tree.MutableTreeNode node)Removes the. | 
| void | removeFromParent()Removes the from parent. | 
| void | setLabelsRoles(XBRLRoleType[] roles)Sets the roles (and the order of the roles) of extended links in which labels will be
 retrieved from the labels linkbase. | 
| void | setNumber(int nodeSeq)Sets the number. | 
| void | setParent(javax.swing.tree.MutableTreeNode newParent)Sets the parent. | 
| void | setUserObject(java.lang.Object object)Sets the user object. | 
public XBRLTreeNode(XBRLTreeNode parent, XMLFragment node, XBRLTreeWalker walker, XBRLRoleType labelRole, java.lang.String weight)
parent - XBRLTreeNode, null for the root nodenode - The XMLFragment that this XBRLTreeNode represents. Cannot be null.walker - the parent XBRLTreeWalker this node belongs to. Can be null.labelRole - the role for retrieving labels. Should not be null if a label is going to be retrieved later. If null then the standard label-role is used.weight - the value of the weight attribute on calculationArc arcs. Can be null.public void setLabelsRoles(XBRLRoleType[] roles)
roles - the new labels rolespublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectother - the otherpublic XMLFragment getNode()
public java.util.Collection<java.lang.String> getLabel(java.util.Iterator<java.lang.String> iterL)
If there are no labels in the specified language the function returns the first label found for the next language in the iterator of languages received as a parameter
If there are no labels the function returns a string representation of the concept QName
If there are multiple labels then the function returns a Collection of all of them Applications would have to choose which one to use.
iterL - the iter lpublic XBRLTreeNode[] getChildren()
public XBRLTreeWalker getWalker()
public void setNumber(int nodeSeq)
nodeSeq - the new numberpublic java.lang.String getWeight()
public javax.swing.tree.MutableTreeNode getParent()
getParent in interface javax.swing.tree.TreeNodepublic java.lang.String getNodeName()
public XBRLRoleType getPreferredLabelRole()
public java.lang.String getHash()
public java.util.Enumeration<javax.swing.tree.MutableTreeNode> children()
children in interface javax.swing.tree.TreeNodepublic boolean getAllowsChildren()
getAllowsChildren in interface javax.swing.tree.TreeNodepublic javax.swing.tree.TreeNode getChildAt(int childIndex)
getChildAt in interface javax.swing.tree.TreeNodechildIndex - the child indexpublic int getChildCount()
getChildCount in interface javax.swing.tree.TreeNodepublic int getIndex(javax.swing.tree.TreeNode node)
getIndex in interface javax.swing.tree.TreeNodenode - the nodepublic boolean isLeaf()
isLeaf in interface javax.swing.tree.TreeNodepublic void insert(javax.swing.tree.MutableTreeNode child,
                   int index)
insert in interface javax.swing.tree.MutableTreeNodechild - the childindex - the indexpublic void remove(int index)
remove in interface javax.swing.tree.MutableTreeNodeindex - the indexpublic void remove(javax.swing.tree.MutableTreeNode node)
remove in interface javax.swing.tree.MutableTreeNodenode - the nodepublic void removeFromParent()
removeFromParent in interface javax.swing.tree.MutableTreeNodepublic void setParent(javax.swing.tree.MutableTreeNode newParent)
setParent in interface javax.swing.tree.MutableTreeNodenewParent - the new parentpublic void setUserObject(java.lang.Object object)
setUserObject in interface javax.swing.tree.MutableTreeNodeobject - the new user objectCopyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa