KickJava   Java API By Example, From Geeks To Geeks.

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


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

842   // Type-specific CORBA::Object operations
843
private static String JavaDoc[] __ids = {
844     "IDL:org/omg/mof/Model/StructuralFeature:1.0",
845     "IDL:org/omg/mof/Model/StructuralFeatureClass:1.0",
846     "IDL:org/omg/mof/Model/TypedElementClass:1.0",
847     "IDL:org/omg/mof/Model/ModelElementClass:1.0",
848     "IDL:org/omg/mof/Reflective/RefObject:1.0",
849     "IDL:org/omg/mof/Reflective/RefBaseObject:1.0",
850     "IDL:org/omg/mof/Model/FeatureClass:1.0",
851     "IDL:org/omg/mof/Model/ModelElement:1.0",
852     "IDL:org/omg/mof/Model/TypedElement:1.0",
853     "IDL:org/omg/mof/Model/Feature:1.0"};
854
855   public String JavaDoc[] _all_interfaces (org.omg.PortableServer.POA JavaDoc poa, byte[] objectId)
856   {
857     return (String JavaDoc[])__ids.clone ();
858   }
859
860   public StructuralFeature _this()
861   {
862     return StructuralFeatureHelper.narrow(
863     super._this_object());
864   }
865
866   public StructuralFeature _this(org.omg.CORBA.ORB JavaDoc orb)
867   {
868     return StructuralFeatureHelper.narrow(
869     super._this_object(orb));
870   }
871
872
873 } // class StructuralFeaturePOA
874
Popular Tags