org.restlet.ext.xml
Class NodeList
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<Node>
org.restlet.ext.xml.NodeList
- All Implemented Interfaces:
- Iterable<Node>, Collection<Node>, List<Node>, NodeList
public class NodeList
- extends AbstractList<Node>
- implements NodeList
DOM nodes set that implements the standard List interface for easier
iteration.
- Author:
- Jerome Louvel
Methods inherited from class java.util.AbstractList |
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList |
NodeList
public NodeList(NodeList nodes)
- Constructor.
- Parameters:
nodes
- The node list to wrap.
get
public Node get(int index)
- Specified by:
get
in interface List<Node>
- Specified by:
get
in class AbstractList<Node>
getLength
public int getLength()
-
- Specified by:
getLength
in interface NodeList
item
public Node item(int index)
-
- Specified by:
item
in interface NodeList
size
public int size()
- Specified by:
size
in interface Collection<Node>
- Specified by:
size
in interface List<Node>
- Specified by:
size
in class AbstractCollection<Node>
Copyright © 2005-2013 Restlet.