|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.saxon.tree.util.NamespaceIterator
public class NamespaceIterator
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(net.sf.saxon.om.NamespaceBinding[])
.
The result does not include the XML namespace.
Method Summary | |
---|---|
boolean |
hasNext()
|
static Iterator<NamespaceBinding> |
iterateNamespaces(NodeInfo element)
Factory method: create an iterator over the in-scope namespace codes for an element |
NamespaceBinding |
next()
|
void |
remove()
|
static void |
sendNamespaces(NodeInfo element,
Receiver receiver)
Send all the in-scope namespaces for a node (except the XML namespace) 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 Iterator<NamespaceBinding> 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()
hasNext
in interface Iterator<NamespaceBinding>
public NamespaceBinding next()
next
in interface Iterator<NamespaceBinding>
public void remove()
remove
in interface Iterator<NamespaceBinding>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |