KickJava   Java API By Example, From Geeks To Geeks.

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


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

767   // Type-specific CORBA::Object operations
768
private static String JavaDoc[] __ids = {
769     "IDL:org/omg/mof/Model/Constant:1.0",
770     "IDL:org/omg/mof/Model/ConstantClass:1.0",
771     "IDL:org/omg/mof/Model/TypedElementClass:1.0",
772     "IDL:org/omg/mof/Model/ModelElementClass:1.0",
773     "IDL:org/omg/mof/Reflective/RefObject:1.0",
774     "IDL:org/omg/mof/Reflective/RefBaseObject:1.0",
775     "IDL:org/omg/mof/Model/ModelElement:1.0",
776     "IDL:org/omg/mof/Model/TypedElement:1.0"};
777
778   public String JavaDoc[] _all_interfaces (org.omg.PortableServer.POA JavaDoc poa, byte[] objectId)
779   {
780     return (String JavaDoc[])__ids.clone ();
781   }
782
783   public Constant _this()
784   {
785     return ConstantHelper.narrow(
786     super._this_object());
787   }
788
789   public Constant _this(org.omg.CORBA.ORB JavaDoc orb)
790   {
791     return ConstantHelper.narrow(
792     super._this_object(orb));
793   }
794
795
796 } // class ConstantPOA
797
Popular Tags