|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.webdav.xml.ElementIterator
public class ElementIterator
ElementIterator
...
Constructor Summary | |
---|---|
ElementIterator(Element parent)
Create a new instance of ElementIterator with the given
parent element. |
|
ElementIterator(Element parent,
String localName,
Namespace namespace)
Create a new instance of ElementIterator with the given
parent element. |
Method Summary | |
---|---|
boolean |
hasNext()
Returns true if there is a next Element |
Element |
next()
|
Element |
nextElement()
Returns the next Element 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 |
Constructor Detail |
---|
public ElementIterator(Element parent, 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(Element parent)
ElementIterator
with the given
parent element. No filtering is applied to child elements that are
iterated.
parent
- Method Detail |
---|
public void remove()
remove
in interface Iterator<Element>
UnsupportedOperationException
public boolean hasNext()
Element
hasNext
in interface Iterator<Element>
Element
is available.public Element next()
next
in interface Iterator<Element>
Iterator.next()
,
nextElement()
public Element nextElement()
Element
in the iterator.
NoSuchElementException
- if there is no next element.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |