Package org.apache.jackrabbit.webdav.xml
Class ElementIterator
- java.lang.Object
-
- org.apache.jackrabbit.webdav.xml.ElementIterator
-
-
Constructor Summary
Constructors Constructor Description ElementIterator(Element parent)
Create a new instance ofElementIterator
with the given parent element.ElementIterator(Element parent, String localName, Namespace namespace)
Create a new instance ofElementIterator
with the given parent element.ElementIterator(Element parent, QName qname)
Create a new instance ofElementIterator
with the given parent element.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
Returns true if there is a nextElement
Element
next()
Element
nextElement()
Returns the nextElement
in the iterator.void
remove()
Not implemented-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Constructor Detail
-
ElementIterator
public ElementIterator(Element parent, String localName, Namespace namespace)
Create a new instance ofElementIterator
with the given parent element. Only child elements that match the given local name and namespace will be respected byhasNext()
andnextElement()
.- Parameters:
parent
-localName
- local name the child elements must matchnamespace
- namespace the child elements must match
-
ElementIterator
public ElementIterator(Element parent, QName qname)
Create a new instance ofElementIterator
with the given parent element. Only child elements that match the givenQName
will be respected byhasNext()
andnextElement()
.- Parameters:
parent
-qname
- name to match (exactly)
-
ElementIterator
public ElementIterator(Element parent)
Create a new instance ofElementIterator
with the given parent element. No filtering is applied to child elements that are iterated.- Parameters:
parent
-
-
-
Method Detail
-
remove
public void remove()
Not implemented- Specified by:
remove
in interfaceIterator<Element>
- Throws:
UnsupportedOperationException
-
hasNext
public boolean hasNext()
Returns true if there is a nextElement
-
next
public Element next()
- Specified by:
next
in interfaceIterator<Element>
- See Also:
Iterator.next()
,nextElement()
-
nextElement
public Element nextElement()
Returns the nextElement
in the iterator.- Returns:
- the next element
- Throws:
NoSuchElementException
- if there is no next element.
-
-