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 usingOMContainer.getChildrenWithName(QName)
, and this class should never be referenced directly. It will be removed in Axiom 1.3.
-
-
Constructor Summary
Constructors Constructor Description OMChildrenQNameIterator(org.apache.axiom.om.OMNode currentChild, QName givenQName)
Deprecated.Constructor OMChildrenQNameIterator.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description 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(org.apache.axiom.om.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
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Constructor Detail
-
OMChildrenQNameIterator
public OMChildrenQNameIterator(org.apache.axiom.om.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(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 classOMFilterIterator
- 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
-
-