org.apache.xalan.xsltc.dom

Class SAXImpl.NamespaceWildcardIterator

Enclosing Class:
SAXImpl
Implemented Interfaces:
Cloneable, DTMAxisIterator

public final class SAXImpl.NamespaceWildcardIterator
extends DTMDefaultBaseIterators.InternalAxisIteratorBase

Iterator that handles node tests that test for a namespace, but have a wild card for the local name of the node, i.e., node tests of the form :::*

Fields inherited from interface org.apache.xml.dtm.DTMAxisIterator

END

Constructor Summary

NamespaceWildcardIterator(int axis, int nsType)
Constructor NamespaceWildcard

Method Summary

DTMAxisIterator
cloneIterator()
Returns a deep copy of this iterator.
void
gotoMark()
boolean
isReverse()
True if this iterator has a reversed axis.
int
next()
Get the next node in the iteration.
void
setMark()
DTMAxisIterator
setStartNode(int node)
Set start to END should 'close' the iterator, i.e. subsequent call to next() should return END.

Methods inherited from class org.apache.xml.dtm.ref.DTMDefaultBaseIterators.InternalAxisIteratorBase

gotoMark, setMark

Methods inherited from class org.apache.xml.dtm.ref.DTMAxisIteratorBase

cloneIterator, getAxis, getLast, getNodeByPosition, getPosition, getStartNode, includeSelf, isDocOrdered, isReverse, reset, setRestartable

Constructor Details

NamespaceWildcardIterator

public NamespaceWildcardIterator(int axis,
                                 int nsType)
Constructor NamespaceWildcard
Parameters:
axis - The axis that this iterator will traverse
nsType - The namespace type index

Method Details

cloneIterator

public DTMAxisIterator cloneIterator()
Returns a deep copy of this iterator. The cloned iterator is not reset.
Specified by:
cloneIterator in interface DTMAxisIterator
Overrides:
cloneIterator in interface DTMAxisIteratorBase
Returns:
a deep copy of this iterator.

gotoMark

public void gotoMark()
Specified by:
gotoMark in interface DTMAxisIterator
Overrides:
gotoMark in interface DTMDefaultBaseIterators.InternalAxisIteratorBase

isReverse

public boolean isReverse()
True if this iterator has a reversed axis.
Specified by:
isReverse in interface DTMAxisIterator
Overrides:
isReverse in interface DTMAxisIteratorBase
Returns:
true if this iterator is a reversed axis.

next

public int next()
Get the next node in the iteration.
Specified by:
next in interface DTMAxisIterator
Returns:
The next node handle in the iteration, or END.

setMark

public void setMark()
Specified by:
setMark in interface DTMAxisIterator
Overrides:
setMark in interface DTMDefaultBaseIterators.InternalAxisIteratorBase

setStartNode

public DTMAxisIterator setStartNode(int node)
Set start to END should 'close' the iterator, i.e. subsequent call to next() should return END.
Specified by:
setStartNode in interface DTMAxisIterator
Parameters:
node - Sets the root of the iteration.
Returns:
A DTMAxisIterator set to the start of the iteration.

Copyright B) 2004 Apache XML Project. All Rights Reserved.