|
XBRLAPIA Java API for XBRL |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.xbrlapi.networks.TreeIterator
public class TreeIterator
This iterator iterates over the fragments in a relationship network. It requires the network to be a strict tree. It does a preorder traversal of the fragments in the tree, returning parent fragments before their children. It also returns siblings with lower relationship orders before their siblings with higher relationship orders.
| Constructor Summary | |
|---|---|
TreeIterator(Network network)
Use this constructor when the network defines a single tree. |
|
TreeIterator(Network network,
Fragment start)
Use this constructor when the network defines a number of trees, each distinguished by its own root fragment. |
|
| Method Summary | |
|---|---|
boolean |
hasNext()
|
Fragment |
next()
|
void |
remove()
This method is not supported by this implementation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TreeIterator(Network network)
throws XBRLException
network - The network to use.
XBRLException - if the network does not define a single tree.
public TreeIterator(Network network,
Fragment start)
throws XBRLException
network - The network to use.start - The tree root fragment to use.
XBRLException| Method Detail |
|---|
public boolean hasNext()
hasNext in interface Iterator<Fragment>Iterator.hasNext()
public Fragment next()
throws NoSuchElementException
next in interface Iterator<Fragment>NoSuchElementExceptionIterator.next()
public void remove()
throws UnsupportedOperationException
remove in interface Iterator<Fragment>UnsupportedOperationExceptionIterator.remove()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||