Package org.xmlunit.util
Class IterableNodeList
- java.lang.Object
-
- org.xmlunit.util.IterableNodeList
-
- All Implemented Interfaces:
java.lang.Iterable<org.w3c.dom.Node>
public final class IterableNodeList extends java.lang.Object implements java.lang.Iterable<org.w3c.dom.Node>
Provides an iterable view to a NodeList, the Iterator that can be obtained from this Iterable will be read-only.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private class
IterableNodeList.NodeListIterator
-
Constructor Summary
Constructors Constructor Description IterableNodeList(org.w3c.dom.NodeList nl)
Wraps the NodeList.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.util.List<org.w3c.dom.Node>
asList(org.w3c.dom.NodeList l)
Turns the NodeList into a list.java.util.Iterator<org.w3c.dom.Node>
iterator()
-
-
-
Method Detail
-
iterator
public java.util.Iterator<org.w3c.dom.Node> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<org.w3c.dom.Node>
-
asList
public static java.util.List<org.w3c.dom.Node> asList(org.w3c.dom.NodeList l)
Turns the NodeList into a list.- Parameters:
l
- the NodeList to convert- Returns:
- a list of Nodes
-
-