org.restlet.util
Class NodeSet

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<Node>
          extended by org.restlet.util.NodeSet
All Implemented Interfaces:
Iterable<Node>, Collection<Node>, List<Node>, NodeList

public class NodeSet
extends AbstractList<Node>
implements List<Node>, NodeList

DOM nodes set that implements the standard List interface for easier iteration.

Author:
Jerome Louvel (contact@noelios.com)

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
NodeSet(NodeList nodes)
           
 
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
add, add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, subList, toArray, toArray
 

Constructor Detail

NodeSet

public NodeSet(NodeList nodes)
Method Detail

getLength

public int getLength()

Specified by:
getLength in interface NodeList

item

public Node item(int index)

Specified by:
item in interface NodeList

get

public Node get(int index)
Specified by:
get in interface List<Node>
Specified by:
get in class AbstractList<Node>

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-2007 Noelios Technologies.