org.dom4j.tree
Class ElementIterator

java.lang.Object
  extended byorg.dom4j.tree.FilterIterator
      extended byorg.dom4j.tree.ElementIterator
All Implemented Interfaces:
java.util.Iterator

public class ElementIterator
extends FilterIterator

ElementIterator is a filtering Iterator which filters out objects which do not implement the Element interface.

Version:
$Revision: 1.3 $
Author:
James Strachan

Field Summary
 
Fields inherited from class org.dom4j.tree.FilterIterator
proxy
 
Constructor Summary
ElementIterator(java.util.Iterator proxy)
           
 
Method Summary
protected  boolean matches(java.lang.Object element)
          Filter method to perform some matching on the given element.
 
Methods inherited from class org.dom4j.tree.FilterIterator
findNext, hasNext, next, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElementIterator

public ElementIterator(java.util.Iterator proxy)
Method Detail

matches

protected boolean matches(java.lang.Object element)
Description copied from class: FilterIterator
Filter method to perform some matching on the given element.

Specified by:
matches in class FilterIterator
Returns:
true if the given element implements the Element interface


Copyright © 2001 MetaStuff Ltd. All Rights Reserved. Hosted by

SourceForge Logo