KickJava   Java API By Example, From Geeks To Geeks.

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


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 access AST ExceptionList. */
30 import org.objectweb.openccm.ast.api.ExceptionList;
31
32 /** To access AST ParameterList. */
33 import org.objectweb.openccm.ast.api.ParameterList;
34
35 /**
36  * OperationBaseImpl is a wrapper base class for all operation declarations.
37  *
38  * Inherits from:
39  * - DeclarationWithTypeRefImpl as operations are IDL declarations
40  * and have an associated type.
41  *
42  * Provides:
43  * - The list of parameters,
44  * - The list of exceptions.
45  *
46  * @author <a HREF="mailto:Philippe.Merle@lifl.fr">Philippe Merle</a>
47  *
48  * @version 0.1
49  */

50
51 abstract public class OperationBaseImpl
52                 extends DeclarationWithTypeRefImpl
53                 implements org.objectweb.openccm.ast.api.OperationBase
54 {
55     // ==================================================================
56
//
57
// Internal state.
58
//
59
// ==================================================================
60

61     /** The operation parameters. */
62     protected ParameterListImpl parameters_;
63
64     /** The operation exceptions. */
65     protected ExceptionListImpl exceptions_;
66
67     // ==================================================================
68
//
69
// Constructor.
70
//
71
// ==================================================================
72

73     /**
74      * The constructor with the parent scope.
75      *
76      * @param rep The repository of the declaration.
77      * @param parent The parent scope of the declaration.
78      */

79     protected
80     OperationBaseImpl(Repository rep,
81                       ScopeImpl parent)
82     {
83         // Call the DeclarationWithTypeRefImpl constructor.
84
super(rep, parent);
85
86         // Init internal state.
87
parameters_ = new ParameterListImpl();
88         exceptions_ = new ExceptionListImpl();
89     }
90
91     // ==================================================================
92
//
93
// Internal methods.
94
//
95
// ==================================================================
96

97     // ==================================================================
98
//
99
// Internal methods for DeclarationImpl.
100
//
101
// ==================================================================
102

103     // ==================================================================
104
//
105
// Public methods.
106
//
107
// ==================================================================
108

109     // ==================================================================
110
//
111
// Methods for OMG IDL org.objectweb.openccm.ast.api.WithDependencies
112
//
113
// ==================================================================
114

115     // ==================================================================
116
//
117
// Methods for OMG IDL org.objectweb.openccm.ast.api.Declaration
118
//
119
// ==================================================================
120

121     // ==================================================================
122
//
123
// Methods for OMG IDL org.objectweb.openccm.ast.api.OperationBase
124
//
125
// ==================================================================
126

127     /**
128      * Obtain the parameter list.
129      *
130      * @return The parameter list.
131      */

132     public ParameterList
133     getParameterList()
134     {
135         return parameters_;
136     }
137
138     /**
139      * Obtain the exception list.
140      *
141      * @return The exception list.
142      */

143     public ExceptionList getExceptionList()
144     {
145         return exceptions_;
146     }
147 }
148
Popular Tags