KickJava   Java API By Example, From Geeks To Geeks.

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


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

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