KickJava   Java API By Example, From Geeks To Geeks.

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


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

1014  // Type-specific CORBA::Object operations
1015
private static String JavaDoc[] __ids = {
1016    "IDL:org/omg/mof/Model/GeneralizableElement:1.0",
1017    "IDL:org/omg/mof/Model/GeneralizableElementClass:1.0",
1018    "IDL:org/omg/mof/Model/NamespaceClass:1.0",
1019    "IDL:org/omg/mof/Model/ModelElementClass:1.0",
1020    "IDL:org/omg/mof/Reflective/RefObject:1.0",
1021    "IDL:org/omg/mof/Reflective/RefBaseObject:1.0",
1022    "IDL:org/omg/mof/Model/ModelElement:1.0",
1023    "IDL:org/omg/mof/Model/Namespace:1.0"};
1024
1025  public String JavaDoc[] _all_interfaces (org.omg.PortableServer.POA JavaDoc poa, byte[] objectId)
1026  {
1027    return (String JavaDoc[])__ids.clone ();
1028  }
1029
1030  public GeneralizableElement _this()
1031  {
1032    return GeneralizableElementHelper.narrow(
1033    super._this_object());
1034  }
1035
1036  public GeneralizableElement _this(org.omg.CORBA.ORB JavaDoc orb)
1037  {
1038    return GeneralizableElementHelper.narrow(
1039    super._this_object(orb));
1040  }
1041
1042
1043} // class GeneralizableElementPOA
1044
Popular Tags