KickJava   Java API By Example, From Geeks To Geeks.

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


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

1055  // Type-specific CORBA::Object operations
1056
private static String JavaDoc[] __ids = {
1057    "IDL:org/omg/mof/Model/Package:1.0",
1058    "IDL:org/omg/mof/Model/PackageClass:1.0",
1059    "IDL:org/omg/mof/Model/GeneralizableElementClass:1.0",
1060    "IDL:org/omg/mof/Model/NamespaceClass:1.0",
1061    "IDL:org/omg/mof/Model/ModelElementClass:1.0",
1062    "IDL:org/omg/mof/Reflective/RefObject:1.0",
1063    "IDL:org/omg/mof/Reflective/RefBaseObject:1.0",
1064    "IDL:org/omg/mof/Model/ModelElement:1.0",
1065    "IDL:org/omg/mof/Model/Namespace:1.0",
1066    "IDL:org/omg/mof/Model/GeneralizableElement:1.0"};
1067
1068  public String JavaDoc[] _all_interfaces (org.omg.PortableServer.POA JavaDoc poa, byte[] objectId)
1069  {
1070    return (String JavaDoc[])__ids.clone ();
1071  }
1072
1073  public Package JavaDoc _this()
1074  {
1075    return PackageHelper.narrow(
1076    super._this_object());
1077  }
1078
1079  public Package JavaDoc _this(org.omg.CORBA.ORB JavaDoc orb)
1080  {
1081    return PackageHelper.narrow(
1082    super._this_object(orb));
1083  }
1084
1085
1086} // class PackagePOA
1087
Popular Tags