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
Class OMChildrenQNameIterator
This iterator returns the elements that have a matching QName.
This class can be extended to customize the QName equality.
-
Constructor Summary
ConstructorsConstructorDescriptionOMChildrenQNameIterator(OMNode currentChild, QName givenQName) Constructor OMChildrenQNameIterator. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if the qnames are equal.static booleanisEquals_Legacy(QName searchQName, QName currentQName) Deprecated.protected booleanDetermine whether the given node matches the filter criteria.Methods inherited from class org.apache.axiom.om.impl.traverse.OMFilterIterator
hasNext, next, removeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
OMChildrenQNameIterator
Constructor OMChildrenQNameIterator.- Parameters:
currentChild-givenQName-
-
-
Method Details
-
isEqual
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
Description copied from class:OMFilterIteratorDetermine whether the given node matches the filter criteria.- Specified by:
matchesin 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
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
-