org.restlet.ext.xml
Class NodeList

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<Node>
          extended by 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

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
NodeList(NodeList nodes)
          Constructor.
 
Method Summary
 Node get(int index)
           
 int getLength()
          
 Node item(int index)
          
 int size()
           
 
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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
 

Constructor Detail

NodeList

public NodeList(NodeList nodes)
Constructor.

Parameters:
nodes - The node list to wrap.
Method Detail

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.