KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mmbase > bridge > RelationList


1 /*
2
3 This software is OSI Certified Open Source Software.
4 OSI Certified is a certification mark of the Open Source Initiative.
5
6 The license (Mozilla version 1.0) can be read at the MMBase site.
7 See http://www.MMBase.org/license
8
9 */

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.5 2004/10/09 09:39:31 nico Exp $
18  */

19 public interface RelationList extends NodeList {
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 }
42
Popular Tags