NodeIteratorpublic class JDOMNamespaceIterator extends java.lang.Object implements NodeIterator
| Modifier and Type | Field | Description |
|---|---|---|
private java.util.List |
namespaces |
|
private NodePointer |
parent |
|
private int |
position |
|
private java.util.Set |
prefixes |
| Constructor | Description |
|---|---|
JDOMNamespaceIterator(NodePointer parent) |
Create a new JDOMNamespaceIterator.
|
| Modifier and Type | Method | Description |
|---|---|---|
private void |
collectNamespaces(org.jdom.Element element) |
Collect the namespaces from a JDOM Element.
|
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 namespaces
private java.util.Set prefixes
private int position
public JDOMNamespaceIterator(NodePointer parent)
parent - the parent NodePointer.private void collectNamespaces(org.jdom.Element element)
element - the source Elementpublic 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.