Class OMFilterIterator

java.lang.Object
org.apache.axiom.om.impl.traverse.OMFilterIterator
All Implemented Interfaces:
Iterator
Direct Known Subclasses:
OMChildrenQNameIterator, OMChildrenWithSpecificAttributeIterator, OMQNameFilterIterator, OMQualifiedNameFilterIterator

public abstract class OMFilterIterator extends Object implements Iterator
Deprecated.
Abstract iterator that returns matching nodes from another iterator.
  • Constructor Details

    • OMFilterIterator

      public OMFilterIterator(Iterator parent)
      Deprecated.
  • Method Details

    • matches

      protected abstract boolean matches(org.apache.axiom.om.OMNode node)
      Deprecated.
      Determine whether the given node matches the filter criteria.
      Parameters:
      node - the node to test
      Returns:
      true if the node matches, i.e. if it should be returned by a call to next()
    • hasNext

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

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

      public void remove()
      Deprecated.
      Specified by:
      remove in interface Iterator