KickJava   Java API By Example, From Geeks To Geeks.

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


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, Mathieu Vadet.
23 Contributor(s): Christophe Demarey.
24
25 ====================================================================*/

26
27 package org.objectweb.openccm.ast.lib;
28
29 /** Used to access AST DeclarationKind. */
30 import org.objectweb.openccm.ast.api.DeclarationKind;
31
32 /** To use CORBA::ExtInitializer. */
33 import org.omg.CORBA.ExtInitializer;
34
35 /**
36  * InitializerImpl is a wrapper class
37  * for IDL value type initializer declarations.
38  *
39  * Inherits from:
40  * - OperationBaseImpl as initializers are IDL operations.
41  *
42  * @author <a HREF="mailto:Philippe.Merle@lifl.fr">Philippe Merle</a>
43  * <a HREF="mailto:Mathieu.Vadet@lifl.fr">Mathieu Vadet</a>
44  *
45  * @version 0.3
46  */

47
48 public class InitializerImpl
49        extends OperationBaseImpl
50        implements org.objectweb.openccm.ast.api.Initializer
51 {
52     // ==================================================================
53
//
54
// Internal state.
55
//
56
// ==================================================================
57

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

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

67     protected
68     InitializerImpl()
69     {
70         // Call OperationBaseImpl constructor.
71
super(null, null);
72
73         // Init internal state.
74
}
75
76     // ==================================================================
77
//
78
// Internal methods.
79
//
80
// ==================================================================
81

82     // ==================================================================
83
//
84
// Internal methods for DeclarationImpl.
85
//
86
// ==================================================================
87

88     /**
89      * Obtain its CORBA 3.0 Contained reference.
90      *
91      * @return The Contained object associated with the declaration.
92      */

93     protected org.omg.CORBA.Contained JavaDoc
94     getContained()
95     {
96         return null;
97     }
98
99     // ==================================================================
100
//
101
// Public methods.
102
//
103
// ==================================================================
104

105     /**
106      * Obtain its Initializer.
107      *
108      * @return A new created Initializer object.
109      */

110     public ExtInitializer
111     getExtInitializer()
112     {
113         return new ExtInitializer(parameters_.getStructMemberSeq(),
114                                   exceptions_.getExceptionDefSeq(),
115                                   exceptions_.getExceptionDescriptionSeq(),
116                                   getName());
117     }
118
119     // ==================================================================
120
//
121
// Methods for OMG IDL org.objectweb.openccm.ast.api.WithDependencies
122
//
123
// ==================================================================
124

125     // ==================================================================
126
//
127
// Methods for OMG IDL org.objectweb.openccm.ast.api.Declaration
128
//
129
// ==================================================================
130

131     /**
132      * Obtain its DeclarationKind.
133      *
134      * @return The DeclarationKind of the object.
135      */

136     public long
137     getDeclKind()
138     {
139         return DeclarationKind.dk_null;
140     }
141
142     // ==================================================================
143
//
144
// Methods for OMG IDL org.objectweb.openccm.ast.api.OperationBase
145
//
146
// ==================================================================
147

148     // ==================================================================
149
//
150
// Methods for OMG IDL org.objectweb.openccm.ast.api.Initializer
151
//
152
// ==================================================================
153
}
154
Popular Tags