Package org.apache.jackrabbit.webdav.xml
Class ElementIterator
- java.lang.Object
-
- org.apache.jackrabbit.webdav.xml.ElementIterator
-
- All Implemented Interfaces:
java.util.Iterator<org.w3c.dom.Element>
public class ElementIterator extends java.lang.Object implements java.util.Iterator<org.w3c.dom.Element>ElementIterator...
-
-
Constructor Summary
Constructors Constructor Description ElementIterator(org.w3c.dom.Element parent)Create a new instance ofElementIteratorwith the given parent element.ElementIterator(org.w3c.dom.Element parent, java.lang.String localName, Namespace namespace)Create a new instance ofElementIteratorwith the given parent element.ElementIterator(org.w3c.dom.Element parent, javax.xml.namespace.QName qname)Create a new instance ofElementIteratorwith the given parent element.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()Returns true if there is a nextElementorg.w3c.dom.Elementnext()org.w3c.dom.ElementnextElement()Returns the nextElementin the iterator.voidremove()Not implemented
-
-
-
Constructor Detail
-
ElementIterator
public ElementIterator(org.w3c.dom.Element parent, java.lang.String localName, Namespace namespace)Create a new instance ofElementIteratorwith 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(org.w3c.dom.Element parent, javax.xml.namespace.QName qname)Create a new instance ofElementIteratorwith the given parent element. Only child elements that match the givenQNamewill be respected byhasNext()andnextElement().- Parameters:
parent-qname- name to match (exactly)
-
ElementIterator
public ElementIterator(org.w3c.dom.Element parent)
Create a new instance ofElementIteratorwith 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:
removein interfacejava.util.Iterator<org.w3c.dom.Element>- Throws:
java.lang.UnsupportedOperationException
-
hasNext
public boolean hasNext()
Returns true if there is a nextElement- Specified by:
hasNextin interfacejava.util.Iterator<org.w3c.dom.Element>- Returns:
- true if a next
Elementis available.
-
next
public org.w3c.dom.Element next()
- Specified by:
nextin interfacejava.util.Iterator<org.w3c.dom.Element>- See Also:
Iterator.next(),nextElement()
-
nextElement
public org.w3c.dom.Element nextElement()
Returns the nextElementin the iterator.- Returns:
- the next element
- Throws:
java.util.NoSuchElementException- if there is no next element.
-
-