Class FilterIterator

java.lang.Object
org.dom4j.tree.FilterIterator
All Implemented Interfaces:
Iterator
Direct Known Subclasses:
ElementIterator, ElementNameIterator, ElementQNameIterator

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 Details

    • proxy

      protected Iterator proxy
      Deprecated.
  • Constructor Details

    • FilterIterator

      public FilterIterator(Iterator proxy)
      Deprecated.
  • Method Details

    • hasNext

      public boolean hasNext()
      Deprecated.
      Specified by:
      hasNext in interface Iterator
    • next

      public Object next() throws NoSuchElementException
      Deprecated.
      Specified by:
      next in interface Iterator
      Throws:
      NoSuchElementException
    • remove

      public void remove()
      Deprecated.
      Always throws UnsupportedOperationException as this class does look-ahead with its internal iterator.
      Specified by:
      remove in interface Iterator
      Throws:
      UnsupportedOperationException - always
    • matches

      protected abstract boolean matches(Object element)
      Deprecated.
      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
    • findNext

      protected Object findNext()
      Deprecated.