IntIteratorpublic class NamespaceCodeIterator extends java.lang.Object implements IntIterator
NodeInfo.getDeclaredNamespaces(int[]).
The result does not include the XML namespace.
| Modifier and Type | Method | Description |
|---|---|---|
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
|
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 iteratorpublic 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 notifiedXPathExceptionpublic boolean hasNext()
IntIteratorhasNext in interface IntIteratorpublic int next()
IntIteratornext in interface IntIterator