|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.collections4.iterators.NodeListIterator
public class NodeListIterator
This iterator does not support remove() as a NodeList does not support
removal of items.
NodeList| Constructor Summary | |
|---|---|
NodeListIterator(Node node)
Convenience constructor, which creates a new NodeListIterator from the specified node's childNodes. |
|
NodeListIterator(NodeList nodeList)
Constructor, that creates a new NodeListIterator from the specified org.w3c.NodeList |
|
| Method Summary | |
|---|---|
boolean |
hasNext()
|
Node |
next()
|
void |
remove()
Throws UnsupportedOperationException. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NodeListIterator(Node node)
node - Node, who's child nodes are wrapped by this class. Must not be null
IllegalArgumentException - if node is nullpublic NodeListIterator(NodeList nodeList)
org.w3c.NodeList
nodeList - node list, which is wrapped by this class. Must not be null
IllegalArgumentException - if nodeList is null| Method Detail |
|---|
public boolean hasNext()
hasNext in interface Iterator<Node>public Node next()
next in interface Iterator<Node>public void remove()
UnsupportedOperationException.
remove in interface Iterator<Node>UnsupportedOperationException - always
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||