C D E G H I M N R S T

C

com.myarch.treeiterator - package com.myarch.treeiterator
Provides classes and interfaces for performing generic and selective tree traversal.
current() - Method in class com.myarch.treeiterator.TreeIterator
Returns the current node.

D

DEPTH_UNLIMITED - Static variable in interface com.myarch.treeiterator.TreeConstants
Unlimited depth of tree traversal.
DOMAdapter - class com.myarch.treeiterator.DOMAdapter.
This adapter maps org.w3c.dom.Node interface to the generic methods of the TreeIteratorAdapter.
DOMAdapter.ChildrenAdapter - class com.myarch.treeiterator.DOMAdapter.ChildrenAdapter.
Implements java.util.Iterator methods for the node list.
DOMAdapter() - Constructor for class com.myarch.treeiterator.DOMAdapter
 

E

EnumerationAdapter - class com.myarch.treeiterator.EnumerationAdapter.
Implements java.util.Iterator interface for Enumeration.
EnumerationAdapter(Enumeration) - Constructor for class com.myarch.treeiterator.EnumerationAdapter
Adapter constructor.

G

getChildren(Object) - Method in class com.myarch.treeiterator.SwingAdapter
Returns java.util.Iterator to iterate over children of the node.
getChildren(Object) - Method in class com.myarch.treeiterator.DOMAdapter
Returns java.util.Iterator to iterate over children of the node.
getChildren(Object) - Method in interface com.myarch.treeiterator.TreeNodeAdapter
Returns java.util.Iterator to iterate over children of the node.
getDepth() - Method in class com.myarch.treeiterator.TreeIterator
Returns the depth of the level being traversed.
getIndex() - Method in class com.myarch.treeiterator.TreeIterator
Returns index of the of the current node among siblings.
getMaxDepth() - Method in class com.myarch.treeiterator.TreeIterator
Returns the maximum depth of the traversal.

H

hasChildren() - Method in class com.myarch.treeiterator.TreeIterator
Returns true if current node has children and iterator is allowed to traverse them.
hasChildren(Object) - Method in class com.myarch.treeiterator.SwingAdapter
Returns true if the node has children.
hasChildren(Object) - Method in class com.myarch.treeiterator.DOMAdapter
Returns true if the node has children.
hasChildren(Object) - Method in interface com.myarch.treeiterator.TreeNodeAdapter
Returns true if the node has children.
hasNext() - Method in class com.myarch.treeiterator.TreeIterator
Returns true if not all elements of the tree have been traversed.
hasNext() - Method in class com.myarch.treeiterator.EnumerationAdapter
Returns true if the iteration has more elements.
hasNext() - Method in class com.myarch.treeiterator.DOMAdapter.ChildrenAdapter
Returns true if the iteration has more elements.

I

isMaxDepth() - Method in class com.myarch.treeiterator.TreeIterator
Returns true if the maximum allowed level is reached.

M

moveToChildren() - Method in class com.myarch.treeiterator.TreeIterator
Moves iterator to the children of the node regardless of current level depth setting.
moveToChildren(int) - Method in class com.myarch.treeiterator.TreeIterator
Moves iterator to the children of the node regardless of current level depth setting.

N

next() - Method in class com.myarch.treeiterator.TreeIterator
Returns the next element of a tree.
next() - Method in class com.myarch.treeiterator.EnumerationAdapter
Returns the next element in the interation.
next() - Method in class com.myarch.treeiterator.DOMAdapter.ChildrenAdapter
Returns the next element in the interation.

R

remove() - Method in class com.myarch.treeiterator.TreeIterator
This method is defined to comply with Iterator but it is not supported.
remove() - Method in class com.myarch.treeiterator.EnumerationAdapter
This method is defined to comply with Iterator but it is not supported.
remove() - Method in class com.myarch.treeiterator.DOMAdapter.ChildrenAdapter
This method is defined to comply with Iterator but it is not supported.

S

setDepth(int) - Method in class com.myarch.treeiterator.TreeIterator
Sets the initial depth value.
setLevelDepth(int) - Method in class com.myarch.treeiterator.TreeIterator
Same with moveToChildren.
setMaxDepth(int) - Method in class com.myarch.treeiterator.TreeIterator
Sets the maximum depth of the traversal.
setRoot(Object) - Method in class com.myarch.treeiterator.TreeIterator
Sets the root of the tree.
skipChildren() - Method in class com.myarch.treeiterator.TreeIterator
After this method is called, next() will skip children of the current node and move to the next sibling instead.
SwingAdapter - class com.myarch.treeiterator.SwingAdapter.
TreeNodeAdapter implementation for javax.swing.tree.TreeNode
SwingAdapter() - Constructor for class com.myarch.treeiterator.SwingAdapter
 

T

TreeConstants - interface com.myarch.treeiterator.TreeConstants.
Common constants for tree classes.
TreeIterator - class com.myarch.treeiterator.TreeIterator.
Iterates over the tree.
TreeIterator(Object, TreeNodeAdapter) - Constructor for class com.myarch.treeiterator.TreeIterator
Creates iterator and sets the root of a tree and tree adapter.
TreeIterator(Object, TreeNodeAdapter, int) - Constructor for class com.myarch.treeiterator.TreeIterator
Creates iterator and sets the root of a tree, tree adapter and depth of the traversal.
TreeNodeAdapter - interface com.myarch.treeiterator.TreeNodeAdapter.
Generic node interface used by tree iterator.

C D E G H I M N R S T

Copyright © 2001 Alexander Ananiev & MyArch.com. All Rights Reserved.