KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > openccm > ast > lib > AbstractStorageHomeListImpl


1 /*====================================================================
2
3 OpenCCM: The Open CORBA Component Model Platform
4 Copyright (C) 2000-2004 INRIA & USTL - LIFL - GOAL
5 Contact: openccm@objectweb.org
6
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Lesser General Public
9 License as published by the Free Software Foundation; either
10 version 2.1 of the License, or any later version.
11
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Lesser General Public License for more details.
16
17 You should have received a copy of the GNU Lesser General Public
18 License along with this library; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
20 USA
21
22 Initial developer(s): Philippe Merle.
23 Contributor(s): Christophe Demarey.
24
25 ====================================================================*/

26
27 package org.objectweb.openccm.ast.lib;
28
29 /** To use AST AbstractStorageHomeDecl. */
30 import org.objectweb.openccm.ast.api.AbstractStorageHomeDecl;
31
32 /**
33  * AbstractStorageHomeListImpl is a wrapper class for
34  * lists of AbstractStorageHomeDecl.
35  *
36  *
37  * Inherits from:
38  *
39  * - ListImpl: The base class for all lists.
40  *
41  * - AbstractStorageHomeList: OMG IDL for lists of AbstractStorageHomeDecl.
42  *
43  *
44  * @author <a HREF="mailto:Philippe.Merle@lifl.fr">Philippe Merle</a>
45  *
46  * @version 0.1
47  */

48
49 public class AbstractStorageHomeListImpl
50        extends ListBaseImpl
51        implements org.objectweb.openccm.ast.api.AbstractStorageHomeList
52 {
53     // ==================================================================
54
//
55
// Internal state.
56
//
57
// ==================================================================
58

59     // ==================================================================
60
//
61
// Constructor.
62
//
63
// ==================================================================
64

65     /**
66      * The default constructor.
67      */

68     public
69     AbstractStorageHomeListImpl()
70     {
71         // Call the ListBaseImpl constructor.
72
super();
73     }
74
75     // ==================================================================
76
//
77
// Internal methods.
78
//
79
// ==================================================================
80

81     // ==================================================================
82
//
83
// Public methods.
84
//
85
// ==================================================================
86

87     // ==================================================================
88
//
89
// Methods for OMG IDL org.objectweb.openccm.ast.api.List
90
//
91
// ==================================================================
92

93     // ==================================================================
94
//
95
// Methods for OMG IDL org.objectweb.openccm.ast.api.AbstractStorageHomeList
96
//
97
// ==================================================================
98

99     /**
100      * Add an AbstractStorageHomeDecl to this list.
101      *
102      * @param ash The AbstractStorageHomeDecl to add to the list.
103      */

104     public void
105     add(AbstractStorageHomeDecl ash)
106     {
107         super.addObject(ash);
108     }
109
110     /**
111      * Obtain all the AbstractStorageHomeDecl declarations added to this list.
112      *
113      * @return All the AbstractStorageHomeDecl declarations added to this list.
114      */

115     public AbstractStorageHomeDecl[]
116     getAbstractStorageHomes()
117     {
118        return (AbstractStorageHomeDecl[])super.
119               toArray(new AbstractStorageHomeDecl[0]);
120     }
121 }
122
Popular Tags