org.apache.axiom.om.impl.traverse
Class OMChildrenQNameIterator

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

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.

public class OMChildrenQNameIterator
extends OMFilterIterator


Constructor Summary
OMChildrenQNameIterator(OMNode currentChild, QName givenQName)
          Deprecated. Constructor OMChildrenQNameIterator.
 
Method Summary
 boolean isEqual(QName searchQName, QName currentQName)
          Deprecated. Returns true if the qnames are equal.
static boolean isEquals_Legacy(QName searchQName, QName currentQName)
          Deprecated.  
protected  boolean matches(OMNode node)
          Deprecated. Determine whether the given node matches the filter criteria.
 
Methods inherited from class org.apache.axiom.om.impl.traverse.OMFilterIterator
hasNext, next, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OMChildrenQNameIterator

public OMChildrenQNameIterator(OMNode currentChild,
                               QName givenQName)
Deprecated. 
Constructor OMChildrenQNameIterator.

Parameters:
currentChild -
givenQName -
Method Detail

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(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


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.