|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.saxon.tree.util.NamespaceCodeIterator
public class NamespaceCodeIterator
This class provides an iterator over the namespace codes representing the in-scope namespaces
of any node. It relies on nodes to implement the method
NodeInfo.getDeclaredNamespaces(int[])
.
The result does not include the XML namespace.
Method Summary | |
---|---|
boolean |
hasNext()
Test whether there are any more integers in the sequence |
static IntIterator |
iterateNamespaces(NodeInfo element)
Factory method: create an iterator over the in-scope namespace codes for an element |
int |
next()
Return the next integer in the sequence. |
static void |
sendNamespaces(NodeInfo element,
Receiver receiver)
Send all the in-scope namespaces for a node to a specified receiver |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static IntIterator iterateNamespaces(NodeInfo element)
element
- the element (or other node) whose in-scope namespaces are required. If this
is not an element, the result will be an empty iterator
public static void sendNamespaces(NodeInfo element, Receiver receiver) throws XPathException
element
- the element in question (the method does nothing if this is not an element)receiver
- the receiver to which the namespaces are notified
XPathException
public boolean hasNext()
IntIterator
hasNext
in interface IntIterator
public int next()
IntIterator
next
in interface IntIterator
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |