KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > omg > mof > Model > TypeAliasClassPOA


1 package org.omg.mof.Model;
2
3
4 /**
5 * org/omg/mof/Model/TypeAliasClassPOA.java .
6 * Generated by the IDL-to-Java compiler (portable), version "3.1"
7 * from mof1.idl
8 * lundi 17 mars 2003 15 h 01 CET
9 */

10
11
12 //
13
public abstract class TypeAliasClassPOA extends org.omg.PortableServer.Servant JavaDoc
14  implements org.omg.mof.Model.TypeAliasClassOperations, org.omg.CORBA.portable.InvokeHandler JavaDoc
15 {
16
17   // Constructors
18

19   private static java.util.Hashtable JavaDoc _methods = new java.util.Hashtable JavaDoc ();
20   static
21   {
22     _methods.put ("_get_all_of_type_type_alias", new java.lang.Integer JavaDoc (0));
23     _methods.put ("_get_all_of_class_type_alias", new java.lang.Integer JavaDoc (1));
24     _methods.put ("create_type_alias", new java.lang.Integer JavaDoc (2));
25     _methods.put ("_get_all_of_type_typed_element", new java.lang.Integer JavaDoc (3));
26     _methods.put ("_get_all_of_type_model_element", new java.lang.Integer JavaDoc (4));
27     _methods.put ("ref_is_instance_of", new java.lang.Integer JavaDoc (5));
28     _methods.put ("ref_create_instance", new java.lang.Integer JavaDoc (6));
29     _methods.put ("ref_all_objects", new java.lang.Integer JavaDoc (7));
30     _methods.put ("ref_set_value", new java.lang.Integer JavaDoc (8));
31     _methods.put ("ref_value", new java.lang.Integer JavaDoc (9));
32     _methods.put ("ref_unset_value", new java.lang.Integer JavaDoc (10));
33     _methods.put ("ref_add_value", new java.lang.Integer JavaDoc (11));
34     _methods.put ("ref_add_value_before", new java.lang.Integer JavaDoc (12));
35     _methods.put ("ref_add_value_at", new java.lang.Integer JavaDoc (13));
36     _methods.put ("ref_modify_value", new java.lang.Integer JavaDoc (14));
37     _methods.put ("ref_modify_value_at", new java.lang.Integer JavaDoc (15));
38     _methods.put ("ref_remove_value", new java.lang.Integer JavaDoc (16));
39     _methods.put ("ref_remove_value_at", new java.lang.Integer JavaDoc (17));
40     _methods.put ("ref_immediate_composite", new java.lang.Integer JavaDoc (18));
41     _methods.put ("ref_outermost_composite", new java.lang.Integer JavaDoc (19));
42     _methods.put ("ref_invoke_operation", new java.lang.Integer JavaDoc (20));
43     _methods.put ("ref_mof_id", new java.lang.Integer JavaDoc (21));
44     _methods.put ("ref_meta_object", new java.lang.Integer JavaDoc (22));
45     _methods.put ("ref_itself", new java.lang.Integer JavaDoc (23));
46     _methods.put ("ref_immediate_package", new java.lang.Integer JavaDoc (24));
47     _methods.put ("ref_outermost_package", new java.lang.Integer JavaDoc (25));
48     _methods.put ("ref_delete", new java.lang.Integer JavaDoc (26));
49   }
50
51   public org.omg.CORBA.portable.OutputStream JavaDoc _invoke (String JavaDoc $method,
52                                 org.omg.CORBA.portable.InputStream JavaDoc in,
53                                 org.omg.CORBA.portable.ResponseHandler JavaDoc $rh)
54   {
55     org.omg.CORBA.portable.OutputStream JavaDoc out = null;
56     java.lang.Integer JavaDoc __method = (java.lang.Integer JavaDoc)_methods.get ($method);
57     if (__method == null)
58       throw new org.omg.CORBA.BAD_OPERATION JavaDoc (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
59
60     switch (__method.intValue ())
61     {
62        case 0: // org/omg/mof/Model/TypeAliasClass/_get_all_of_type_type_alias
63
{
64          org.omg.mof.Model.TypeAlias $result[] = null;
65          $result = this.all_of_type_type_alias ();
66          out = $rh.createReply();
67          org.omg.mof.Model.TypeAliasSetHelper.write (out, $result);
68          break;
69        }
70
71        case 1: // org/omg/mof/Model/TypeAliasClass/_get_all_of_class_type_alias
72
{
73          org.omg.mof.Model.TypeAlias $result[] = null;
74          $result = this.all_of_class_type_alias ();
75          out = $rh.createReply();
76          org.omg.mof.Model.TypeAliasSetHelper.write (out, $result);
77          break;
78        }
79
80        case 2: // org/omg/mof/Model/TypeAliasClass/create_type_alias
81
{
82          try {
83            String JavaDoc name = in.read_string ();
84            String JavaDoc annotation = in.read_string ();
85            org.omg.mof.Model.TypeAlias $result = null;
86            $result = this.create_type_alias (name, annotation);
87            out = $rh.createReply();
88            org.omg.mof.Model.TypeAliasHelper.write (out, $result);
89          } catch (org.omg.mof.Reflective.MofError $ex) {
90            out = $rh.createExceptionReply ();
91            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
92          }
93          break;
94        }
95
96        case 3: // org/omg/mof/Model/TypedElementClass/_get_all_of_type_typed_element
97
{
98          org.omg.mof.Model.TypedElement $result[] = null;
99          $result = this.all_of_type_typed_element ();
100          out = $rh.createReply();
101          org.omg.mof.Model.TypedElementSetHelper.write (out, $result);
102          break;
103        }
104
105        case 4: // org/omg/mof/Model/ModelElementClass/_get_all_of_type_model_element
106
{
107          org.omg.mof.Model.ModelElement $result[] = null;
108          $result = this.all_of_type_model_element ();
109          out = $rh.createReply();
110          org.omg.mof.Model.ModelElementSetHelper.write (out, $result);
111          break;
112        }
113
114        case 5: // org/omg/mof/Reflective/RefObject/ref_is_instance_of
115
{
116          org.omg.mof.Reflective.RefObject some_class = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
117          boolean consider_subtypes = in.read_boolean ();
118          boolean $result = false;
119          $result = this.ref_is_instance_of (some_class, consider_subtypes);
120          out = $rh.createReply();
121          out.write_boolean ($result);
122          break;
123        }
124
125        case 6: // org/omg/mof/Reflective/RefObject/ref_create_instance
126
{
127          try {
128            org.omg.CORBA.Any JavaDoc args[] = org.omg.mof.Reflective.ValueTypeListHelper.read (in);
129            org.omg.mof.Reflective.RefObject $result = null;
130            $result = this.ref_create_instance (args);
131            out = $rh.createReply();
132            org.omg.mof.Reflective.RefObjectHelper.write (out, $result);
133          } catch (org.omg.mof.Reflective.MofError $ex) {
134            out = $rh.createExceptionReply ();
135            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
136          }
137          break;
138        }
139
140        case 7: // org/omg/mof/Reflective/RefObject/ref_all_objects
141
{
142          boolean include_subtypes = in.read_boolean ();
143          org.omg.mof.Reflective.RefObject $result[] = null;
144          $result = this.ref_all_objects (include_subtypes);
145          out = $rh.createReply();
146          org.omg.mof.Reflective.RefObjectSetHelper.write (out, $result);
147          break;
148        }
149
150        case 8: // org/omg/mof/Reflective/RefObject/ref_set_value
151
{
152          try {
153            org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
154            org.omg.CORBA.Any JavaDoc new_value = org.omg.mof.Reflective._ValueTypeHelper.read (in);
155            this.ref_set_value (feature, new_value);
156            out = $rh.createReply();
157          } catch (org.omg.mof.Reflective.MofError $ex) {
158            out = $rh.createExceptionReply ();
159            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
160          }
161          break;
162        }
163
164        case 9: // org/omg/mof/Reflective/RefObject/ref_value
165
{
166          try {
167            org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
168            org.omg.CORBA.Any JavaDoc $result = null;
169            $result = this.ref_value (feature);
170            out = $rh.createReply();
171            out.write_any ($result);
172          } catch (org.omg.mof.Reflective.NotSet $ex) {
173            out = $rh.createExceptionReply ();
174            org.omg.mof.Reflective.NotSetHelper.write (out, $ex);
175          } catch (org.omg.mof.Reflective.MofError $ex) {
176            out = $rh.createExceptionReply ();
177            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
178          }
179          break;
180        }
181
182        case 10: // org/omg/mof/Reflective/RefObject/ref_unset_value
183
{
184          try {
185            this.ref_unset_value ();
186            out = $rh.createReply();
187          } catch (org.omg.mof.Reflective.MofError $ex) {
188            out = $rh.createExceptionReply ();
189            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
190          }
191          break;
192        }
193
194        case 11: // org/omg/mof/Reflective/RefObject/ref_add_value
195
{
196          try {
197            org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
198            org.omg.CORBA.Any JavaDoc new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in);
199            this.ref_add_value (feature, new_element);
200            out = $rh.createReply();
201          } catch (org.omg.mof.Reflective.MofError $ex) {
202            out = $rh.createExceptionReply ();
203            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
204          }
205          break;
206        }
207
208        case 12: // org/omg/mof/Reflective/RefObject/ref_add_value_before
209
{
210          try {
211            org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
212            org.omg.CORBA.Any JavaDoc new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in);
213            org.omg.CORBA.Any JavaDoc before_element = org.omg.mof.Reflective._ValueTypeHelper.read (in);
214            this.ref_add_value_before (feature, new_element, before_element);
215            out = $rh.createReply();
216          } catch (org.omg.mof.Reflective.NotFound $ex) {
217            out = $rh.createExceptionReply ();
218            org.omg.mof.Reflective.NotFoundHelper.write (out, $ex);
219          } catch (org.omg.mof.Reflective.MofError $ex) {
220            out = $rh.createExceptionReply ();
221            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
222          }
223          break;
224        }
225
226        case 13: // org/omg/mof/Reflective/RefObject/ref_add_value_at
227
{
228          try {
229            org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
230            org.omg.CORBA.Any JavaDoc new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in);
231            int position = in.read_ulong ();
232            this.ref_add_value_at (feature, new_element, position);
233            out = $rh.createReply();
234          } catch (org.omg.mof.Reflective.BadPosition $ex) {
235            out = $rh.createExceptionReply ();
236            org.omg.mof.Reflective.BadPositionHelper.write (out, $ex);
237          } catch (org.omg.mof.Reflective.MofError $ex) {
238            out = $rh.createExceptionReply ();
239            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
240          }
241          break;
242        }
243
244        case 14: // org/omg/mof/Reflective/RefObject/ref_modify_value
245
{
246          try {
247            org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
248            org.omg.CORBA.Any JavaDoc old_element = org.omg.mof.Reflective._ValueTypeHelper.read (in);
249            org.omg.CORBA.Any JavaDoc new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in);
250            this.ref_modify_value (feature, old_element, new_element);
251            out = $rh.createReply();
252          } catch (org.omg.mof.Reflective.NotFound $ex) {
253            out = $rh.createExceptionReply ();
254            org.omg.mof.Reflective.NotFoundHelper.write (out, $ex);
255          } catch (org.omg.mof.Reflective.MofError $ex) {
256            out = $rh.createExceptionReply ();
257            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
258          }
259          break;
260        }
261
262        case 15: // org/omg/mof/Reflective/RefObject/ref_modify_value_at
263
{
264          try {
265            org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
266            org.omg.CORBA.Any JavaDoc new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in);
267            int position = in.read_ulong ();
268            this.ref_modify_value_at (feature, new_element, position);
269            out = $rh.createReply();
270          } catch (org.omg.mof.Reflective.BadPosition $ex) {
271            out = $rh.createExceptionReply ();
272            org.omg.mof.Reflective.BadPositionHelper.write (out, $ex);
273          } catch (org.omg.mof.Reflective.MofError $ex) {
274            out = $rh.createExceptionReply ();
275            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
276          }
277          break;
278        }
279
280        case 16: // org/omg/mof/Reflective/RefObject/ref_remove_value
281
{
282          try {
283            org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
284            org.omg.CORBA.Any JavaDoc existing_element = org.omg.mof.Reflective._ValueTypeHelper.read (in);
285            this.ref_remove_value (feature, existing_element);
286            out = $rh.createReply();
287          } catch (org.omg.mof.Reflective.NotFound $ex) {
288            out = $rh.createExceptionReply ();
289            org.omg.mof.Reflective.NotFoundHelper.write (out, $ex);
290          } catch (org.omg.mof.Reflective.MofError $ex) {
291            out = $rh.createExceptionReply ();
292            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
293          }
294          break;
295        }
296
297        case 17: // org/omg/mof/Reflective/RefObject/ref_remove_value_at
298
{
299          try {
300            org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
301            int position = in.read_ulong ();
302            this.ref_remove_value_at (feature, position);
303            out = $rh.createReply();
304          } catch (org.omg.mof.Reflective.BadPosition $ex) {
305            out = $rh.createExceptionReply ();
306            org.omg.mof.Reflective.BadPositionHelper.write (out, $ex);
307          } catch (org.omg.mof.Reflective.MofError $ex) {
308            out = $rh.createExceptionReply ();
309            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
310          }
311          break;
312        }
313
314        case 18: // org/omg/mof/Reflective/RefObject/ref_immediate_composite
315
{
316          org.omg.mof.Reflective.RefObject $result = null;
317          $result = this.ref_immediate_composite ();
318          out = $rh.createReply();
319          org.omg.mof.Reflective.RefObjectHelper.write (out, $result);
320          break;
321        }
322
323        case 19: // org/omg/mof/Reflective/RefObject/ref_outermost_composite
324
{
325          org.omg.mof.Reflective.RefObject $result = null;
326          $result = this.ref_outermost_composite ();
327          out = $rh.createReply();
328          org.omg.mof.Reflective.RefObjectHelper.write (out, $result);
329          break;
330        }
331
332        case 20: // org/omg/mof/Reflective/RefObject/ref_invoke_operation
333
{
334          try {
335            org.omg.mof.Reflective.RefObject requested_operation = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
336            org.omg.mof.Reflective.ValueTypeListHolder args = new org.omg.mof.Reflective.ValueTypeListHolder ();
337            args.value = org.omg.mof.Reflective.ValueTypeListHelper.read (in);
338            org.omg.CORBA.Any JavaDoc $result = null;
339            $result = this.ref_invoke_operation (requested_operation, args);
340            out = $rh.createReply();
341            out.write_any ($result);
342            org.omg.mof.Reflective.ValueTypeListHelper.write (out, args.value);
343          } catch (org.omg.mof.Reflective.OtherException $ex) {
344            out = $rh.createExceptionReply ();
345            org.omg.mof.Reflective.OtherExceptionHelper.write (out, $ex);
346          } catch (org.omg.mof.Reflective.MofError $ex) {
347            out = $rh.createExceptionReply ();
348            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
349          }
350          break;
351        }
352
353        case 21: // org/omg/mof/Reflective/RefBaseObject/ref_mof_id
354
{
355          String JavaDoc $result = null;
356          $result = this.ref_mof_id ();
357          out = $rh.createReply();
358          out.write_string ($result);
359          break;
360        }
361
362        case 22: // org/omg/mof/Reflective/RefBaseObject/ref_meta_object
363
{
364          org.omg.mof.Reflective.RefObject $result = null;
365          $result = this.ref_meta_object ();
366          out = $rh.createReply();
367          org.omg.mof.Reflective.RefObjectHelper.write (out, $result);
368          break;
369        }
370
371        case 23: // org/omg/mof/Reflective/RefBaseObject/ref_itself
372
{
373          org.omg.mof.Reflective.RefBaseObject other_object = org.omg.mof.Reflective.RefBaseObjectHelper.read (in);
374          boolean $result = false;
375          $result = this.ref_itself (other_object);
376          out = $rh.createReply();
377          out.write_boolean ($result);
378          break;
379        }
380
381        case 24: // org/omg/mof/Reflective/RefBaseObject/ref_immediate_package
382
{
383          org.omg.mof.Reflective._RefPackage $result = null;
384          $result = this.ref_immediate_package ();
385          out = $rh.createReply();
386          org.omg.mof.Reflective._RefPackageHelper.write (out, $result);
387          break;
388        }
389
390        case 25: // org/omg/mof/Reflective/RefBaseObject/ref_outermost_package
391
{
392          org.omg.mof.Reflective._RefPackage $result = null;
393          $result = this.ref_outermost_package ();
394          out = $rh.createReply();
395          org.omg.mof.Reflective._RefPackageHelper.write (out, $result);
396          break;
397        }
398
399        case 26: // org/omg/mof/Reflective/RefBaseObject/ref_delete
400
{
401          try {
402            this.ref_delete ();
403            out = $rh.createReply();
404          } catch (org.omg.mof.Reflective.MofError $ex) {
405            out = $rh.createExceptionReply ();
406            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
407          }
408          break;
409        }
410
411        default:
412          throw new org.omg.CORBA.BAD_OPERATION JavaDoc (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
413     }
414
415     return out;
416   } // _invoke
417

418   // Type-specific CORBA::Object operations
419
private static String JavaDoc[] __ids = {
420     "IDL:org/omg/mof/Model/TypeAliasClass:1.0",
421     "IDL:org/omg/mof/Model/TypedElementClass:1.0",
422     "IDL:org/omg/mof/Model/ModelElementClass:1.0",
423     "IDL:org/omg/mof/Reflective/RefObject:1.0",
424     "IDL:org/omg/mof/Reflective/RefBaseObject:1.0"};
425
426   public String JavaDoc[] _all_interfaces (org.omg.PortableServer.POA JavaDoc poa, byte[] objectId)
427   {
428     return (String JavaDoc[])__ids.clone ();
429   }
430
431   public TypeAliasClass _this()
432   {
433     return TypeAliasClassHelper.narrow(
434     super._this_object());
435   }
436
437   public TypeAliasClass _this(org.omg.CORBA.ORB JavaDoc orb)
438   {
439     return TypeAliasClassHelper.narrow(
440     super._this_object(orb));
441   }
442
443
444 } // class TypeAliasClassPOA
445
Popular Tags