KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.omg.mof.Model;
2
3
4 /**
5 * org/omg/mof/Model/FeaturePOA.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 FeatureClass
13
public abstract class FeaturePOA extends org.omg.PortableServer.Servant JavaDoc
14  implements org.omg.mof.Model.FeatureOperations, org.omg.CORBA.portable.InvokeHandler JavaDoc
15 {
16
17   // Constructors
18

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

729   // Type-specific CORBA::Object operations
730
private static String JavaDoc[] __ids = {
731     "IDL:org/omg/mof/Model/Feature:1.0",
732     "IDL:org/omg/mof/Model/FeatureClass:1.0",
733     "IDL:org/omg/mof/Model/ModelElementClass:1.0",
734     "IDL:org/omg/mof/Reflective/RefObject:1.0",
735     "IDL:org/omg/mof/Reflective/RefBaseObject:1.0",
736     "IDL:org/omg/mof/Model/ModelElement:1.0"};
737
738   public String JavaDoc[] _all_interfaces (org.omg.PortableServer.POA JavaDoc poa, byte[] objectId)
739   {
740     return (String JavaDoc[])__ids.clone ();
741   }
742
743   public Feature _this()
744   {
745     return FeatureHelper.narrow(
746     super._this_object());
747   }
748
749   public Feature _this(org.omg.CORBA.ORB JavaDoc orb)
750   {
751     return FeatureHelper.narrow(
752     super._this_object(orb));
753   }
754
755
756 } // class FeaturePOA
757
Popular Tags