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()
NodeIterator
getNodePointer
in interface NodeIterator
public int getPosition()
NodeIterator
getPosition
in interface NodeIterator
public boolean setPosition(int position)
NodeIterator
setPosition
in interface NodeIterator
position
- the position to settrue
if there is a node at position
.