public class DOMNamespaceIterator extends java.lang.Object implements NodeIterator
| Modifier and Type | Field and Description |
|---|---|
private java.util.List |
attributes |
private NodePointer |
parent |
private int |
position |
| Constructor and Description |
|---|
DOMNamespaceIterator(NodePointer parent)
Create a new DOMNamespaceIterator.
|
| Modifier and Type | Method and Description |
|---|---|
private void |
collectNamespaces(java.util.List attributes,
org.w3c.dom.Node node)
Collect namespaces from attribute nodes.
|
NodePointer |
getNodePointer()
Get the NodePointer at the current position.
|
int |
getPosition()
Get the current iterator position.
|
boolean |
setPosition(int position)
Set the new current position.
|
private NodePointer parent
private java.util.List attributes
private int position
public DOMNamespaceIterator(NodePointer parent)
parent - parent pointerprivate void collectNamespaces(java.util.List attributes,
org.w3c.dom.Node node)
attributes - attribute listnode - target nodepublic NodePointer getNodePointer()
NodeIteratorgetNodePointer in interface NodeIteratorpublic int getPosition()
NodeIteratorgetPosition in interface NodeIteratorpublic boolean setPosition(int position)
NodeIteratorsetPosition in interface NodeIteratorposition - the position to settrue if there is a node at position.