KickJava   Java API By Example, From Geeks To Geeks.

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


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 import java.util.List JavaDoc;
14 import java.util.Comparator JavaDoc;
15
16 /**
17  * A list of nodes
18  *
19  * @author Pierre van Rooden
20  * @version $Id: BridgeList.java,v 1.4 2004/06/08 08:45:16 michiel Exp $
21  * @since MMBase-1.6
22  */

23 public interface BridgeList extends List JavaDoc {
24
25     /**
26      * Retrieves a property previously set for this list.
27      * Use this to store and retrieve metadata on whow teh listw as created
28      * (such as what sort-order was specified)
29      * @param key the key of the property
30      * @return the property value
31      */

32     public Object JavaDoc getProperty(Object JavaDoc key);
33
34     /**
35      * Sets a property for this list.
36      * Use this to store and retrieve metadata on whow teh listw as created
37      * (such as what sort-order was specified)
38      * @param key the key of the property
39      * @param value the property value
40      */

41     public void setProperty(Object JavaDoc key, Object JavaDoc value);
42
43     /**
44      * Sorts this list according to a default sort order.
45      */

46     public void sort();
47
48     /**
49      * Sorts this list according to a specified sort order
50      *
51      * @param comparator the comparator defining the sort order
52      */

53     public void sort(Comparator JavaDoc comparator);
54 }
55
Popular Tags