|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.tree.DefaultMutableTreeNode
org.embl.ebi.escience.baclava.iterator.BaclavaIteratorNode
public class BaclavaIteratorNode
A DefaultMutableTreeNode implementing ResumableIterator by wrapping a BaclavaIterator. Further, all output from the underlying ResumableIterator is named and the output wrapped in a Map object
| Field Summary |
|---|
| Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
|---|
EMPTY_ENUMERATION |
| Constructor Summary | |
|---|---|
BaclavaIteratorNode(BaclavaIterator i,
java.lang.String name)
A TreeNode that contains a BaclavaIterator. |
|
| Method Summary | |
|---|---|
boolean |
getAllowsChildren()
BaclavaIteratorNode objects are not allowed children |
int[] |
getCurrentLocation()
Return the current position within this iterator |
java.lang.String |
getName()
Return the name that will be used as the key for any maps that this iterator produces |
boolean |
hasNext()
Delegate to the underlying iterator |
boolean |
isLeaf()
These nodes are always leaf nodes, they act as the basic source of iterated objects |
java.lang.Object |
next()
Wraps the output of the underlying iterator's next() method into a Map with the key being the name of this BaclavaIteratorNode |
void |
remove()
Remove operation not supported |
void |
reset()
Reset the underlying iterator to its initial state |
int |
size()
Return the size of the underlying iterator |
| Methods inherited from class javax.swing.tree.DefaultMutableTreeNode |
|---|
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, 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 |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BaclavaIteratorNode(BaclavaIterator i,
java.lang.String name)
| Method Detail |
|---|
public java.lang.String getName()
public java.lang.Object next()
next in interface java.util.Iteratorpublic boolean hasNext()
hasNext in interface java.util.Iterator
public void remove()
throws java.lang.UnsupportedOperationException
remove in interface java.util.Iteratorjava.lang.UnsupportedOperationExceptionpublic void reset()
reset in interface ResumableIteratorpublic int size()
size in interface ResumableIteratorpublic boolean isLeaf()
isLeaf in interface javax.swing.tree.TreeNodeisLeaf in class javax.swing.tree.DefaultMutableTreeNodepublic boolean getAllowsChildren()
getAllowsChildren in interface javax.swing.tree.TreeNodegetAllowsChildren in class javax.swing.tree.DefaultMutableTreeNodepublic int[] getCurrentLocation()
getCurrentLocation in interface ResumableIterator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||