org.mmbase.bridge.implementation
Class BasicNodeList

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byjava.util.ArrayList
              extended byorg.mmbase.bridge.implementation.BasicList
                  extended byorg.mmbase.bridge.implementation.BasicNodeList
All Implemented Interfaces:
BridgeList, java.lang.Cloneable, java.util.Collection, java.util.List, NodeList, java.util.RandomAccess, java.io.Serializable
Direct Known Subclasses:
BasicNodeManagerList, BasicRelationList

public class BasicNodeList
extends BasicList
implements NodeList

A list of nodes

Version:
$Id: BasicNodeList.java,v 1.30 2004/01/16 14:48:11 michiel Exp $
Author:
Pierre van Rooden
See Also:
Serialized Form

Nested Class Summary
protected  class BasicNodeList.BasicNodeIterator
           
 
Nested classes inherited from class org.mmbase.bridge.implementation.BasicList
BasicList.BasicIterator
 
Field Summary
protected  Cloud cloud
           
protected  NodeManager nodeManager
           
 
Fields inherited from class java.util.AbstractList
modCount
 
Fields inherited from interface org.mmbase.bridge.NodeList
QUERY_PROPERTY
 
Method Summary
protected  java.lang.Object convert(java.lang.Object o, int index)
           
 Node getNode(int index)
          Returns the Node at the indicated postion in the list
 NodeIterator nodeIterator()
          Returns an type-specific iterator for this list.
 NodeList subNodeList(int fromIndex, int toIndex)
          Returns a sublist of this list.
protected  java.lang.Object validate(java.lang.Object o)
           
 
Methods inherited from class org.mmbase.bridge.implementation.BasicList
add, add, contains, convertAll, get, getProperty, set, setProperty, sort, sort, toArray
 
Methods inherited from class java.util.ArrayList
addAll, addAll, clear, clone, ensureCapacity, indexOf, isEmpty, lastIndexOf, remove, removeRange, size, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, remove, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.mmbase.bridge.BridgeList
getProperty, setProperty, sort, sort
 
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray
 

Field Detail

cloud

protected Cloud cloud

nodeManager

protected NodeManager nodeManager
Method Detail

convert

protected java.lang.Object convert(java.lang.Object o,
                                   int index)
Overrides:
convert in class BasicList

validate

protected java.lang.Object validate(java.lang.Object o)
                             throws java.lang.ClassCastException
Overrides:
validate in class BasicList
Throws:
java.lang.ClassCastException

getNode

public Node getNode(int index)
Description copied from interface: NodeList
Returns the Node at the indicated postion in the list

Specified by:
getNode in interface NodeList
Parameters:
index - the position of the Node to retrieve

subNodeList

public NodeList subNodeList(int fromIndex,
                            int toIndex)
Description copied from interface: NodeList
Returns a sublist of this list.

Specified by:
subNodeList in interface NodeList
Parameters:
fromIndex - the position in the current list where the sublist starts (inclusive)
toIndex - the position in the current list where the sublist ends (exclusive)

nodeIterator

public NodeIterator nodeIterator()
Description copied from interface: NodeList
Returns an type-specific iterator for this list.

Specified by:
nodeIterator in interface NodeList


MMBase build 1.7.1.20041002