public class ElementIterator
extends java.lang.Object
implements java.util.Iterator
remove
method
is not supported.Constructor and Description |
---|
ElementIterator(org.w3c.dom.Element parent,
java.lang.String name)
Create an iterator that will enumerate the children elements of the
parent with the specified name.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext()
Return true if there is a next matching element and false otherwise.
|
java.lang.Object |
next()
Return the current element or null if there are no more matching
elements.
|
void |
remove()
The
remove method is not supported and will throw
an unsupported operation exception. |
public ElementIterator(org.w3c.dom.Element parent, java.lang.String name)
public boolean hasNext()
hasNext
in interface java.util.Iterator
public java.lang.Object next()
next
in interface java.util.Iterator
public void remove()
remove
method is not supported and will throw
an unsupported operation exception.remove
in interface java.util.Iterator