Class OMChildrenQNameIterator

java.lang.Object
org.apache.axiom.om.impl.traverse.OMFilterIterator
org.apache.axiom.om.impl.traverse.OMChildrenQNameIterator
All Implemented Interfaces:
Iterator
Direct Known Subclasses:
OMChildrenLegacyQNameIterator, OMChildrenLocalNameIterator, OMChildrenNamespaceIterator

public class OMChildrenQNameIterator extends OMFilterIterator
Deprecated.
This type of iterator should always be created using OMContainer.getChildrenWithName(QName), and this class should never be referenced directly. It will be removed in Axiom 1.3.
  • Constructor Details

    • OMChildrenQNameIterator

      public OMChildrenQNameIterator(org.apache.axiom.om.OMNode currentChild, QName givenQName)
      Deprecated.
      Constructor OMChildrenQNameIterator.
      Parameters:
      currentChild -
      givenQName -
  • Method Details

    • isEqual

      public boolean isEqual(QName searchQName, QName currentQName)
      Deprecated.
      Returns true if the qnames are equal. The default algorithm is to use the QName equality (which examines the namespace and localPart). You can extend this class to provide your own equality algorithm.
      Parameters:
      searchQName -
      currentQName -
      Returns:
      true if qnames are equal.
    • matches

      protected boolean matches(org.apache.axiom.om.OMNode node)
      Deprecated.
      Description copied from class: OMFilterIterator
      Determine whether the given node matches the filter criteria.
      Specified by:
      matches in class OMFilterIterator
      Parameters:
      node - the node to test
      Returns:
      true if the node matches, i.e. if it should be returned by a call to OMFilterIterator.next()
    • isEquals_Legacy

      public static boolean isEquals_Legacy(QName searchQName, QName currentQName)
      Deprecated.
      Prior versions of the OMChildrenQNameIterator used the following logic to check equality. This algorithm is incorrect; however some customers have dependency on this behavior. This method is retained (but deprecated) to allow them an opportunity to use the old algorithm.
      Parameters:
      searchQName -
      currentQName -
      Returns:
      true using legacy equality match