KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.omg.mof.Model;
2
3
4 /**
5 * org/omg/mof/Model/ModelElementPOA.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 ModelElementClass
13
public abstract class ModelElementPOA extends org.omg.PortableServer.Servant JavaDoc
14  implements org.omg.mof.Model.ModelElementOperations, 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 ("name", new java.lang.Integer JavaDoc (0));
23     _methods.put ("set_name", new java.lang.Integer JavaDoc (1));
24     _methods.put ("annotation", new java.lang.Integer JavaDoc (2));
25     _methods.put ("set_annotation", new java.lang.Integer JavaDoc (3));
26     _methods.put ("qualified_name", new java.lang.Integer JavaDoc (4));
27     _methods.put ("container", new java.lang.Integer JavaDoc (5));
28     _methods.put ("set_container", new java.lang.Integer JavaDoc (6));
29     _methods.put ("unset_container", new java.lang.Integer JavaDoc (7));
30     _methods.put ("required_elements", new java.lang.Integer JavaDoc (8));
31     _methods.put ("set_required_elements", new java.lang.Integer JavaDoc (9));
32     _methods.put ("add_required_elements", new java.lang.Integer JavaDoc (10));
33     _methods.put ("modify_required_elements", new java.lang.Integer JavaDoc (11));
34     _methods.put ("remove_required_elements", new java.lang.Integer JavaDoc (12));
35     _methods.put ("constraints", new java.lang.Integer JavaDoc (13));
36     _methods.put ("set_constraints", new java.lang.Integer JavaDoc (14));
37     _methods.put ("add_constraints", new java.lang.Integer JavaDoc (15));
38     _methods.put ("modify_constraints", new java.lang.Integer JavaDoc (16));
39     _methods.put ("remove_constraints", new java.lang.Integer JavaDoc (17));
40     _methods.put ("_get_all_of_type_model_element", new java.lang.Integer JavaDoc (18));
41     _methods.put ("ref_is_instance_of", new java.lang.Integer JavaDoc (19));
42     _methods.put ("ref_create_instance", new java.lang.Integer JavaDoc (20));
43     _methods.put ("ref_all_objects", new java.lang.Integer JavaDoc (21));
44     _methods.put ("ref_set_value", new java.lang.Integer JavaDoc (22));
45     _methods.put ("ref_value", new java.lang.Integer JavaDoc (23));
46     _methods.put ("ref_unset_value", new java.lang.Integer JavaDoc (24));
47     _methods.put ("ref_add_value", new java.lang.Integer JavaDoc (25));
48     _methods.put ("ref_add_value_before", new java.lang.Integer JavaDoc (26));
49     _methods.put ("ref_add_value_at", new java.lang.Integer JavaDoc (27));
50     _methods.put ("ref_modify_value", new java.lang.Integer JavaDoc (28));
51     _methods.put ("ref_modify_value_at", new java.lang.Integer JavaDoc (29));
52     _methods.put ("ref_remove_value", new java.lang.Integer JavaDoc (30));
53     _methods.put ("ref_remove_value_at", new java.lang.Integer JavaDoc (31));
54     _methods.put ("ref_immediate_composite", new java.lang.Integer JavaDoc (32));
55     _methods.put ("ref_outermost_composite", new java.lang.Integer JavaDoc (33));
56     _methods.put ("ref_invoke_operation", new java.lang.Integer JavaDoc (34));
57     _methods.put ("ref_mof_id", new java.lang.Integer JavaDoc (35));
58     _methods.put ("ref_meta_object", new java.lang.Integer JavaDoc (36));
59     _methods.put ("ref_itself", new java.lang.Integer JavaDoc (37));
60     _methods.put ("ref_immediate_package", new java.lang.Integer JavaDoc (38));
61     _methods.put ("ref_outermost_package", new java.lang.Integer JavaDoc (39));
62     _methods.put ("ref_delete", new java.lang.Integer JavaDoc (40));
63   }
64
65   public org.omg.CORBA.portable.OutputStream JavaDoc _invoke (String JavaDoc $method,
66                                 org.omg.CORBA.portable.InputStream JavaDoc in,
67                                 org.omg.CORBA.portable.ResponseHandler JavaDoc $rh)
68   {
69     org.omg.CORBA.portable.OutputStream JavaDoc out = null;
70     java.lang.Integer JavaDoc __method = (java.lang.Integer JavaDoc)_methods.get ($method);
71     if (__method == null)
72       throw new org.omg.CORBA.BAD_OPERATION JavaDoc (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
73
74     switch (__method.intValue ())
75     {
76
77   //
78
case 0: // org/omg/mof/Model/ModelElement/name
79
{
80          try {
81            String JavaDoc $result = null;
82            $result = this.name ();
83            out = $rh.createReply();
84            out.write_string ($result);
85          } catch (org.omg.mof.Reflective.MofError $ex) {
86            out = $rh.createExceptionReply ();
87            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
88          }
89          break;
90        }
91
92        case 1: // org/omg/mof/Model/ModelElement/set_name
93
{
94          try {
95            String JavaDoc new_value = in.read_string ();
96            this.set_name (new_value);
97            out = $rh.createReply();
98          } catch (org.omg.mof.Reflective.MofError $ex) {
99            out = $rh.createExceptionReply ();
100            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
101          }
102          break;
103        }
104
105
106   //
107
case 2: // org/omg/mof/Model/ModelElement/annotation
108
{
109          try {
110            String JavaDoc $result = null;
111            $result = this.annotation ();
112            out = $rh.createReply();
113            out.write_string ($result);
114          } catch (org.omg.mof.Reflective.MofError $ex) {
115            out = $rh.createExceptionReply ();
116            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
117          }
118          break;
119        }
120
121        case 3: // org/omg/mof/Model/ModelElement/set_annotation
122
{
123          try {
124            String JavaDoc new_value = in.read_string ();
125            this.set_annotation (new_value);
126            out = $rh.createReply();
127          } catch (org.omg.mof.Reflective.MofError $ex) {
128            out = $rh.createExceptionReply ();
129            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
130          }
131          break;
132        }
133
134
135   //
136
case 4: // org/omg/mof/Model/ModelElement/qualified_name
137
{
138          try {
139            String JavaDoc $result[] = null;
140            $result = this.qualified_name ();
141            out = $rh.createReply();
142            org.omg.mof.Model.StringListHelper.write (out, $result);
143          } catch (org.omg.mof.Reflective.MofError $ex) {
144            out = $rh.createExceptionReply ();
145            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
146          }
147          break;
148        }
149
150
151   //
152
case 5: // org/omg/mof/Model/ModelElement/container
153
{
154          try {
155            org.omg.mof.Model.Namespace $result = null;
156            $result = this.container ();
157            out = $rh.createReply();
158            org.omg.mof.Model.NamespaceHelper.write (out, $result);
159          } catch (org.omg.mof.Reflective.NotSet $ex) {
160            out = $rh.createExceptionReply ();
161            org.omg.mof.Reflective.NotSetHelper.write (out, $ex);
162          } catch (org.omg.mof.Reflective.MofError $ex) {
163            out = $rh.createExceptionReply ();
164            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
165          }
166          break;
167        }
168
169        case 6: // org/omg/mof/Model/ModelElement/set_container
170
{
171          try {
172            org.omg.mof.Model.Namespace new_value = org.omg.mof.Model.NamespaceHelper.read (in);
173            this.set_container (new_value);
174            out = $rh.createReply();
175          } catch (org.omg.mof.Reflective.MofError $ex) {
176            out = $rh.createExceptionReply ();
177            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
178          }
179          break;
180        }
181
182        case 7: // org/omg/mof/Model/ModelElement/unset_container
183
{
184          try {
185            this.unset_container ();
186            out = $rh.createReply();
187          } catch (org.omg.mof.Reflective.MofError $ex) {
188            out = $rh.createExceptionReply ();
189            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
190          }
191          break;
192        }
193
194
195   //
196
case 8: // org/omg/mof/Model/ModelElement/required_elements
197
{
198          try {
199            org.omg.mof.Model.ModelElement $result[] = null;
200            $result = this.required_elements ();
201            out = $rh.createReply();
202            org.omg.mof.Model.ModelElementBagHelper.write (out, $result);
203          } catch (org.omg.mof.Reflective.MofError $ex) {
204            out = $rh.createExceptionReply ();
205            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
206          }
207          break;
208        }
209
210        case 9: // org/omg/mof/Model/ModelElement/set_required_elements
211
{
212          try {
213            org.omg.mof.Model.ModelElement new_value[] = org.omg.mof.Model.ModelElementBagHelper.read (in);
214            this.set_required_elements (new_value);
215            out = $rh.createReply();
216          } catch (org.omg.mof.Reflective.MofError $ex) {
217            out = $rh.createExceptionReply ();
218            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
219          }
220          break;
221        }
222
223        case 10: // org/omg/mof/Model/ModelElement/add_required_elements
224
{
225          try {
226            org.omg.mof.Model.ModelElement new_element = org.omg.mof.Model.ModelElementHelper.read (in);
227            this.add_required_elements (new_element);
228            out = $rh.createReply();
229          } catch (org.omg.mof.Reflective.MofError $ex) {
230            out = $rh.createExceptionReply ();
231            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
232          }
233          break;
234        }
235
236        case 11: // org/omg/mof/Model/ModelElement/modify_required_elements
237
{
238          try {
239            org.omg.mof.Model.ModelElement old_element = org.omg.mof.Model.ModelElementHelper.read (in);
240            org.omg.mof.Model.ModelElement new_element = org.omg.mof.Model.ModelElementHelper.read (in);
241            this.modify_required_elements (old_element, new_element);
242            out = $rh.createReply();
243          } catch (org.omg.mof.Reflective.NotFound $ex) {
244            out = $rh.createExceptionReply ();
245            org.omg.mof.Reflective.NotFoundHelper.write (out, $ex);
246          } catch (org.omg.mof.Reflective.MofError $ex) {
247            out = $rh.createExceptionReply ();
248            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
249          }
250          break;
251        }
252
253        case 12: // org/omg/mof/Model/ModelElement/remove_required_elements
254
{
255          try {
256            org.omg.mof.Model.ModelElement old_element = org.omg.mof.Model.ModelElementHelper.read (in);
257            this.remove_required_elements (old_element);
258            out = $rh.createReply();
259          } catch (org.omg.mof.Reflective.NotFound $ex) {
260            out = $rh.createExceptionReply ();
261            org.omg.mof.Reflective.NotFoundHelper.write (out, $ex);
262          } catch (org.omg.mof.Reflective.MofError $ex) {
263            out = $rh.createExceptionReply ();
264            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
265          }
266          break;
267        }
268
269
270   //
271
case 13: // org/omg/mof/Model/ModelElement/constraints
272
{
273          try {
274            org.omg.mof.Model.Constraint $result[] = null;
275            $result = this.constraints ();
276            out = $rh.createReply();
277            org.omg.mof.Model.ConstraintBagHelper.write (out, $result);
278          } catch (org.omg.mof.Reflective.MofError $ex) {
279            out = $rh.createExceptionReply ();
280            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
281          }
282          break;
283        }
284
285        case 14: // org/omg/mof/Model/ModelElement/set_constraints
286
{
287          try {
288            org.omg.mof.Model.Constraint new_value[] = org.omg.mof.Model.ConstraintBagHelper.read (in);
289            this.set_constraints (new_value);
290            out = $rh.createReply();
291          } catch (org.omg.mof.Reflective.MofError $ex) {
292            out = $rh.createExceptionReply ();
293            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
294          }
295          break;
296        }
297
298        case 15: // org/omg/mof/Model/ModelElement/add_constraints
299
{
300          try {
301            org.omg.mof.Model.Constraint new_element = org.omg.mof.Model.ConstraintHelper.read (in);
302            this.add_constraints (new_element);
303            out = $rh.createReply();
304          } catch (org.omg.mof.Reflective.MofError $ex) {
305            out = $rh.createExceptionReply ();
306            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
307          }
308          break;
309        }
310
311        case 16: // org/omg/mof/Model/ModelElement/modify_constraints
312
{
313          try {
314            org.omg.mof.Model.Constraint old_element = org.omg.mof.Model.ConstraintHelper.read (in);
315            org.omg.mof.Model.Constraint new_element = org.omg.mof.Model.ConstraintHelper.read (in);
316            this.modify_constraints (old_element, new_element);
317            out = $rh.createReply();
318          } catch (org.omg.mof.Reflective.NotFound $ex) {
319            out = $rh.createExceptionReply ();
320            org.omg.mof.Reflective.NotFoundHelper.write (out, $ex);
321          } catch (org.omg.mof.Reflective.MofError $ex) {
322            out = $rh.createExceptionReply ();
323            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
324          }
325          break;
326        }
327
328        case 17: // org/omg/mof/Model/ModelElement/remove_constraints
329
{
330          try {
331            org.omg.mof.Model.Constraint old_element = org.omg.mof.Model.ConstraintHelper.read (in);
332            this.remove_constraints (old_element);
333            out = $rh.createReply();
334          } catch (org.omg.mof.Reflective.NotFound $ex) {
335            out = $rh.createExceptionReply ();
336            org.omg.mof.Reflective.NotFoundHelper.write (out, $ex);
337          } catch (org.omg.mof.Reflective.MofError $ex) {
338            out = $rh.createExceptionReply ();
339            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
340          }
341          break;
342        }
343
344        case 18: // org/omg/mof/Model/ModelElementClass/_get_all_of_type_model_element
345
{
346          org.omg.mof.Model.ModelElement $result[] = null;
347          $result = this.all_of_type_model_element ();
348          out = $rh.createReply();
349          org.omg.mof.Model.ModelElementSetHelper.write (out, $result);
350          break;
351        }
352
353        case 19: // org/omg/mof/Reflective/RefObject/ref_is_instance_of
354
{
355          org.omg.mof.Reflective.RefObject some_class = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
356          boolean consider_subtypes = in.read_boolean ();
357          boolean $result = false;
358          $result = this.ref_is_instance_of (some_class, consider_subtypes);
359          out = $rh.createReply();
360          out.write_boolean ($result);
361          break;
362        }
363
364        case 20: // org/omg/mof/Reflective/RefObject/ref_create_instance
365
{
366          try {
367            org.omg.CORBA.Any JavaDoc args[] = org.omg.mof.Reflective.ValueTypeListHelper.read (in);
368            org.omg.mof.Reflective.RefObject $result = null;
369            $result = this.ref_create_instance (args);
370            out = $rh.createReply();
371            org.omg.mof.Reflective.RefObjectHelper.write (out, $result);
372          } catch (org.omg.mof.Reflective.MofError $ex) {
373            out = $rh.createExceptionReply ();
374            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
375          }
376          break;
377        }
378
379        case 21: // org/omg/mof/Reflective/RefObject/ref_all_objects
380
{
381          boolean include_subtypes = in.read_boolean ();
382          org.omg.mof.Reflective.RefObject $result[] = null;
383          $result = this.ref_all_objects (include_subtypes);
384          out = $rh.createReply();
385          org.omg.mof.Reflective.RefObjectSetHelper.write (out, $result);
386          break;
387        }
388
389        case 22: // org/omg/mof/Reflective/RefObject/ref_set_value
390
{
391          try {
392            org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
393            org.omg.CORBA.Any JavaDoc new_value = org.omg.mof.Reflective._ValueTypeHelper.read (in);
394            this.ref_set_value (feature, new_value);
395            out = $rh.createReply();
396          } catch (org.omg.mof.Reflective.MofError $ex) {
397            out = $rh.createExceptionReply ();
398            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
399          }
400          break;
401        }
402
403        case 23: // org/omg/mof/Reflective/RefObject/ref_value
404
{
405          try {
406            org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
407            org.omg.CORBA.Any JavaDoc $result = null;
408            $result = this.ref_value (feature);
409            out = $rh.createReply();
410            out.write_any ($result);
411          } catch (org.omg.mof.Reflective.NotSet $ex) {
412            out = $rh.createExceptionReply ();
413            org.omg.mof.Reflective.NotSetHelper.write (out, $ex);
414          } catch (org.omg.mof.Reflective.MofError $ex) {
415            out = $rh.createExceptionReply ();
416            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
417          }
418          break;
419        }
420
421        case 24: // org/omg/mof/Reflective/RefObject/ref_unset_value
422
{
423          try {
424            this.ref_unset_value ();
425            out = $rh.createReply();
426          } catch (org.omg.mof.Reflective.MofError $ex) {
427            out = $rh.createExceptionReply ();
428            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
429          }
430          break;
431        }
432
433        case 25: // org/omg/mof/Reflective/RefObject/ref_add_value
434
{
435          try {
436            org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
437            org.omg.CORBA.Any JavaDoc new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in);
438            this.ref_add_value (feature, new_element);
439            out = $rh.createReply();
440          } catch (org.omg.mof.Reflective.MofError $ex) {
441            out = $rh.createExceptionReply ();
442            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
443          }
444          break;
445        }
446
447        case 26: // org/omg/mof/Reflective/RefObject/ref_add_value_before
448
{
449          try {
450            org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
451            org.omg.CORBA.Any JavaDoc new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in);
452            org.omg.CORBA.Any JavaDoc before_element = org.omg.mof.Reflective._ValueTypeHelper.read (in);
453            this.ref_add_value_before (feature, new_element, before_element);
454            out = $rh.createReply();
455          } catch (org.omg.mof.Reflective.NotFound $ex) {
456            out = $rh.createExceptionReply ();
457            org.omg.mof.Reflective.NotFoundHelper.write (out, $ex);
458          } catch (org.omg.mof.Reflective.MofError $ex) {
459            out = $rh.createExceptionReply ();
460            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
461          }
462          break;
463        }
464
465        case 27: // org/omg/mof/Reflective/RefObject/ref_add_value_at
466
{
467          try {
468            org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
469            org.omg.CORBA.Any JavaDoc new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in);
470            int position = in.read_ulong ();
471            this.ref_add_value_at (feature, new_element, position);
472            out = $rh.createReply();
473          } catch (org.omg.mof.Reflective.BadPosition $ex) {
474            out = $rh.createExceptionReply ();
475            org.omg.mof.Reflective.BadPositionHelper.write (out, $ex);
476          } catch (org.omg.mof.Reflective.MofError $ex) {
477            out = $rh.createExceptionReply ();
478            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
479          }
480          break;
481        }
482
483        case 28: // org/omg/mof/Reflective/RefObject/ref_modify_value
484
{
485          try {
486            org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
487            org.omg.CORBA.Any JavaDoc old_element = org.omg.mof.Reflective._ValueTypeHelper.read (in);
488            org.omg.CORBA.Any JavaDoc new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in);
489            this.ref_modify_value (feature, old_element, new_element);
490            out = $rh.createReply();
491          } catch (org.omg.mof.Reflective.NotFound $ex) {
492            out = $rh.createExceptionReply ();
493            org.omg.mof.Reflective.NotFoundHelper.write (out, $ex);
494          } catch (org.omg.mof.Reflective.MofError $ex) {
495            out = $rh.createExceptionReply ();
496            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
497          }
498          break;
499        }
500
501        case 29: // org/omg/mof/Reflective/RefObject/ref_modify_value_at
502
{
503          try {
504            org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
505            org.omg.CORBA.Any JavaDoc new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in);
506            int position = in.read_ulong ();
507            this.ref_modify_value_at (feature, new_element, position);
508            out = $rh.createReply();
509          } catch (org.omg.mof.Reflective.BadPosition $ex) {
510            out = $rh.createExceptionReply ();
511            org.omg.mof.Reflective.BadPositionHelper.write (out, $ex);
512          } catch (org.omg.mof.Reflective.MofError $ex) {
513            out = $rh.createExceptionReply ();
514            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
515          }
516          break;
517        }
518
519        case 30: // org/omg/mof/Reflective/RefObject/ref_remove_value
520
{
521          try {
522            org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
523            org.omg.CORBA.Any JavaDoc existing_element = org.omg.mof.Reflective._ValueTypeHelper.read (in);
524            this.ref_remove_value (feature, existing_element);
525            out = $rh.createReply();
526          } catch (org.omg.mof.Reflective.NotFound $ex) {
527            out = $rh.createExceptionReply ();
528            org.omg.mof.Reflective.NotFoundHelper.write (out, $ex);
529          } catch (org.omg.mof.Reflective.MofError $ex) {
530            out = $rh.createExceptionReply ();
531            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
532          }
533          break;
534        }
535
536        case 31: // org/omg/mof/Reflective/RefObject/ref_remove_value_at
537
{
538          try {
539            org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
540            int position = in.read_ulong ();
541            this.ref_remove_value_at (feature, position);
542            out = $rh.createReply();
543          } catch (org.omg.mof.Reflective.BadPosition $ex) {
544            out = $rh.createExceptionReply ();
545            org.omg.mof.Reflective.BadPositionHelper.write (out, $ex);
546          } catch (org.omg.mof.Reflective.MofError $ex) {
547            out = $rh.createExceptionReply ();
548            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
549          }
550          break;
551        }
552
553        case 32: // org/omg/mof/Reflective/RefObject/ref_immediate_composite
554
{
555          org.omg.mof.Reflective.RefObject $result = null;
556          $result = this.ref_immediate_composite ();
557          out = $rh.createReply();
558          org.omg.mof.Reflective.RefObjectHelper.write (out, $result);
559          break;
560        }
561
562        case 33: // org/omg/mof/Reflective/RefObject/ref_outermost_composite
563
{
564          org.omg.mof.Reflective.RefObject $result = null;
565          $result = this.ref_outermost_composite ();
566          out = $rh.createReply();
567          org.omg.mof.Reflective.RefObjectHelper.write (out, $result);
568          break;
569        }
570
571        case 34: // org/omg/mof/Reflective/RefObject/ref_invoke_operation
572
{
573          try {
574            org.omg.mof.Reflective.RefObject requested_operation = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
575            org.omg.mof.Reflective.ValueTypeListHolder args = new org.omg.mof.Reflective.ValueTypeListHolder ();
576            args.value = org.omg.mof.Reflective.ValueTypeListHelper.read (in);
577            org.omg.CORBA.Any JavaDoc $result = null;
578            $result = this.ref_invoke_operation (requested_operation, args);
579            out = $rh.createReply();
580            out.write_any ($result);
581            org.omg.mof.Reflective.ValueTypeListHelper.write (out, args.value);
582          } catch (org.omg.mof.Reflective.OtherException $ex) {
583            out = $rh.createExceptionReply ();
584            org.omg.mof.Reflective.OtherExceptionHelper.write (out, $ex);
585          } catch (org.omg.mof.Reflective.MofError $ex) {
586            out = $rh.createExceptionReply ();
587            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
588          }
589          break;
590        }
591
592        case 35: // org/omg/mof/Reflective/RefBaseObject/ref_mof_id
593
{
594          String JavaDoc $result = null;
595          $result = this.ref_mof_id ();
596          out = $rh.createReply();
597          out.write_string ($result);
598          break;
599        }
600
601        case 36: // org/omg/mof/Reflective/RefBaseObject/ref_meta_object
602
{
603          org.omg.mof.Reflective.RefObject $result = null;
604          $result = this.ref_meta_object ();
605          out = $rh.createReply();
606          org.omg.mof.Reflective.RefObjectHelper.write (out, $result);
607          break;
608        }
609
610        case 37: // org/omg/mof/Reflective/RefBaseObject/ref_itself
611
{
612          org.omg.mof.Reflective.RefBaseObject other_object = org.omg.mof.Reflective.RefBaseObjectHelper.read (in);
613          boolean $result = false;
614          $result = this.ref_itself (other_object);
615          out = $rh.createReply();
616          out.write_boolean ($result);
617          break;
618        }
619
620        case 38: // org/omg/mof/Reflective/RefBaseObject/ref_immediate_package
621
{
622          org.omg.mof.Reflective._RefPackage $result = null;
623          $result = this.ref_immediate_package ();
624          out = $rh.createReply();
625          org.omg.mof.Reflective._RefPackageHelper.write (out, $result);
626          break;
627        }
628
629        case 39: // org/omg/mof/Reflective/RefBaseObject/ref_outermost_package
630
{
631          org.omg.mof.Reflective._RefPackage $result = null;
632          $result = this.ref_outermost_package ();
633          out = $rh.createReply();
634          org.omg.mof.Reflective._RefPackageHelper.write (out, $result);
635          break;
636        }
637
638        case 40: // org/omg/mof/Reflective/RefBaseObject/ref_delete
639
{
640          try {
641            this.ref_delete ();
642            out = $rh.createReply();
643          } catch (org.omg.mof.Reflective.MofError $ex) {
644            out = $rh.createExceptionReply ();
645            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
646          }
647          break;
648        }
649
650        default:
651          throw new org.omg.CORBA.BAD_OPERATION JavaDoc (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
652     }
653
654     return out;
655   } // _invoke
656

657   // Type-specific CORBA::Object operations
658
private static String JavaDoc[] __ids = {
659     "IDL:org/omg/mof/Model/ModelElement:1.0",
660     "IDL:org/omg/mof/Model/ModelElementClass:1.0",
661     "IDL:org/omg/mof/Reflective/RefObject:1.0",
662     "IDL:org/omg/mof/Reflective/RefBaseObject:1.0"};
663
664   public String JavaDoc[] _all_interfaces (org.omg.PortableServer.POA JavaDoc poa, byte[] objectId)
665   {
666     return (String JavaDoc[])__ids.clone ();
667   }
668
669   public ModelElement _this()
670   {
671     return ModelElementHelper.narrow(
672     super._this_object());
673   }
674
675   public ModelElement _this(org.omg.CORBA.ORB JavaDoc orb)
676   {
677     return ModelElementHelper.narrow(
678     super._this_object(orb));
679   }
680
681
682 } // class ModelElementPOA
683
Popular Tags