org.mmbase.bridge.implementation
Class BasicRelationList

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.ArrayList
                    |
                    +--org.mmbase.bridge.implementation.BasicList
                          |
                          +--org.mmbase.bridge.implementation.BasicNodeList
                                |
                                +--org.mmbase.bridge.implementation.BasicRelationList
All Implemented Interfaces:
BridgeList, java.lang.Cloneable, java.util.Collection, java.util.List, NodeList, RelationList, java.io.Serializable

public class BasicRelationList
extends BasicNodeList
implements RelationList

A list of relations

Version:
$Id: BasicRelationList.java,v 1.11 2002/10/15 15:28:29 pierre Exp $
Author:
Pierre van Rooden
See Also:
Serialized Form

Inner Class Summary
 class BasicRelationList.BasicRelationIterator
           
 
Inner classes inherited from class org.mmbase.bridge.implementation.BasicNodeList
BasicNodeList.BasicNodeIterator
 
Inner classes inherited from class org.mmbase.bridge.implementation.BasicList
BasicList.BasicIterator
 
Fields inherited from class org.mmbase.bridge.implementation.BasicNodeList
cloud, nodeManager
 
Fields inherited from class java.util.AbstractList
modCount
 
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  java.lang.Object validate(java.lang.Object o)
           
 
Methods inherited from class org.mmbase.bridge.implementation.BasicNodeList
convert, getNode, nodeIterator, subNodeList
 
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.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 java.lang.Object validate(java.lang.Object o)
                             throws java.lang.ClassCastException,
                                    java.lang.IllegalArgumentException
Overrides:
validate in class BasicNodeList

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
Following copied from interface: org.mmbase.bridge.RelationList
Parameters:
index - the position of the Relation to retrieve

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
Following copied from interface: org.mmbase.bridge.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)

relationIterator

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


MMBase build 1.6.5.20030923