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.implementation;
12:
13: import java.util.Collection;
14: import org.mmbase.bridge.*;
15:
16: /**
17: * A list of Modules
18: *
19: * @author Pierre van Rooden
20: * @version $Id: BasicModuleList.java,v 1.13 2007/02/10 15:47:42 nklasens Exp $
21: */
22: public class BasicModuleList extends BasicList<Module> implements
23: ModuleList {
24:
25: BasicModuleList() {
26: super ();
27: }
28:
29: BasicModuleList(Collection<? extends Module> c) {
30: super (c);
31: }
32:
33: public Module getModule(int index) {
34: return get(index);
35: }
36:
37: public ModuleIterator moduleIterator() {
38: return new BasicModuleIterator();
39: };
40:
41: protected class BasicModuleIterator extends BasicIterator implements
42: ModuleIterator {
43:
44: public Module nextModule() {
45: return next();
46: }
47:
48: public Module previousModule() {
49: return previous();
50: }
51:
52: }
53:
54: }
|