public class JDOMNodeIterator extends Object implements NodeIterator
| Constructor and Description |
|---|
JDOMNodeIterator(NodePointer parent,
NodeTest nodeTest,
boolean reverse,
NodePointer startWith)
Create a new JDOMNodeIterator.
|
| 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.
|
public JDOMNodeIterator(NodePointer parent, NodeTest nodeTest, boolean reverse, NodePointer startWith)
parent - pointernodeTest - testreverse - whether to iterate in reversestartWith - starting pointerpublic 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.Copyright © 2001–2015 The Apache Software Foundation. All rights reserved.