KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > ccm > IDL3 > PrimitiveTypeFactory


1 /*====================================================================
2
3 OpenCCM: The Open CORBA Component Model Platform
4 Copyright (C) 2000-2002 USTL - LIFL - GOAL
5 Contact: openccm-team@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): ______________________________________.
24
25 ====================================================================*/

26
27 package org.objectweb.ccm.IDL3;
28
29 /**
30  * This interface is the factory for primitive TypeRefs.
31  *
32  * @author <a=href="Philippe.Merle@lifl.fr">Philippe Merle</a>
33  * <a=href="Mathieu.Vadet@lifl.fr">Mathieu Vadet</a>
34  *
35  * @version 0.3
36  */

37
38 public interface PrimitiveTypeFactory
39 {
40     /**
41      * Obtain the null type.
42      *
43      * @return The new created TypeRef.
44      */

45     public TypeRef
46     type_null();
47
48     /**
49      * Obtain the void type.
50      *
51      * @return The new created TypeRef.
52      */

53     public TypeRef
54     type_void();
55
56     /**
57      * Obtain the short type.
58      *
59      * @return The new created TypeRef.
60      */

61     public TypeRef
62     type_short();
63
64     /**
65      * Obtain the long type.
66      *
67      * @return The new created TypeRef.
68      */

69     public TypeRef
70     type_long();
71
72     /**
73      * Obtain the unsigned short type.
74      *
75      * @return The new created TypeRef.
76      */

77     public TypeRef
78     type_unsigned_short();
79
80     /**
81      * Obtain the unsigned long type.
82      *
83      * @return The new created TypeRef.
84      */

85     public TypeRef
86     type_unsigned_long();
87
88     /**
89      * Obtain the float type.
90      *
91      * @return The new created TypeRef.
92      */

93     public TypeRef
94     type_float();
95
96     /**
97      * Obtain the double type.
98      *
99      * @return The new created TypeRef.
100      */

101     public TypeRef
102     type_double();
103
104     /**
105      * Obtain the boolean type.
106      *
107      * @return The new created TypeRef.
108      */

109     public TypeRef
110     type_boolean();
111
112     /**
113      * Obtain the char type.
114      *
115      * @return The new created TypeRef.
116      */

117     public TypeRef
118     type_char();
119
120     /**
121      * Obtain the octet type.
122      *
123      * @return The new created TypeRef.
124      */

125     public TypeRef
126     type_octet();
127
128     /**
129      * Obtain the any type.
130      *
131      * @return The new created TypeRef.
132      */

133     public TypeRef
134     type_any();
135
136     /**
137      * Obtain the TypeCode type.
138      *
139      * @return The new created TypeRef.
140      */

141     public TypeRef
142     type_TypeCode();
143
144     /**
145      * Obtain the Principal type.
146      *
147      * @return The new created TypeRef.
148      */

149     public TypeRef
150     type_Principal();
151
152     /**
153      * Obtain the string type.
154      *
155      * @return The new created TypeRef.
156      */

157     public TypeRef
158     type_string();
159
160     /**
161      * Obtain the Object type.
162      *
163      * @return The new created TypeRef.
164      */

165     public TypeRef
166     type_Object();
167
168     /**
169      * Obtain the long long type.
170      *
171      * @return The new created TypeRef.
172      */

173     public TypeRef
174     type_long_long();
175
176     /**
177      * Obtain the unsigned long long type.
178      *
179      * @return The new created TypeRef.
180      */

181     public TypeRef
182     type_unsigned_long_long();
183
184     /**
185      * Obtain the long double type.
186      *
187      * @return The new created TypeRef.
188      */

189     public TypeRef
190     type_long_double();
191
192     /**
193      * Obtain the wchar type.
194      *
195      * @return The new created TypeRef.
196      */

197     public TypeRef
198     type_wchar();
199
200     /**
201      * Obtain the wstring type.
202      *
203      * @return The new created TypeRef.
204      */

205     public TypeRef
206     type_wstring();
207
208     /**
209      * Obtain the value base type.
210      *
211      * @return The new created TypeRef.
212      */

213     public TypeRef
214     type_value_base();
215
216     /**
217      * Create an anonymous string<bound> type.
218      *
219      * @return The new created TypeRef.
220      */

221     public TypeRef
222     createString(int bound);
223
224     /**
225      * Create an anonymous wstring<bound> type.
226      *
227      * @return The new created TypeRef.
228      */

229     public TypeRef
230     createWstring(int bound);
231
232     /**
233      * Create an anonymous sequence<bound,element_type> type.
234      *
235      * @return The new created TypeRef.
236      */

237     public TypeRef
238     createSequence(int bound,
239                    TypeRef element_type);
240
241     /**
242      * Create an anonymous array type, i.e. element_type[length].
243      *
244      * @return The new created TypeRef.
245      */

246     public TypeRef
247     createArray(int length,
248                 TypeRef element_type);
249
250     /**
251      * Create a fixed type, i.e. fixed<digits,scale>.
252      *
253      * @return The new created TypeRef.
254      */

255     public TypeRef
256     createFixed(short digits,
257                 short scale);
258 }
259
Popular Tags