KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.omg.mof.Model;
2
3
4 /**
5 * org/omg/mof/Model/DataTypePOA.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 // end of interface DataTypeClass
13
public abstract class DataTypePOA extends org.omg.PortableServer.Servant JavaDoc
14  implements org.omg.mof.Model.DataTypeOperations, 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 ("type_code", new java.lang.Integer JavaDoc (0));
23     _methods.put ("set_type_code", new java.lang.Integer JavaDoc (1));
24     _methods.put ("_get_all_of_type_data_type", new java.lang.Integer JavaDoc (2));
25     _methods.put ("_get_all_of_class_data_type", new java.lang.Integer JavaDoc (3));
26     _methods.put ("create_data_type", new java.lang.Integer JavaDoc (4));
27     _methods.put ("_get_all_of_type_classifier", new java.lang.Integer JavaDoc (5));
28     _methods.put ("_get_all_of_type_generalizable_element", new java.lang.Integer JavaDoc (6));
29     _methods.put ("_get_all_of_type_namespace", new java.lang.Integer JavaDoc (7));
30     _methods.put ("_get_all_of_type_model_element", new java.lang.Integer JavaDoc (8));
31     _methods.put ("ref_is_instance_of", new java.lang.Integer JavaDoc (9));
32     _methods.put ("ref_create_instance", new java.lang.Integer JavaDoc (10));
33     _methods.put ("ref_all_objects", new java.lang.Integer JavaDoc (11));
34     _methods.put ("ref_set_value", new java.lang.Integer JavaDoc (12));
35     _methods.put ("ref_value", new java.lang.Integer JavaDoc (13));
36     _methods.put ("ref_unset_value", new java.lang.Integer JavaDoc (14));
37     _methods.put ("ref_add_value", new java.lang.Integer JavaDoc (15));
38     _methods.put ("ref_add_value_before", new java.lang.Integer JavaDoc (16));
39     _methods.put ("ref_add_value_at", new java.lang.Integer JavaDoc (17));
40     _methods.put ("ref_modify_value", new java.lang.Integer JavaDoc (18));
41     _methods.put ("ref_modify_value_at", new java.lang.Integer JavaDoc (19));
42     _methods.put ("ref_remove_value", new java.lang.Integer JavaDoc (20));
43     _methods.put ("ref_remove_value_at", new java.lang.Integer JavaDoc (21));
44     _methods.put ("ref_immediate_composite", new java.lang.Integer JavaDoc (22));
45     _methods.put ("ref_outermost_composite", new java.lang.Integer JavaDoc (23));
46     _methods.put ("ref_invoke_operation", new java.lang.Integer JavaDoc (24));
47     _methods.put ("ref_mof_id", new java.lang.Integer JavaDoc (25));
48     _methods.put ("ref_meta_object", new java.lang.Integer JavaDoc (26));
49     _methods.put ("ref_itself", new java.lang.Integer JavaDoc (27));
50     _methods.put ("ref_immediate_package", new java.lang.Integer JavaDoc (28));
51     _methods.put ("ref_outermost_package", new java.lang.Integer JavaDoc (29));
52     _methods.put ("ref_delete", new java.lang.Integer JavaDoc (30));
53     _methods.put ("name", new java.lang.Integer JavaDoc (31));
54     _methods.put ("set_name", new java.lang.Integer JavaDoc (32));
55     _methods.put ("annotation", new java.lang.Integer JavaDoc (33));
56     _methods.put ("set_annotation", new java.lang.Integer JavaDoc (34));
57     _methods.put ("qualified_name", new java.lang.Integer JavaDoc (35));
58     _methods.put ("container", new java.lang.Integer JavaDoc (36));
59     _methods.put ("set_container", new java.lang.Integer JavaDoc (37));
60     _methods.put ("unset_container", new java.lang.Integer JavaDoc (38));
61     _methods.put ("required_elements", new java.lang.Integer JavaDoc (39));
62     _methods.put ("set_required_elements", new java.lang.Integer JavaDoc (40));
63     _methods.put ("add_required_elements", new java.lang.Integer JavaDoc (41));
64     _methods.put ("modify_required_elements", new java.lang.Integer JavaDoc (42));
65     _methods.put ("remove_required_elements", new java.lang.Integer JavaDoc (43));
66     _methods.put ("constraints", new java.lang.Integer JavaDoc (44));
67     _methods.put ("set_constraints", new java.lang.Integer JavaDoc (45));
68     _methods.put ("add_constraints", new java.lang.Integer JavaDoc (46));
69     _methods.put ("modify_constraints", new java.lang.Integer JavaDoc (47));
70     _methods.put ("remove_constraints", new java.lang.Integer JavaDoc (48));
71     _methods.put ("contents", new java.lang.Integer JavaDoc (49));
72     _methods.put ("set_contents", new java.lang.Integer JavaDoc (50));
73     _methods.put ("add_contents", new java.lang.Integer JavaDoc (51));
74     _methods.put ("add_contents_before", new java.lang.Integer JavaDoc (52));
75     _methods.put ("modify_contents", new java.lang.Integer JavaDoc (53));
76     _methods.put ("remove_contents", new java.lang.Integer JavaDoc (54));
77     _methods.put ("visibility", new java.lang.Integer JavaDoc (55));
78     _methods.put ("set_visibility", new java.lang.Integer JavaDoc (56));
79     _methods.put ("is_leaf", new java.lang.Integer JavaDoc (57));
80     _methods.put ("set_is_leaf", new java.lang.Integer JavaDoc (58));
81     _methods.put ("is_root", new java.lang.Integer JavaDoc (59));
82     _methods.put ("set_is_root", new java.lang.Integer JavaDoc (60));
83     _methods.put ("is_abstract", new java.lang.Integer JavaDoc (61));
84     _methods.put ("set_is_abstract", new java.lang.Integer JavaDoc (62));
85     _methods.put ("all_supertypes", new java.lang.Integer JavaDoc (63));
86     _methods.put ("supertypes", new java.lang.Integer JavaDoc (64));
87     _methods.put ("set_supertypes", new java.lang.Integer JavaDoc (65));
88     _methods.put ("add_supertypes", new java.lang.Integer JavaDoc (66));
89     _methods.put ("add_supertypes_before", new java.lang.Integer JavaDoc (67));
90     _methods.put ("modify_supertypes", new java.lang.Integer JavaDoc (68));
91     _methods.put ("remove_supertypes", new java.lang.Integer JavaDoc (69));
92   }
93
94   public org.omg.CORBA.portable.OutputStream JavaDoc _invoke (String JavaDoc $method,
95                                 org.omg.CORBA.portable.InputStream JavaDoc in,
96                                 org.omg.CORBA.portable.ResponseHandler JavaDoc $rh)
97   {
98     org.omg.CORBA.portable.OutputStream JavaDoc out = null;
99     java.lang.Integer JavaDoc __method = (java.lang.Integer JavaDoc)_methods.get ($method);
100     if (__method == null)
101       throw new org.omg.CORBA.BAD_OPERATION JavaDoc (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
102
103     switch (__method.intValue ())
104     {
105
106   //
107
case 0: // org/omg/mof/Model/DataType/type_code
108
{
109          try {
110            org.omg.CORBA.TypeCode JavaDoc $result = null;
111            $result = this.type_code ();
112            out = $rh.createReply();
113            out.write_TypeCode ($result);
114          } catch (org.omg.mof.Reflective.MofError $ex) {
115            out = $rh.createExceptionReply ();
116            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
117          }
118          break;
119        }
120
121        case 1: // org/omg/mof/Model/DataType/set_type_code
122
{
123          try {
124            org.omg.CORBA.TypeCode JavaDoc new_value = in.read_TypeCode ();
125            this.set_type_code (new_value);
126            out = $rh.createReply();
127          } catch (org.omg.mof.Reflective.MofError $ex) {
128            out = $rh.createExceptionReply ();
129            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
130          }
131          break;
132        }
133
134        case 2: // org/omg/mof/Model/DataTypeClass/_get_all_of_type_data_type
135
{
136          org.omg.mof.Model.DataType $result[] = null;
137          $result = this.all_of_type_data_type ();
138          out = $rh.createReply();
139          org.omg.mof.Model.DataTypeSetHelper.write (out, $result);
140          break;
141        }
142
143        case 3: // org/omg/mof/Model/DataTypeClass/_get_all_of_class_data_type
144
{
145          org.omg.mof.Model.DataType $result[] = null;
146          $result = this.all_of_class_data_type ();
147          out = $rh.createReply();
148          org.omg.mof.Model.DataTypeSetHelper.write (out, $result);
149          break;
150        }
151
152        case 4: // org/omg/mof/Model/DataTypeClass/create_data_type
153
{
154          try {
155            String JavaDoc name = in.read_string ();
156            String JavaDoc annotation = in.read_string ();
157            org.omg.mof.Model.VisibilityKind visibility = org.omg.mof.Model.VisibilityKindHelper.read (in);
158            boolean is_leaf = in.read_boolean ();
159            boolean is_root = in.read_boolean ();
160            boolean is_abstract = in.read_boolean ();
161            org.omg.CORBA.TypeCode JavaDoc type_code = in.read_TypeCode ();
162            org.omg.mof.Model.DataType $result = null;
163            $result = this.create_data_type (name, annotation, visibility, is_leaf, is_root, is_abstract, type_code);
164            out = $rh.createReply();
165            org.omg.mof.Model.DataTypeHelper.write (out, $result);
166          } catch (org.omg.mof.Reflective.MofError $ex) {
167            out = $rh.createExceptionReply ();
168            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
169          }
170          break;
171        }
172
173        case 5: // org/omg/mof/Model/ClassifierClass/_get_all_of_type_classifier
174
{
175          org.omg.mof.Model.Classifier $result[] = null;
176          $result = this.all_of_type_classifier ();
177          out = $rh.createReply();
178          org.omg.mof.Model.ClassifierSetHelper.write (out, $result);
179          break;
180        }
181
182        case 6: // org/omg/mof/Model/GeneralizableElementClass/_get_all_of_type_generalizable_element
183
{
184          org.omg.mof.Model.GeneralizableElement $result[] = null;
185          $result = this.all_of_type_generalizable_element ();
186          out = $rh.createReply();
187          org.omg.mof.Model.GeneralizableElementSetHelper.write (out, $result);
188          break;
189        }
190
191        case 7: // org/omg/mof/Model/NamespaceClass/_get_all_of_type_namespace
192
{
193          org.omg.mof.Model.Namespace $result[] = null;
194          $result = this.all_of_type_namespace ();
195          out = $rh.createReply();
196          org.omg.mof.Model.NamespaceSetHelper.write (out, $result);
197          break;
198        }
199
200        case 8: // org/omg/mof/Model/ModelElementClass/_get_all_of_type_model_element
201
{
202          org.omg.mof.Model.ModelElement $result[] = null;
203          $result = this.all_of_type_model_element ();
204          out = $rh.createReply();
205          org.omg.mof.Model.ModelElementSetHelper.write (out, $result);
206          break;
207        }
208
209        case 9: // org/omg/mof/Reflective/RefObject/ref_is_instance_of
210
{
211          org.omg.mof.Reflective.RefObject some_class = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
212          boolean consider_subtypes = in.read_boolean ();
213          boolean $result = false;
214          $result = this.ref_is_instance_of (some_class, consider_subtypes);
215          out = $rh.createReply();
216          out.write_boolean ($result);
217          break;
218        }
219
220        case 10: // org/omg/mof/Reflective/RefObject/ref_create_instance
221
{
222          try {
223            org.omg.CORBA.Any JavaDoc args[] = org.omg.mof.Reflective.ValueTypeListHelper.read (in);
224            org.omg.mof.Reflective.RefObject $result = null;
225            $result = this.ref_create_instance (args);
226            out = $rh.createReply();
227            org.omg.mof.Reflective.RefObjectHelper.write (out, $result);
228          } catch (org.omg.mof.Reflective.MofError $ex) {
229            out = $rh.createExceptionReply ();
230            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
231          }
232          break;
233        }
234
235        case 11: // org/omg/mof/Reflective/RefObject/ref_all_objects
236
{
237          boolean include_subtypes = in.read_boolean ();
238          org.omg.mof.Reflective.RefObject $result[] = null;
239          $result = this.ref_all_objects (include_subtypes);
240          out = $rh.createReply();
241          org.omg.mof.Reflective.RefObjectSetHelper.write (out, $result);
242          break;
243        }
244
245        case 12: // org/omg/mof/Reflective/RefObject/ref_set_value
246
{
247          try {
248            org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
249            org.omg.CORBA.Any JavaDoc new_value = org.omg.mof.Reflective._ValueTypeHelper.read (in);
250            this.ref_set_value (feature, new_value);
251            out = $rh.createReply();
252          } catch (org.omg.mof.Reflective.MofError $ex) {
253            out = $rh.createExceptionReply ();
254            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
255          }
256          break;
257        }
258
259        case 13: // org/omg/mof/Reflective/RefObject/ref_value
260
{
261          try {
262            org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
263            org.omg.CORBA.Any JavaDoc $result = null;
264            $result = this.ref_value (feature);
265            out = $rh.createReply();
266            out.write_any ($result);
267          } catch (org.omg.mof.Reflective.NotSet $ex) {
268            out = $rh.createExceptionReply ();
269            org.omg.mof.Reflective.NotSetHelper.write (out, $ex);
270          } catch (org.omg.mof.Reflective.MofError $ex) {
271            out = $rh.createExceptionReply ();
272            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
273          }
274          break;
275        }
276
277        case 14: // org/omg/mof/Reflective/RefObject/ref_unset_value
278
{
279          try {
280            this.ref_unset_value ();
281            out = $rh.createReply();
282          } catch (org.omg.mof.Reflective.MofError $ex) {
283            out = $rh.createExceptionReply ();
284            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
285          }
286          break;
287        }
288
289        case 15: // org/omg/mof/Reflective/RefObject/ref_add_value
290
{
291          try {
292            org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
293            org.omg.CORBA.Any JavaDoc new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in);
294            this.ref_add_value (feature, new_element);
295            out = $rh.createReply();
296          } catch (org.omg.mof.Reflective.MofError $ex) {
297            out = $rh.createExceptionReply ();
298            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
299          }
300          break;
301        }
302
303        case 16: // org/omg/mof/Reflective/RefObject/ref_add_value_before
304
{
305          try {
306            org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
307            org.omg.CORBA.Any JavaDoc new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in);
308            org.omg.CORBA.Any JavaDoc before_element = org.omg.mof.Reflective._ValueTypeHelper.read (in);
309            this.ref_add_value_before (feature, new_element, before_element);
310            out = $rh.createReply();
311          } catch (org.omg.mof.Reflective.NotFound $ex) {
312            out = $rh.createExceptionReply ();
313            org.omg.mof.Reflective.NotFoundHelper.write (out, $ex);
314          } catch (org.omg.mof.Reflective.MofError $ex) {
315            out = $rh.createExceptionReply ();
316            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
317          }
318          break;
319        }
320
321        case 17: // org/omg/mof/Reflective/RefObject/ref_add_value_at
322
{
323          try {
324            org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
325            org.omg.CORBA.Any JavaDoc new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in);
326            int position = in.read_ulong ();
327            this.ref_add_value_at (feature, new_element, position);
328            out = $rh.createReply();
329          } catch (org.omg.mof.Reflective.BadPosition $ex) {
330            out = $rh.createExceptionReply ();
331            org.omg.mof.Reflective.BadPositionHelper.write (out, $ex);
332          } catch (org.omg.mof.Reflective.MofError $ex) {
333            out = $rh.createExceptionReply ();
334            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
335          }
336          break;
337        }
338
339        case 18: // org/omg/mof/Reflective/RefObject/ref_modify_value
340
{
341          try {
342            org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
343            org.omg.CORBA.Any JavaDoc old_element = org.omg.mof.Reflective._ValueTypeHelper.read (in);
344            org.omg.CORBA.Any JavaDoc new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in);
345            this.ref_modify_value (feature, old_element, new_element);
346            out = $rh.createReply();
347          } catch (org.omg.mof.Reflective.NotFound $ex) {
348            out = $rh.createExceptionReply ();
349            org.omg.mof.Reflective.NotFoundHelper.write (out, $ex);
350          } catch (org.omg.mof.Reflective.MofError $ex) {
351            out = $rh.createExceptionReply ();
352            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
353          }
354          break;
355        }
356
357        case 19: // org/omg/mof/Reflective/RefObject/ref_modify_value_at
358
{
359          try {
360            org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
361            org.omg.CORBA.Any JavaDoc new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in);
362            int position = in.read_ulong ();
363            this.ref_modify_value_at (feature, new_element, position);
364            out = $rh.createReply();
365          } catch (org.omg.mof.Reflective.BadPosition $ex) {
366            out = $rh.createExceptionReply ();
367            org.omg.mof.Reflective.BadPositionHelper.write (out, $ex);
368          } catch (org.omg.mof.Reflective.MofError $ex) {
369            out = $rh.createExceptionReply ();
370            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
371          }
372          break;
373        }
374
375        case 20: // org/omg/mof/Reflective/RefObject/ref_remove_value
376
{
377          try {
378            org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
379            org.omg.CORBA.Any JavaDoc existing_element = org.omg.mof.Reflective._ValueTypeHelper.read (in);
380            this.ref_remove_value (feature, existing_element);
381            out = $rh.createReply();
382          } catch (org.omg.mof.Reflective.NotFound $ex) {
383            out = $rh.createExceptionReply ();
384            org.omg.mof.Reflective.NotFoundHelper.write (out, $ex);
385          } catch (org.omg.mof.Reflective.MofError $ex) {
386            out = $rh.createExceptionReply ();
387            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
388          }
389          break;
390        }
391
392        case 21: // org/omg/mof/Reflective/RefObject/ref_remove_value_at
393
{
394          try {
395            org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
396            int position = in.read_ulong ();
397            this.ref_remove_value_at (feature, position);
398            out = $rh.createReply();
399          } catch (org.omg.mof.Reflective.BadPosition $ex) {
400            out = $rh.createExceptionReply ();
401            org.omg.mof.Reflective.BadPositionHelper.write (out, $ex);
402          } catch (org.omg.mof.Reflective.MofError $ex) {
403            out = $rh.createExceptionReply ();
404            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
405          }
406          break;
407        }
408
409        case 22: // org/omg/mof/Reflective/RefObject/ref_immediate_composite
410
{
411          org.omg.mof.Reflective.RefObject $result = null;
412          $result = this.ref_immediate_composite ();
413          out = $rh.createReply();
414          org.omg.mof.Reflective.RefObjectHelper.write (out, $result);
415          break;
416        }
417
418        case 23: // org/omg/mof/Reflective/RefObject/ref_outermost_composite
419
{
420          org.omg.mof.Reflective.RefObject $result = null;
421          $result = this.ref_outermost_composite ();
422          out = $rh.createReply();
423          org.omg.mof.Reflective.RefObjectHelper.write (out, $result);
424          break;
425        }
426
427        case 24: // org/omg/mof/Reflective/RefObject/ref_invoke_operation
428
{
429          try {
430            org.omg.mof.Reflective.RefObject requested_operation = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
431            org.omg.mof.Reflective.ValueTypeListHolder args = new org.omg.mof.Reflective.ValueTypeListHolder ();
432            args.value = org.omg.mof.Reflective.ValueTypeListHelper.read (in);
433            org.omg.CORBA.Any JavaDoc $result = null;
434            $result = this.ref_invoke_operation (requested_operation, args);
435            out = $rh.createReply();
436            out.write_any ($result);
437            org.omg.mof.Reflective.ValueTypeListHelper.write (out, args.value);
438          } catch (org.omg.mof.Reflective.OtherException $ex) {
439            out = $rh.createExceptionReply ();
440            org.omg.mof.Reflective.OtherExceptionHelper.write (out, $ex);
441          } catch (org.omg.mof.Reflective.MofError $ex) {
442            out = $rh.createExceptionReply ();
443            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
444          }
445          break;
446        }
447
448        case 25: // org/omg/mof/Reflective/RefBaseObject/ref_mof_id
449
{
450          String JavaDoc $result = null;
451          $result = this.ref_mof_id ();
452          out = $rh.createReply();
453          out.write_string ($result);
454          break;
455        }
456
457        case 26: // org/omg/mof/Reflective/RefBaseObject/ref_meta_object
458
{
459          org.omg.mof.Reflective.RefObject $result = null;
460          $result = this.ref_meta_object ();
461          out = $rh.createReply();
462          org.omg.mof.Reflective.RefObjectHelper.write (out, $result);
463          break;
464        }
465
466        case 27: // org/omg/mof/Reflective/RefBaseObject/ref_itself
467
{
468          org.omg.mof.Reflective.RefBaseObject other_object = org.omg.mof.Reflective.RefBaseObjectHelper.read (in);
469          boolean $result = false;
470          $result = this.ref_itself (other_object);
471          out = $rh.createReply();
472          out.write_boolean ($result);
473          break;
474        }
475
476        case 28: // org/omg/mof/Reflective/RefBaseObject/ref_immediate_package
477
{
478          org.omg.mof.Reflective._RefPackage $result = null;
479          $result = this.ref_immediate_package ();
480          out = $rh.createReply();
481          org.omg.mof.Reflective._RefPackageHelper.write (out, $result);
482          break;
483        }
484
485        case 29: // org/omg/mof/Reflective/RefBaseObject/ref_outermost_package
486
{
487          org.omg.mof.Reflective._RefPackage $result = null;
488          $result = this.ref_outermost_package ();
489          out = $rh.createReply();
490          org.omg.mof.Reflective._RefPackageHelper.write (out, $result);
491          break;
492        }
493
494        case 30: // org/omg/mof/Reflective/RefBaseObject/ref_delete
495
{
496          try {
497            this.ref_delete ();
498            out = $rh.createReply();
499          } catch (org.omg.mof.Reflective.MofError $ex) {
500            out = $rh.createExceptionReply ();
501            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
502          }
503          break;
504        }
505
506
507   //
508
case 31: // org/omg/mof/Model/ModelElement/name
509
{
510          try {
511            String JavaDoc $result = null;
512            $result = this.name ();
513            out = $rh.createReply();
514            out.write_string ($result);
515          } catch (org.omg.mof.Reflective.MofError $ex) {
516            out = $rh.createExceptionReply ();
517            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
518          }
519          break;
520        }
521
522        case 32: // org/omg/mof/Model/ModelElement/set_name
523
{
524          try {
525            String JavaDoc new_value = in.read_string ();
526            this.set_name (new_value);
527            out = $rh.createReply();
528          } catch (org.omg.mof.Reflective.MofError $ex) {
529            out = $rh.createExceptionReply ();
530            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
531          }
532          break;
533        }
534
535
536   //
537
case 33: // org/omg/mof/Model/ModelElement/annotation
538
{
539          try {
540            String JavaDoc $result = null;
541            $result = this.annotation ();
542            out = $rh.createReply();
543            out.write_string ($result);
544          } catch (org.omg.mof.Reflective.MofError $ex) {
545            out = $rh.createExceptionReply ();
546            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
547          }
548          break;
549        }
550
551        case 34: // org/omg/mof/Model/ModelElement/set_annotation
552
{
553          try {
554            String JavaDoc new_value = in.read_string ();
555            this.set_annotation (new_value);
556            out = $rh.createReply();
557          } catch (org.omg.mof.Reflective.MofError $ex) {
558            out = $rh.createExceptionReply ();
559            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
560          }
561          break;
562        }
563
564
565   //
566
case 35: // org/omg/mof/Model/ModelElement/qualified_name
567
{
568          try {
569            String JavaDoc $result[] = null;
570            $result = this.qualified_name ();
571            out = $rh.createReply();
572            org.omg.mof.Model.StringListHelper.write (out, $result);
573          } catch (org.omg.mof.Reflective.MofError $ex) {
574            out = $rh.createExceptionReply ();
575            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
576          }
577          break;
578        }
579
580
581   //
582
case 36: // org/omg/mof/Model/ModelElement/container
583
{
584          try {
585            org.omg.mof.Model.Namespace $result = null;
586            $result = this.container ();
587            out = $rh.createReply();
588            org.omg.mof.Model.NamespaceHelper.write (out, $result);
589          } catch (org.omg.mof.Reflective.NotSet $ex) {
590            out = $rh.createExceptionReply ();
591            org.omg.mof.Reflective.NotSetHelper.write (out, $ex);
592          } catch (org.omg.mof.Reflective.MofError $ex) {
593            out = $rh.createExceptionReply ();
594            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
595          }
596          break;
597        }
598
599        case 37: // org/omg/mof/Model/ModelElement/set_container
600
{
601          try {
602            org.omg.mof.Model.Namespace new_value = org.omg.mof.Model.NamespaceHelper.read (in);
603            this.set_container (new_value);
604            out = $rh.createReply();
605          } catch (org.omg.mof.Reflective.MofError $ex) {
606            out = $rh.createExceptionReply ();
607            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
608          }
609          break;
610        }
611
612        case 38: // org/omg/mof/Model/ModelElement/unset_container
613
{
614          try {
615            this.unset_container ();
616            out = $rh.createReply();
617          } catch (org.omg.mof.Reflective.MofError $ex) {
618            out = $rh.createExceptionReply ();
619            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
620          }
621          break;
622        }
623
624
625   //
626
case 39: // org/omg/mof/Model/ModelElement/required_elements
627
{
628          try {
629            org.omg.mof.Model.ModelElement $result[] = null;
630            $result = this.required_elements ();
631            out = $rh.createReply();
632            org.omg.mof.Model.ModelElementBagHelper.write (out, $result);
633          } catch (org.omg.mof.Reflective.MofError $ex) {
634            out = $rh.createExceptionReply ();
635            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
636          }
637          break;
638        }
639
640        case 40: // org/omg/mof/Model/ModelElement/set_required_elements
641
{
642          try {
643            org.omg.mof.Model.ModelElement new_value[] = org.omg.mof.Model.ModelElementBagHelper.read (in);
644            this.set_required_elements (new_value);
645            out = $rh.createReply();
646          } catch (org.omg.mof.Reflective.MofError $ex) {
647            out = $rh.createExceptionReply ();
648            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
649          }
650          break;
651        }
652
653        case 41: // org/omg/mof/Model/ModelElement/add_required_elements
654
{
655          try {
656            org.omg.mof.Model.ModelElement new_element = org.omg.mof.Model.ModelElementHelper.read (in);
657            this.add_required_elements (new_element);
658            out = $rh.createReply();
659          } catch (org.omg.mof.Reflective.MofError $ex) {
660            out = $rh.createExceptionReply ();
661            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
662          }
663          break;
664        }
665
666        case 42: // org/omg/mof/Model/ModelElement/modify_required_elements
667
{
668          try {
669            org.omg.mof.Model.ModelElement old_element = org.omg.mof.Model.ModelElementHelper.read (in);
670            org.omg.mof.Model.ModelElement new_element = org.omg.mof.Model.ModelElementHelper.read (in);
671            this.modify_required_elements (old_element, new_element);
672            out = $rh.createReply();
673          } catch (org.omg.mof.Reflective.NotFound $ex) {
674            out = $rh.createExceptionReply ();
675            org.omg.mof.Reflective.NotFoundHelper.write (out, $ex);
676          } catch (org.omg.mof.Reflective.MofError $ex) {
677            out = $rh.createExceptionReply ();
678            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
679          }
680          break;
681        }
682
683        case 43: // org/omg/mof/Model/ModelElement/remove_required_elements
684
{
685          try {
686            org.omg.mof.Model.ModelElement old_element = org.omg.mof.Model.ModelElementHelper.read (in);
687            this.remove_required_elements (old_element);
688            out = $rh.createReply();
689          } catch (org.omg.mof.Reflective.NotFound $ex) {
690            out = $rh.createExceptionReply ();
691            org.omg.mof.Reflective.NotFoundHelper.write (out, $ex);
692          } catch (org.omg.mof.Reflective.MofError $ex) {
693            out = $rh.createExceptionReply ();
694            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
695          }
696          break;
697        }
698
699
700   //
701
case 44: // org/omg/mof/Model/ModelElement/constraints
702
{
703          try {
704            org.omg.mof.Model.Constraint $result[] = null;
705            $result = this.constraints ();
706            out = $rh.createReply();
707            org.omg.mof.Model.ConstraintBagHelper.write (out, $result);
708          } catch (org.omg.mof.Reflective.MofError $ex) {
709            out = $rh.createExceptionReply ();
710            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
711          }
712          break;
713        }
714
715        case 45: // org/omg/mof/Model/ModelElement/set_constraints
716
{
717          try {
718            org.omg.mof.Model.Constraint new_value[] = org.omg.mof.Model.ConstraintBagHelper.read (in);
719            this.set_constraints (new_value);
720            out = $rh.createReply();
721          } catch (org.omg.mof.Reflective.MofError $ex) {
722            out = $rh.createExceptionReply ();
723            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
724          }
725          break;
726        }
727
728        case 46: // org/omg/mof/Model/ModelElement/add_constraints
729
{
730          try {
731            org.omg.mof.Model.Constraint new_element = org.omg.mof.Model.ConstraintHelper.read (in);
732            this.add_constraints (new_element);
733            out = $rh.createReply();
734          } catch (org.omg.mof.Reflective.MofError $ex) {
735            out = $rh.createExceptionReply ();
736            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
737          }
738          break;
739        }
740
741        case 47: // org/omg/mof/Model/ModelElement/modify_constraints
742
{
743          try {
744            org.omg.mof.Model.Constraint old_element = org.omg.mof.Model.ConstraintHelper.read (in);
745            org.omg.mof.Model.Constraint new_element = org.omg.mof.Model.ConstraintHelper.read (in);
746            this.modify_constraints (old_element, new_element);
747            out = $rh.createReply();
748          } catch (org.omg.mof.Reflective.NotFound $ex) {
749            out = $rh.createExceptionReply ();
750            org.omg.mof.Reflective.NotFoundHelper.write (out, $ex);
751          } catch (org.omg.mof.Reflective.MofError $ex) {
752            out = $rh.createExceptionReply ();
753            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
754          }
755          break;
756        }
757
758        case 48: // org/omg/mof/Model/ModelElement/remove_constraints
759
{
760          try {
761            org.omg.mof.Model.Constraint old_element = org.omg.mof.Model.ConstraintHelper.read (in);
762            this.remove_constraints (old_element);
763            out = $rh.createReply();
764          } catch (org.omg.mof.Reflective.NotFound $ex) {
765            out = $rh.createExceptionReply ();
766            org.omg.mof.Reflective.NotFoundHelper.write (out, $ex);
767          } catch (org.omg.mof.Reflective.MofError $ex) {
768            out = $rh.createExceptionReply ();
769            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
770          }
771          break;
772        }
773
774
775   //
776
case 49: // org/omg/mof/Model/Namespace/contents
777
{
778          try {
779            org.omg.mof.Model.ModelElement $result[] = null;
780            $result = this.contents ();
781            out = $rh.createReply();
782            org.omg.mof.Model.ModelElementListHelper.write (out, $result);
783          } catch (org.omg.mof.Reflective.MofError $ex) {
784            out = $rh.createExceptionReply ();
785            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
786          }
787          break;
788        }
789
790        case 50: // org/omg/mof/Model/Namespace/set_contents
791
{
792          try {
793            org.omg.mof.Model.ModelElement new_value[] = org.omg.mof.Model.ModelElementListHelper.read (in);
794            this.set_contents (new_value);
795            out = $rh.createReply();
796          } catch (org.omg.mof.Reflective.MofError $ex) {
797            out = $rh.createExceptionReply ();
798            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
799          }
800          break;
801        }
802
803        case 51: // org/omg/mof/Model/Namespace/add_contents
804
{
805          try {
806            org.omg.mof.Model.ModelElement new_element = org.omg.mof.Model.ModelElementHelper.read (in);
807            this.add_contents (new_element);
808            out = $rh.createReply();
809          } catch (org.omg.mof.Reflective.MofError $ex) {
810            out = $rh.createExceptionReply ();
811            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
812          }
813          break;
814        }
815
816        case 52: // org/omg/mof/Model/Namespace/add_contents_before
817
{
818          try {
819            org.omg.mof.Model.ModelElement new_element = org.omg.mof.Model.ModelElementHelper.read (in);
820            org.omg.mof.Model.ModelElement before_element = org.omg.mof.Model.ModelElementHelper.read (in);
821            this.add_contents_before (new_element, before_element);
822            out = $rh.createReply();
823          } catch (org.omg.mof.Reflective.NotFound $ex) {
824            out = $rh.createExceptionReply ();
825            org.omg.mof.Reflective.NotFoundHelper.write (out, $ex);
826          } catch (org.omg.mof.Reflective.MofError $ex) {
827            out = $rh.createExceptionReply ();
828            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
829          }
830          break;
831        }
832
833        case 53: // org/omg/mof/Model/Namespace/modify_contents
834
{
835          try {
836            org.omg.mof.Model.ModelElement old_element = org.omg.mof.Model.ModelElementHelper.read (in);
837            org.omg.mof.Model.ModelElement new_element = org.omg.mof.Model.ModelElementHelper.read (in);
838            this.modify_contents (old_element, new_element);
839            out = $rh.createReply();
840          } catch (org.omg.mof.Reflective.NotFound $ex) {
841            out = $rh.createExceptionReply ();
842            org.omg.mof.Reflective.NotFoundHelper.write (out, $ex);
843          } catch (org.omg.mof.Reflective.MofError $ex) {
844            out = $rh.createExceptionReply ();
845            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
846          }
847          break;
848        }
849
850        case 54: // org/omg/mof/Model/Namespace/remove_contents
851
{
852          try {
853            org.omg.mof.Model.ModelElement old_element = org.omg.mof.Model.ModelElementHelper.read (in);
854            this.remove_contents (old_element);
855            out = $rh.createReply();
856          } catch (org.omg.mof.Reflective.NotFound $ex) {
857            out = $rh.createExceptionReply ();
858            org.omg.mof.Reflective.NotFoundHelper.write (out, $ex);
859          } catch (org.omg.mof.Reflective.MofError $ex) {
860            out = $rh.createExceptionReply ();
861            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
862          }
863          break;
864        }
865
866
867   //
868
case 55: // org/omg/mof/Model/GeneralizableElement/visibility
869
{
870          try {
871            org.omg.mof.Model.VisibilityKind $result = null;
872            $result = this.visibility ();
873            out = $rh.createReply();
874            org.omg.mof.Model.VisibilityKindHelper.write (out, $result);
875          } catch (org.omg.mof.Reflective.MofError $ex) {
876            out = $rh.createExceptionReply ();
877            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
878          }
879          break;
880        }
881
882        case 56: // org/omg/mof/Model/GeneralizableElement/set_visibility
883
{
884          try {
885            org.omg.mof.Model.VisibilityKind new_value = org.omg.mof.Model.VisibilityKindHelper.read (in);
886            this.set_visibility (new_value);
887            out = $rh.createReply();
888          } catch (org.omg.mof.Reflective.MofError $ex) {
889            out = $rh.createExceptionReply ();
890            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
891          }
892          break;
893        }
894
895
896   //
897
case 57: // org/omg/mof/Model/GeneralizableElement/is_leaf
898
{
899          try {
900            boolean $result = false;
901            $result = this.is_leaf ();
902            out = $rh.createReply();
903            out.write_boolean ($result);
904          } catch (org.omg.mof.Reflective.MofError $ex) {
905            out = $rh.createExceptionReply ();
906            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
907          }
908          break;
909        }
910
911        case 58: // org/omg/mof/Model/GeneralizableElement/set_is_leaf
912
{
913          try {
914            boolean new_value = in.read_boolean ();
915            this.set_is_leaf (new_value);
916            out = $rh.createReply();
917          } catch (org.omg.mof.Reflective.MofError $ex) {
918            out = $rh.createExceptionReply ();
919            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
920          }
921          break;
922        }
923
924
925   //
926
case 59: // org/omg/mof/Model/GeneralizableElement/is_root
927
{
928          try {
929            boolean $result = false;
930            $result = this.is_root ();
931            out = $rh.createReply();
932            out.write_boolean ($result);
933          } catch (org.omg.mof.Reflective.MofError $ex) {
934            out = $rh.createExceptionReply ();
935            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
936          }
937          break;
938        }
939
940        case 60: // org/omg/mof/Model/GeneralizableElement/set_is_root
941
{
942          try {
943            boolean new_value = in.read_boolean ();
944            this.set_is_root (new_value);
945            out = $rh.createReply();
946          } catch (org.omg.mof.Reflective.MofError $ex) {
947            out = $rh.createExceptionReply ();
948            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
949          }
950          break;
951        }
952
953
954   //
955
case 61: // org/omg/mof/Model/GeneralizableElement/is_abstract
956
{
957          try {
958            boolean $result = false;
959            $result = this.is_abstract ();
960            out = $rh.createReply();
961            out.write_boolean ($result);
962          } catch (org.omg.mof.Reflective.MofError $ex) {
963            out = $rh.createExceptionReply ();
964            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
965          }
966          break;
967        }
968
969        case 62: // org/omg/mof/Model/GeneralizableElement/set_is_abstract
970
{
971          try {
972            boolean new_value = in.read_boolean ();
973            this.set_is_abstract (new_value);
974            out = $rh.createReply();
975          } catch (org.omg.mof.Reflective.MofError $ex) {
976            out = $rh.createExceptionReply ();
977            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
978          }
979          break;
980        }
981
982
983   //
984
case 63: // org/omg/mof/Model/GeneralizableElement/all_supertypes
985
{
986          try {
987            org.omg.mof.Model.GeneralizableElement $result[] = null;
988            $result = this.all_supertypes ();
989            out = $rh.createReply();
990            org.omg.mof.Model.GeneralizableElementUListHelper.write (out, $result);
991          } catch (org.omg.mof.Reflective.MofError $ex) {
992            out = $rh.createExceptionReply ();
993            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
994          }
995          break;
996        }
997
998
999   //
1000
case 64: // org/omg/mof/Model/GeneralizableElement/supertypes
1001
{
1002         try {
1003           org.omg.mof.Model.GeneralizableElement $result[] = null;
1004           $result = this.supertypes ();
1005           out = $rh.createReply();
1006           org.omg.mof.Model.GeneralizableElementListHelper.write (out, $result);
1007         } catch (org.omg.mof.Reflective.MofError $ex) {
1008           out = $rh.createExceptionReply ();
1009           org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
1010         }
1011         break;
1012       }
1013
1014       case 65: // org/omg/mof/Model/GeneralizableElement/set_supertypes
1015
{
1016         try {
1017           org.omg.mof.Model.GeneralizableElement new_value[] = org.omg.mof.Model.GeneralizableElementListHelper.read (in);
1018           this.set_supertypes (new_value);
1019           out = $rh.createReply();
1020         } catch (org.omg.mof.Reflective.MofError $ex) {
1021           out = $rh.createExceptionReply ();
1022           org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
1023         }
1024         break;
1025       }
1026
1027       case 66: // org/omg/mof/Model/GeneralizableElement/add_supertypes
1028
{
1029         try {
1030           org.omg.mof.Model.GeneralizableElement new_element = org.omg.mof.Model.GeneralizableElementHelper.read (in);
1031           this.add_supertypes (new_element);
1032           out = $rh.createReply();
1033         } catch (org.omg.mof.Reflective.MofError $ex) {
1034           out = $rh.createExceptionReply ();
1035           org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
1036         }
1037         break;
1038       }
1039
1040       case 67: // org/omg/mof/Model/GeneralizableElement/add_supertypes_before
1041
{
1042         try {
1043           org.omg.mof.Model.GeneralizableElement new_element = org.omg.mof.Model.GeneralizableElementHelper.read (in);
1044           org.omg.mof.Model.GeneralizableElement before_element = org.omg.mof.Model.GeneralizableElementHelper.read (in);
1045           this.add_supertypes_before (new_element, before_element);
1046           out = $rh.createReply();
1047         } catch (org.omg.mof.Reflective.NotFound $ex) {
1048           out = $rh.createExceptionReply ();
1049           org.omg.mof.Reflective.NotFoundHelper.write (out, $ex);
1050         } catch (org.omg.mof.Reflective.MofError $ex) {
1051           out = $rh.createExceptionReply ();
1052           org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
1053         }
1054         break;
1055       }
1056
1057       case 68: // org/omg/mof/Model/GeneralizableElement/modify_supertypes
1058
{
1059         try {
1060           org.omg.mof.Model.GeneralizableElement old_element = org.omg.mof.Model.GeneralizableElementHelper.read (in);
1061           org.omg.mof.Model.GeneralizableElement new_element = org.omg.mof.Model.GeneralizableElementHelper.read (in);
1062           this.modify_supertypes (old_element, new_element);
1063           out = $rh.createReply();
1064         } catch (org.omg.mof.Reflective.NotFound $ex) {
1065           out = $rh.createExceptionReply ();
1066           org.omg.mof.Reflective.NotFoundHelper.write (out, $ex);
1067         } catch (org.omg.mof.Reflective.MofError $ex) {
1068           out = $rh.createExceptionReply ();
1069           org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
1070         }
1071         break;
1072       }
1073
1074       case 69: // org/omg/mof/Model/GeneralizableElement/remove_supertypes
1075
{
1076         try {
1077           org.omg.mof.Model.GeneralizableElement old_element = org.omg.mof.Model.GeneralizableElementHelper.read (in);
1078           this.remove_supertypes (old_element);
1079           out = $rh.createReply();
1080         } catch (org.omg.mof.Reflective.NotFound $ex) {
1081           out = $rh.createExceptionReply ();
1082           org.omg.mof.Reflective.NotFoundHelper.write (out, $ex);
1083         } catch (org.omg.mof.Reflective.MofError $ex) {
1084           out = $rh.createExceptionReply ();
1085           org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
1086         }
1087         break;
1088       }
1089
1090       default:
1091         throw new org.omg.CORBA.BAD_OPERATION JavaDoc (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
1092    }
1093
1094    return out;
1095  } // _invoke
1096

1097  // Type-specific CORBA::Object operations
1098
private static String JavaDoc[] __ids = {
1099    "IDL:org/omg/mof/Model/DataType:1.0",
1100    "IDL:org/omg/mof/Model/DataTypeClass:1.0",
1101    "IDL:org/omg/mof/Model/ClassifierClass:1.0",
1102    "IDL:org/omg/mof/Model/GeneralizableElementClass:1.0",
1103    "IDL:org/omg/mof/Model/NamespaceClass:1.0",
1104    "IDL:org/omg/mof/Model/ModelElementClass:1.0",
1105    "IDL:org/omg/mof/Reflective/RefObject:1.0",
1106    "IDL:org/omg/mof/Reflective/RefBaseObject:1.0",
1107    "IDL:org/omg/mof/Model/ModelElement:1.0",
1108    "IDL:org/omg/mof/Model/Namespace:1.0",
1109    "IDL:org/omg/mof/Model/GeneralizableElement:1.0",
1110    "IDL:org/omg/mof/Model/Classifier:1.0"};
1111
1112  public String JavaDoc[] _all_interfaces (org.omg.PortableServer.POA JavaDoc poa, byte[] objectId)
1113  {
1114    return (String JavaDoc[])__ids.clone ();
1115  }
1116
1117  public DataType _this()
1118  {
1119    return DataTypeHelper.narrow(
1120    super._this_object());
1121  }
1122
1123  public DataType _this(org.omg.CORBA.ORB JavaDoc orb)
1124  {
1125    return DataTypeHelper.narrow(
1126    super._this_object(orb));
1127  }
1128
1129
1130} // class DataTypePOA
1131
Popular Tags