01: /*
02:
03: This software is OSI Certified Open Source Software.
04: OSI Certified is a certification mark of the Open Source Initiative.
05:
06: The license (Mozilla version 1.0) can be read at the MMBase site.
07: See http://www.MMBase.org/license
08:
09: */
10:
11: package org.mmbase.bridge;
12:
13: /**
14: * A list of Relations
15: *
16: * @author Pierre van Rooden
17: * @version $Id: RelationList.java,v 1.7 2007/02/10 15:47:42 nklasens Exp $
18: */
19: public interface RelationList extends BridgeList<Relation> {
20:
21: /**
22: * Returns the Relation at the indicated postion in the list
23: * @param index the position of the Relation to retrieve
24: * @return Relation at the indicated postion
25: */
26: public Relation getRelation(int index);
27:
28: /**
29: * Returns an type-specific iterator for this list.
30: * @return Relation iterator
31: */
32: public RelationIterator relationIterator();
33:
34: /**
35: * Returns a sublist of this list.
36: * @param fromIndex the position in the current list where the sublist starts (inclusive)
37: * @param toIndex the position in the current list where the sublist ends (exclusive)
38: * @return sublist of this list
39: */
40: public RelationList subRelationList(int fromIndex, int toIndex);
41: }
|