org.dom4j.tree

Class FilterIterator

public abstract class FilterIterator extends Object implements Iterator

Deprecated: THIS CLASS WILL BE REMOVED IN dom4j-1.6 !!

FilterIterator is an abstract base class which is useful for implementors of Iteratorwhich filter an existing iterator.

Version: $Revision: 1.10 $

Author: James Strachan

Field Summary
protected Iteratorproxy
Constructor Summary
FilterIterator(Iterator proxy)
Method Summary
protected ObjectfindNext()
booleanhasNext()
protected abstract booleanmatches(Object element)
Filter method to perform some matching on the given element.
Objectnext()
voidremove()
Always throws UnsupportedOperationException as this class does look-ahead with its internal iterator.

Field Detail

proxy

protected Iterator proxy

Constructor Detail

FilterIterator

public FilterIterator(Iterator proxy)

Method Detail

findNext

protected Object findNext()

hasNext

public boolean hasNext()

matches

protected abstract boolean matches(Object element)
Filter method to perform some matching on the given element.

Parameters: element DOCUMENT ME!

Returns: true if the given element matches the filter and should be appear in the iteration

next

public Object next()

remove

public void remove()
Always throws UnsupportedOperationException as this class does look-ahead with its internal iterator.

Throws: UnsupportedOperationException always

Copyright B) 2005 MetaStuff Ltd. All Rights Reserved. Hosted by

SourceForge