org.mmbase.bridge.implementation
Class BasicRelationList

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
                      extended byorg.mmbase.bridge.implementation.BasicRelationList
All Implemented Interfaces:
BridgeList, Cloneable, Collection, List, NodeList, RandomAccess, RelationList, Serializable

public class BasicRelationList
extends BasicNodeList
implements RelationList

A list of relations

Version:
$Id: BasicRelationList.java,v 1.21 2006/06/13 19:08:31 michiel Exp $
Author:
Pierre van Rooden
See Also:
Serialized Form

Nested Class Summary
protected  class BasicRelationList.BasicRelationIterator
           
 
Nested classes inherited from class org.mmbase.bridge.implementation.BasicNodeList
BasicNodeList.BasicNodeIterator
 
Nested classes inherited from class org.mmbase.bridge.implementation.BasicList
BasicList.BasicIterator
 
Field Summary
 
Fields inherited from class org.mmbase.bridge.implementation.BasicNodeList
cloud, nodeManager
 
Fields inherited from class java.util.AbstractList
modCount
 
Fields inherited from interface org.mmbase.bridge.NodeList
NODESTEP_PROPERTY, QUERY_PROPERTY
 
Method Summary
 Relation getRelation(int index)
          Returns the Relation at the indicated postion in the list
 RelationIterator relationIterator()
          Returns an type-specific iterator for this list.
 RelationList subRelationList(int fromIndex, int toIndex)
          Returns a sublist of this list.
protected  Object validate(Object o)
           
 
Methods inherited from class org.mmbase.bridge.implementation.BasicNodeList
castToNodeManager, convert, getNode, nodeIterator, subNodeList
 
Methods inherited from class org.mmbase.bridge.implementation.BasicList
add, add, contains, convertAll, get, getProperty, remove, removeAll, 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, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.mmbase.bridge.NodeList
getNode, nodeIterator, subNodeList
 
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
 

Method Detail

validate

protected Object validate(Object o)
                   throws ClassCastException,
                          IllegalArgumentException
Overrides:
validate in class BasicNodeList
Throws:
ClassCastException
IllegalArgumentException

getRelation

public Relation getRelation(int index)
Description copied from interface: RelationList
Returns the Relation at the indicated postion in the list

Specified by:
getRelation in interface RelationList
Parameters:
index - the position of the Relation to retrieve
Returns:
Relation at the indicated postion

subRelationList

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

Specified by:
subRelationList in interface RelationList
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)
Returns:
sublist of this list

relationIterator

public RelationIterator relationIterator()
Description copied from interface: RelationList
Returns an type-specific iterator for this list.

Specified by:
relationIterator in interface RelationList
Returns:
Relation iterator


MMBase build 1.8.1.20060716