public class JDOMAttributeIterator 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 |
---|
JDOMAttributeIterator(NodePointer parent,
QName name)
Create a new JDOMAttributeIterator.
|
Modifier and Type | Method and 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()
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
.