public class ElementIterator
extends java.lang.Object
implements java.util.Iterator<org.w3c.dom.Element>
ElementIterator...| Constructor and Description |
|---|
ElementIterator(org.w3c.dom.Element parent)
Create a new instance of
ElementIterator with the given
parent element. |
ElementIterator(org.w3c.dom.Element parent,
javax.xml.namespace.QName qname)
Create a new instance of
ElementIterator with the given
parent element. |
ElementIterator(org.w3c.dom.Element parent,
java.lang.String localName,
Namespace namespace)
Create a new instance of
ElementIterator with the given
parent element. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext()
Returns true if there is a next
Element |
org.w3c.dom.Element |
next() |
org.w3c.dom.Element |
nextElement()
Returns the next
Element in the iterator. |
void |
remove()
Not implemented
|
public ElementIterator(org.w3c.dom.Element parent,
java.lang.String localName,
Namespace namespace)
ElementIterator with the given
parent element. Only child elements that match the given local name
and namespace will be respected by hasNext() and nextElement().parent - localName - local name the child elements must matchnamespace - namespace the child elements must matchpublic ElementIterator(org.w3c.dom.Element parent,
javax.xml.namespace.QName qname)
ElementIterator with the given
parent element. Only child elements that match the given QName
will be respected by hasNext() and nextElement().parent - qname - name to match (exactly)public ElementIterator(org.w3c.dom.Element parent)
ElementIterator with the given
parent element. No filtering is applied to child elements that are
iterated.parent - public void remove()
remove in interface java.util.Iterator<org.w3c.dom.Element>java.lang.UnsupportedOperationExceptionpublic boolean hasNext()
ElementhasNext in interface java.util.Iterator<org.w3c.dom.Element>Element is available.public org.w3c.dom.Element next()
next in interface java.util.Iterator<org.w3c.dom.Element>Iterator.next(),
nextElement()public org.w3c.dom.Element nextElement()
Element in the iterator.java.util.NoSuchElementException - if there is no next element.Copyright © 2010 - 2023 Adobe. All Rights Reserved