NodeIteratorpublic class JDOMAttributeIterator extends java.lang.Object implements NodeIterator
| Modifier and Type | Field | Description |
|---|---|---|
private java.util.List |
attributes |
|
private NodePointer |
parent |
|
private int |
position |
| Constructor | Description |
|---|---|
JDOMAttributeIterator(NodePointer parent,
QName name) |
Create a new JDOMAttributeIterator.
|
| Modifier and Type | Method | Description |
|---|---|---|
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 JDOMAttributeIterator(NodePointer parent, QName name)
parent - pointername - testpublic 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.