public class TableStructuralNode extends java.lang.Object implements StructuralNodeInterface
| Constructor and Description |
|---|
TableStructuralNode(XBRLDefinitionNodeUse base,
TableStructuralNode parent)
Creates an instance of a TableStructuralNode and collects all aspects indicated
in the definition node indicated in the base parameter.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addChild(TableStructuralNode child)
Append a new children to this tree node.
|
java.util.Iterator<Aspect> |
getAspects()
Allows to iterate all aspects on this node.
|
int |
getAspectsCount()
Access to the number of aspects at this level.
|
XBRLDefinitionNodeUse |
getBase()
Access to the XBRLDefinitionNodeUse element that is the source of this
TableStructuralNode.
|
TableStructuralNode |
getNodeAt(int index)
Access a specific TableStructuralNode by index.
|
int |
getNodeCount()
Number of children nodes.
|
java.util.Iterator<TableStructuralNode> |
getNodes()
Allows to iterate all nodes in the right representation order.
|
TableStructuralNode |
getParent()
Access to the parent node of this StructuralNodeInterface.
|
boolean |
isLeaf()
last node in a tree is leaf node.
|
public TableStructuralNode(XBRLDefinitionNodeUse base, TableStructuralNode parent)
base - the XBRLDefinitionNodeUse that is the source of this TableStructuralNodeparent - the parent TableStructuralNode to allow navigation up on the tree. This is null for root nodespublic java.util.Iterator<Aspect> getAspects()
public TableStructuralNode getParent()
StructuralNodeInterfacegetParent in interface StructuralNodeInterfacepublic int getAspectsCount()
public XBRLDefinitionNodeUse getBase()
public boolean addChild(TableStructuralNode child)
child - node to add at the end of the collectionpublic boolean isLeaf()
StructuralNodeInterfaceisLeaf in interface StructuralNodeInterfacepublic java.util.Iterator<TableStructuralNode> getNodes()
StructuralNodeInterfacegetNodes in interface StructuralNodeInterfacepublic TableStructuralNode getNodeAt(int index)
StructuralNodeInterfacegetNodeAt in interface StructuralNodeInterfaceindex - integerpublic int getNodeCount()
StructuralNodeInterfacegetNodeCount in interface StructuralNodeInterface