org.apache.xalan.xsltc.dom

Class SAXImpl.NamespaceWildcardIterator

public final class SAXImpl.NamespaceWildcardIterator extends 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 :::*
Constructor Summary
NamespaceWildcardIterator(int axis, int nsType)
Constructor NamespaceWildcard
Method Summary
DTMAxisIteratorcloneIterator()
Returns a deep copy of this iterator.
voidgotoMark()
booleanisReverse()
True if this iterator has a reversed axis.
intnext()
Get the next node in the iteration.
voidsetMark()
DTMAxisIteratorsetStartNode(int node)
Set start to END should 'close' the iterator, i.e. subsequent call to next() should return END.

Constructor Detail

NamespaceWildcardIterator

public NamespaceWildcardIterator(int axis, int nsType)
Constructor NamespaceWildcard

Parameters: axis The axis that this iterator will traverse nsType The namespace type index

Method Detail

cloneIterator

public DTMAxisIterator cloneIterator()
Returns a deep copy of this iterator. The cloned iterator is not reset.

Returns: a deep copy of this iterator.

gotoMark

public void gotoMark()

isReverse

public boolean isReverse()
True if this iterator has a reversed axis.

Returns: true if this iterator is a reversed axis.

next

public int next()
Get the next node in the iteration.

Returns: The next node handle in the iteration, or END.

setMark

public void setMark()

setStartNode

public DTMAxisIterator setStartNode(int node)
Set start to END should 'close' the iterator, i.e. subsequent call to next() should return END.

Parameters: node Sets the root of the iteration.

Returns: A DTMAxisIterator set to the start of the iteration.

Copyright © 2005 Apache XML Project. All Rights Reserved.