Package org.restlet.ext.xml
Class NodeList
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<org.w3c.dom.Node>
-
- org.restlet.ext.xml.NodeList
-
- All Implemented Interfaces:
java.lang.Iterable<org.w3c.dom.Node>,java.util.Collection<org.w3c.dom.Node>,java.util.List<org.w3c.dom.Node>,org.w3c.dom.NodeList
public class NodeList extends java.util.AbstractList<org.w3c.dom.Node> implements org.w3c.dom.NodeListDOM nodes set that implements the standard List interface for easier iteration.
-
-
Field Summary
Fields Modifier and Type Field Description private org.w3c.dom.NodeListnodesThe wrapped node list.
-
Constructor Summary
Constructors Constructor Description NodeList(org.w3c.dom.NodeList nodes)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.w3c.dom.Nodeget(int index)intgetLength(){@inheritDoc org.w3c.dom.NodeList#getLength()}org.w3c.dom.Nodeitem(int index){@inheritDoc org.w3c.dom.NodeList#item(int)}intsize()-
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
-
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
-
-
-
-
Method Detail
-
get
public org.w3c.dom.Node get(int index)
- Specified by:
getin interfacejava.util.List<org.w3c.dom.Node>- Specified by:
getin classjava.util.AbstractList<org.w3c.dom.Node>
-
getLength
public int getLength()
{@inheritDoc org.w3c.dom.NodeList#getLength()}- Specified by:
getLengthin interfaceorg.w3c.dom.NodeList
-
item
public org.w3c.dom.Node item(int index)
{@inheritDoc org.w3c.dom.NodeList#item(int)}- Specified by:
itemin interfaceorg.w3c.dom.NodeList
-
size
public int size()
- Specified by:
sizein interfacejava.util.Collection<org.w3c.dom.Node>- Specified by:
sizein interfacejava.util.List<org.w3c.dom.Node>- Specified by:
sizein classjava.util.AbstractCollection<org.w3c.dom.Node>
-
-