KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.omg.mof.Model;
2
3
4 /**
5 * org/omg/mof/Model/ReferencePOA.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 ReferenceClass
13
public abstract class ReferencePOA extends org.omg.PortableServer.Servant JavaDoc
14  implements org.omg.mof.Model.ReferenceOperations, 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 ("exposed_end", new java.lang.Integer JavaDoc (0));
23     _methods.put ("set_exposed_end", new java.lang.Integer JavaDoc (1));
24     _methods.put ("referenced_end", new java.lang.Integer JavaDoc (2));
25     _methods.put ("set_referenced_end", new java.lang.Integer JavaDoc (3));
26     _methods.put ("_get_all_of_type_reference", new java.lang.Integer JavaDoc (4));
27     _methods.put ("_get_all_of_class_reference", new java.lang.Integer JavaDoc (5));
28     _methods.put ("create_reference", new java.lang.Integer JavaDoc (6));
29     _methods.put ("_get_all_of_type_structural_feature", new java.lang.Integer JavaDoc (7));
30     _methods.put ("_get_all_of_type_typed_element", new java.lang.Integer JavaDoc (8));
31     _methods.put ("_get_all_of_type_model_element", new java.lang.Integer JavaDoc (9));
32     _methods.put ("ref_is_instance_of", new java.lang.Integer JavaDoc (10));
33     _methods.put ("ref_create_instance", new java.lang.Integer JavaDoc (11));
34     _methods.put ("ref_all_objects", new java.lang.Integer JavaDoc (12));
35     _methods.put ("ref_set_value", new java.lang.Integer JavaDoc (13));
36     _methods.put ("ref_value", new java.lang.Integer JavaDoc (14));
37     _methods.put ("ref_unset_value", new java.lang.Integer JavaDoc (15));
38     _methods.put ("ref_add_value", new java.lang.Integer JavaDoc (16));
39     _methods.put ("ref_add_value_before", new java.lang.Integer JavaDoc (17));
40     _methods.put ("ref_add_value_at", new java.lang.Integer JavaDoc (18));
41     _methods.put ("ref_modify_value", new java.lang.Integer JavaDoc (19));
42     _methods.put ("ref_modify_value_at", new java.lang.Integer JavaDoc (20));
43     _methods.put ("ref_remove_value", new java.lang.Integer JavaDoc (21));
44     _methods.put ("ref_remove_value_at", new java.lang.Integer JavaDoc (22));
45     _methods.put ("ref_immediate_composite", new java.lang.Integer JavaDoc (23));
46     _methods.put ("ref_outermost_composite", new java.lang.Integer JavaDoc (24));
47     _methods.put ("ref_invoke_operation", new java.lang.Integer JavaDoc (25));
48     _methods.put ("ref_mof_id", new java.lang.Integer JavaDoc (26));
49     _methods.put ("ref_meta_object", new java.lang.Integer JavaDoc (27));
50     _methods.put ("ref_itself", new java.lang.Integer JavaDoc (28));
51     _methods.put ("ref_immediate_package", new java.lang.Integer JavaDoc (29));
52     _methods.put ("ref_outermost_package", new java.lang.Integer JavaDoc (30));
53     _methods.put ("ref_delete", new java.lang.Integer JavaDoc (31));
54     _methods.put ("_get_all_of_type_feature", new java.lang.Integer JavaDoc (32));
55     _methods.put ("name", new java.lang.Integer JavaDoc (33));
56     _methods.put ("set_name", new java.lang.Integer JavaDoc (34));
57     _methods.put ("annotation", new java.lang.Integer JavaDoc (35));
58     _methods.put ("set_annotation", new java.lang.Integer JavaDoc (36));
59     _methods.put ("qualified_name", new java.lang.Integer JavaDoc (37));
60     _methods.put ("container", new java.lang.Integer JavaDoc (38));
61     _methods.put ("set_container", new java.lang.Integer JavaDoc (39));
62     _methods.put ("unset_container", new java.lang.Integer JavaDoc (40));
63     _methods.put ("required_elements", new java.lang.Integer JavaDoc (41));
64     _methods.put ("set_required_elements", new java.lang.Integer JavaDoc (42));
65     _methods.put ("add_required_elements", new java.lang.Integer JavaDoc (43));
66     _methods.put ("modify_required_elements", new java.lang.Integer JavaDoc (44));
67     _methods.put ("remove_required_elements", new java.lang.Integer JavaDoc (45));
68     _methods.put ("constraints", new java.lang.Integer JavaDoc (46));
69     _methods.put ("set_constraints", new java.lang.Integer JavaDoc (47));
70     _methods.put ("add_constraints", new java.lang.Integer JavaDoc (48));
71     _methods.put ("modify_constraints", new java.lang.Integer JavaDoc (49));
72     _methods.put ("remove_constraints", new java.lang.Integer JavaDoc (50));
73     _methods.put ("type", new java.lang.Integer JavaDoc (51));
74     _methods.put ("set_type", new java.lang.Integer JavaDoc (52));
75     _methods.put ("visibility", new java.lang.Integer JavaDoc (53));
76     _methods.put ("set_visibility", new java.lang.Integer JavaDoc (54));
77     _methods.put ("scope", new java.lang.Integer JavaDoc (55));
78     _methods.put ("set_scope", new java.lang.Integer JavaDoc (56));
79     _methods.put ("multiplicity", new java.lang.Integer JavaDoc (57));
80     _methods.put ("set_multiplicity", new java.lang.Integer JavaDoc (58));
81     _methods.put ("is_changeable", new java.lang.Integer JavaDoc (59));
82     _methods.put ("set_is_changeable", new java.lang.Integer JavaDoc (60));
83   }
84
85   public org.omg.CORBA.portable.OutputStream JavaDoc _invoke (String JavaDoc $method,
86                                 org.omg.CORBA.portable.InputStream JavaDoc in,
87                                 org.omg.CORBA.portable.ResponseHandler JavaDoc $rh)
88   {
89     org.omg.CORBA.portable.OutputStream JavaDoc out = null;
90     java.lang.Integer JavaDoc __method = (java.lang.Integer JavaDoc)_methods.get ($method);
91     if (__method == null)
92       throw new org.omg.CORBA.BAD_OPERATION JavaDoc (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
93
94     switch (__method.intValue ())
95     {
96
97   //
98
case 0: // org/omg/mof/Model/Reference/exposed_end
99
{
100          try {
101            org.omg.mof.Model.AssociationEnd $result = null;
102            $result = this.exposed_end ();
103            out = $rh.createReply();
104            org.omg.mof.Model.AssociationEndHelper.write (out, $result);
105          } catch (org.omg.mof.Reflective.MofError $ex) {
106            out = $rh.createExceptionReply ();
107            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
108          }
109          break;
110        }
111
112        case 1: // org/omg/mof/Model/Reference/set_exposed_end
113
{
114          try {
115            org.omg.mof.Model.AssociationEnd new_value = org.omg.mof.Model.AssociationEndHelper.read (in);
116            this.set_exposed_end (new_value);
117            out = $rh.createReply();
118          } catch (org.omg.mof.Reflective.MofError $ex) {
119            out = $rh.createExceptionReply ();
120            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
121          }
122          break;
123        }
124
125
126   //
127
case 2: // org/omg/mof/Model/Reference/referenced_end
128
{
129          try {
130            org.omg.mof.Model.AssociationEnd $result = null;
131            $result = this.referenced_end ();
132            out = $rh.createReply();
133            org.omg.mof.Model.AssociationEndHelper.write (out, $result);
134          } catch (org.omg.mof.Reflective.MofError $ex) {
135            out = $rh.createExceptionReply ();
136            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
137          }
138          break;
139        }
140
141        case 3: // org/omg/mof/Model/Reference/set_referenced_end
142
{
143          try {
144            org.omg.mof.Model.AssociationEnd new_value = org.omg.mof.Model.AssociationEndHelper.read (in);
145            this.set_referenced_end (new_value);
146            out = $rh.createReply();
147          } catch (org.omg.mof.Reflective.MofError $ex) {
148            out = $rh.createExceptionReply ();
149            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
150          }
151          break;
152        }
153
154        case 4: // org/omg/mof/Model/ReferenceClass/_get_all_of_type_reference
155
{
156          org.omg.mof.Model.Reference $result[] = null;
157          $result = this.all_of_type_reference ();
158          out = $rh.createReply();
159          org.omg.mof.Model.ReferenceSetHelper.write (out, $result);
160          break;
161        }
162
163        case 5: // org/omg/mof/Model/ReferenceClass/_get_all_of_class_reference
164
{
165          org.omg.mof.Model.Reference $result[] = null;
166          $result = this.all_of_class_reference ();
167          out = $rh.createReply();
168          org.omg.mof.Model.ReferenceSetHelper.write (out, $result);
169          break;
170        }
171
172        case 6: // org/omg/mof/Model/ReferenceClass/create_reference
173
{
174          try {
175            String JavaDoc name = in.read_string ();
176            String JavaDoc annotation = in.read_string ();
177            org.omg.mof.Model.VisibilityKind visibility = org.omg.mof.Model.VisibilityKindHelper.read (in);
178            org.omg.mof.Model.ScopeKind scope = org.omg.mof.Model.ScopeKindHelper.read (in);
179            org.omg.mof.Model.MultiplicityType multiplicity = org.omg.mof.Model.MultiplicityTypeHelper.read (in);
180            boolean is_changeable = in.read_boolean ();
181            org.omg.mof.Model.Reference $result = null;
182            $result = this.create_reference (name, annotation, visibility, scope, multiplicity, is_changeable);
183            out = $rh.createReply();
184            org.omg.mof.Model.ReferenceHelper.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 7: // org/omg/mof/Model/StructuralFeatureClass/_get_all_of_type_structural_feature
193
{
194          org.omg.mof.Model.StructuralFeature $result[] = null;
195          $result = this.all_of_type_structural_feature ();
196          out = $rh.createReply();
197          org.omg.mof.Model.StructuralFeatureSetHelper.write (out, $result);
198          break;
199        }
200
201        case 8: // org/omg/mof/Model/TypedElementClass/_get_all_of_type_typed_element
202
{
203          org.omg.mof.Model.TypedElement $result[] = null;
204          $result = this.all_of_type_typed_element ();
205          out = $rh.createReply();
206          org.omg.mof.Model.TypedElementSetHelper.write (out, $result);
207          break;
208        }
209
210        case 9: // org/omg/mof/Model/ModelElementClass/_get_all_of_type_model_element
211
{
212          org.omg.mof.Model.ModelElement $result[] = null;
213          $result = this.all_of_type_model_element ();
214          out = $rh.createReply();
215          org.omg.mof.Model.ModelElementSetHelper.write (out, $result);
216          break;
217        }
218
219        case 10: // org/omg/mof/Reflective/RefObject/ref_is_instance_of
220
{
221          org.omg.mof.Reflective.RefObject some_class = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
222          boolean consider_subtypes = in.read_boolean ();
223          boolean $result = false;
224          $result = this.ref_is_instance_of (some_class, consider_subtypes);
225          out = $rh.createReply();
226          out.write_boolean ($result);
227          break;
228        }
229
230        case 11: // org/omg/mof/Reflective/RefObject/ref_create_instance
231
{
232          try {
233            org.omg.CORBA.Any JavaDoc args[] = org.omg.mof.Reflective.ValueTypeListHelper.read (in);
234            org.omg.mof.Reflective.RefObject $result = null;
235            $result = this.ref_create_instance (args);
236            out = $rh.createReply();
237            org.omg.mof.Reflective.RefObjectHelper.write (out, $result);
238          } catch (org.omg.mof.Reflective.MofError $ex) {
239            out = $rh.createExceptionReply ();
240            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
241          }
242          break;
243        }
244
245        case 12: // org/omg/mof/Reflective/RefObject/ref_all_objects
246
{
247          boolean include_subtypes = in.read_boolean ();
248          org.omg.mof.Reflective.RefObject $result[] = null;
249          $result = this.ref_all_objects (include_subtypes);
250          out = $rh.createReply();
251          org.omg.mof.Reflective.RefObjectSetHelper.write (out, $result);
252          break;
253        }
254
255        case 13: // org/omg/mof/Reflective/RefObject/ref_set_value
256
{
257          try {
258            org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
259            org.omg.CORBA.Any JavaDoc new_value = org.omg.mof.Reflective._ValueTypeHelper.read (in);
260            this.ref_set_value (feature, new_value);
261            out = $rh.createReply();
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_value
270
{
271          try {
272            org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
273            org.omg.CORBA.Any JavaDoc $result = null;
274            $result = this.ref_value (feature);
275            out = $rh.createReply();
276            out.write_any ($result);
277          } catch (org.omg.mof.Reflective.NotSet $ex) {
278            out = $rh.createExceptionReply ();
279            org.omg.mof.Reflective.NotSetHelper.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_unset_value
288
{
289          try {
290            this.ref_unset_value ();
291            out = $rh.createReply();
292          } catch (org.omg.mof.Reflective.MofError $ex) {
293            out = $rh.createExceptionReply ();
294            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
295          }
296          break;
297        }
298
299        case 16: // org/omg/mof/Reflective/RefObject/ref_add_value
300
{
301          try {
302            org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
303            org.omg.CORBA.Any JavaDoc new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in);
304            this.ref_add_value (feature, new_element);
305            out = $rh.createReply();
306          } catch (org.omg.mof.Reflective.MofError $ex) {
307            out = $rh.createExceptionReply ();
308            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
309          }
310          break;
311        }
312
313        case 17: // org/omg/mof/Reflective/RefObject/ref_add_value_before
314
{
315          try {
316            org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
317            org.omg.CORBA.Any JavaDoc new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in);
318            org.omg.CORBA.Any JavaDoc before_element = org.omg.mof.Reflective._ValueTypeHelper.read (in);
319            this.ref_add_value_before (feature, new_element, before_element);
320            out = $rh.createReply();
321          } catch (org.omg.mof.Reflective.NotFound $ex) {
322            out = $rh.createExceptionReply ();
323            org.omg.mof.Reflective.NotFoundHelper.write (out, $ex);
324          } catch (org.omg.mof.Reflective.MofError $ex) {
325            out = $rh.createExceptionReply ();
326            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
327          }
328          break;
329        }
330
331        case 18: // org/omg/mof/Reflective/RefObject/ref_add_value_at
332
{
333          try {
334            org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
335            org.omg.CORBA.Any JavaDoc new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in);
336            int position = in.read_ulong ();
337            this.ref_add_value_at (feature, new_element, position);
338            out = $rh.createReply();
339          } catch (org.omg.mof.Reflective.BadPosition $ex) {
340            out = $rh.createExceptionReply ();
341            org.omg.mof.Reflective.BadPositionHelper.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_modify_value
350
{
351          try {
352            org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
353            org.omg.CORBA.Any JavaDoc old_element = org.omg.mof.Reflective._ValueTypeHelper.read (in);
354            org.omg.CORBA.Any JavaDoc new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in);
355            this.ref_modify_value (feature, old_element, new_element);
356            out = $rh.createReply();
357          } catch (org.omg.mof.Reflective.NotFound $ex) {
358            out = $rh.createExceptionReply ();
359            org.omg.mof.Reflective.NotFoundHelper.write (out, $ex);
360          } catch (org.omg.mof.Reflective.MofError $ex) {
361            out = $rh.createExceptionReply ();
362            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
363          }
364          break;
365        }
366
367        case 20: // org/omg/mof/Reflective/RefObject/ref_modify_value_at
368
{
369          try {
370            org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
371            org.omg.CORBA.Any JavaDoc new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in);
372            int position = in.read_ulong ();
373            this.ref_modify_value_at (feature, new_element, position);
374            out = $rh.createReply();
375          } catch (org.omg.mof.Reflective.BadPosition $ex) {
376            out = $rh.createExceptionReply ();
377            org.omg.mof.Reflective.BadPositionHelper.write (out, $ex);
378          } catch (org.omg.mof.Reflective.MofError $ex) {
379            out = $rh.createExceptionReply ();
380            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
381          }
382          break;
383        }
384
385        case 21: // org/omg/mof/Reflective/RefObject/ref_remove_value
386
{
387          try {
388            org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
389            org.omg.CORBA.Any JavaDoc existing_element = org.omg.mof.Reflective._ValueTypeHelper.read (in);
390            this.ref_remove_value (feature, existing_element);
391            out = $rh.createReply();
392          } catch (org.omg.mof.Reflective.NotFound $ex) {
393            out = $rh.createExceptionReply ();
394            org.omg.mof.Reflective.NotFoundHelper.write (out, $ex);
395          } catch (org.omg.mof.Reflective.MofError $ex) {
396            out = $rh.createExceptionReply ();
397            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
398          }
399          break;
400        }
401
402        case 22: // org/omg/mof/Reflective/RefObject/ref_remove_value_at
403
{
404          try {
405            org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
406            int position = in.read_ulong ();
407            this.ref_remove_value_at (feature, position);
408            out = $rh.createReply();
409          } catch (org.omg.mof.Reflective.BadPosition $ex) {
410            out = $rh.createExceptionReply ();
411            org.omg.mof.Reflective.BadPositionHelper.write (out, $ex);
412          } catch (org.omg.mof.Reflective.MofError $ex) {
413            out = $rh.createExceptionReply ();
414            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
415          }
416          break;
417        }
418
419        case 23: // org/omg/mof/Reflective/RefObject/ref_immediate_composite
420
{
421          org.omg.mof.Reflective.RefObject $result = null;
422          $result = this.ref_immediate_composite ();
423          out = $rh.createReply();
424          org.omg.mof.Reflective.RefObjectHelper.write (out, $result);
425          break;
426        }
427
428        case 24: // org/omg/mof/Reflective/RefObject/ref_outermost_composite
429
{
430          org.omg.mof.Reflective.RefObject $result = null;
431          $result = this.ref_outermost_composite ();
432          out = $rh.createReply();
433          org.omg.mof.Reflective.RefObjectHelper.write (out, $result);
434          break;
435        }
436
437        case 25: // org/omg/mof/Reflective/RefObject/ref_invoke_operation
438
{
439          try {
440            org.omg.mof.Reflective.RefObject requested_operation = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
441            org.omg.mof.Reflective.ValueTypeListHolder args = new org.omg.mof.Reflective.ValueTypeListHolder ();
442            args.value = org.omg.mof.Reflective.ValueTypeListHelper.read (in);
443            org.omg.CORBA.Any JavaDoc $result = null;
444            $result = this.ref_invoke_operation (requested_operation, args);
445            out = $rh.createReply();
446            out.write_any ($result);
447            org.omg.mof.Reflective.ValueTypeListHelper.write (out, args.value);
448          } catch (org.omg.mof.Reflective.OtherException $ex) {
449            out = $rh.createExceptionReply ();
450            org.omg.mof.Reflective.OtherExceptionHelper.write (out, $ex);
451          } catch (org.omg.mof.Reflective.MofError $ex) {
452            out = $rh.createExceptionReply ();
453            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
454          }
455          break;
456        }
457
458        case 26: // org/omg/mof/Reflective/RefBaseObject/ref_mof_id
459
{
460          String JavaDoc $result = null;
461          $result = this.ref_mof_id ();
462          out = $rh.createReply();
463          out.write_string ($result);
464          break;
465        }
466
467        case 27: // org/omg/mof/Reflective/RefBaseObject/ref_meta_object
468
{
469          org.omg.mof.Reflective.RefObject $result = null;
470          $result = this.ref_meta_object ();
471          out = $rh.createReply();
472          org.omg.mof.Reflective.RefObjectHelper.write (out, $result);
473          break;
474        }
475
476        case 28: // org/omg/mof/Reflective/RefBaseObject/ref_itself
477
{
478          org.omg.mof.Reflective.RefBaseObject other_object = org.omg.mof.Reflective.RefBaseObjectHelper.read (in);
479          boolean $result = false;
480          $result = this.ref_itself (other_object);
481          out = $rh.createReply();
482          out.write_boolean ($result);
483          break;
484        }
485
486        case 29: // org/omg/mof/Reflective/RefBaseObject/ref_immediate_package
487
{
488          org.omg.mof.Reflective._RefPackage $result = null;
489          $result = this.ref_immediate_package ();
490          out = $rh.createReply();
491          org.omg.mof.Reflective._RefPackageHelper.write (out, $result);
492          break;
493        }
494
495        case 30: // org/omg/mof/Reflective/RefBaseObject/ref_outermost_package
496
{
497          org.omg.mof.Reflective._RefPackage $result = null;
498          $result = this.ref_outermost_package ();
499          out = $rh.createReply();
500          org.omg.mof.Reflective._RefPackageHelper.write (out, $result);
501          break;
502        }
503
504        case 31: // org/omg/mof/Reflective/RefBaseObject/ref_delete
505
{
506          try {
507            this.ref_delete ();
508            out = $rh.createReply();
509          } catch (org.omg.mof.Reflective.MofError $ex) {
510            out = $rh.createExceptionReply ();
511            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
512          }
513          break;
514        }
515
516        case 32: // org/omg/mof/Model/FeatureClass/_get_all_of_type_feature
517
{
518          org.omg.mof.Model.Feature $result[] = null;
519          $result = this.all_of_type_feature ();
520          out = $rh.createReply();
521          org.omg.mof.Model.FeatureSetHelper.write (out, $result);
522          break;
523        }
524
525
526   //
527
case 33: // org/omg/mof/Model/ModelElement/name
528
{
529          try {
530            String JavaDoc $result = null;
531            $result = this.name ();
532            out = $rh.createReply();
533            out.write_string ($result);
534          } catch (org.omg.mof.Reflective.MofError $ex) {
535            out = $rh.createExceptionReply ();
536            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
537          }
538          break;
539        }
540
541        case 34: // org/omg/mof/Model/ModelElement/set_name
542
{
543          try {
544            String JavaDoc new_value = in.read_string ();
545            this.set_name (new_value);
546            out = $rh.createReply();
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/annotation
557
{
558          try {
559            String JavaDoc $result = null;
560            $result = this.annotation ();
561            out = $rh.createReply();
562            out.write_string ($result);
563          } catch (org.omg.mof.Reflective.MofError $ex) {
564            out = $rh.createExceptionReply ();
565            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
566          }
567          break;
568        }
569
570        case 36: // org/omg/mof/Model/ModelElement/set_annotation
571
{
572          try {
573            String JavaDoc new_value = in.read_string ();
574            this.set_annotation (new_value);
575            out = $rh.createReply();
576          } catch (org.omg.mof.Reflective.MofError $ex) {
577            out = $rh.createExceptionReply ();
578            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
579          }
580          break;
581        }
582
583
584   //
585
case 37: // org/omg/mof/Model/ModelElement/qualified_name
586
{
587          try {
588            String JavaDoc $result[] = null;
589            $result = this.qualified_name ();
590            out = $rh.createReply();
591            org.omg.mof.Model.StringListHelper.write (out, $result);
592          } catch (org.omg.mof.Reflective.MofError $ex) {
593            out = $rh.createExceptionReply ();
594            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
595          }
596          break;
597        }
598
599
600   //
601
case 38: // org/omg/mof/Model/ModelElement/container
602
{
603          try {
604            org.omg.mof.Model.Namespace $result = null;
605            $result = this.container ();
606            out = $rh.createReply();
607            org.omg.mof.Model.NamespaceHelper.write (out, $result);
608          } catch (org.omg.mof.Reflective.NotSet $ex) {
609            out = $rh.createExceptionReply ();
610            org.omg.mof.Reflective.NotSetHelper.write (out, $ex);
611          } catch (org.omg.mof.Reflective.MofError $ex) {
612            out = $rh.createExceptionReply ();
613            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
614          }
615          break;
616        }
617
618        case 39: // org/omg/mof/Model/ModelElement/set_container
619
{
620          try {
621            org.omg.mof.Model.Namespace new_value = org.omg.mof.Model.NamespaceHelper.read (in);
622            this.set_container (new_value);
623            out = $rh.createReply();
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/unset_container
632
{
633          try {
634            this.unset_container ();
635            out = $rh.createReply();
636          } catch (org.omg.mof.Reflective.MofError $ex) {
637            out = $rh.createExceptionReply ();
638            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
639          }
640          break;
641        }
642
643
644   //
645
case 41: // org/omg/mof/Model/ModelElement/required_elements
646
{
647          try {
648            org.omg.mof.Model.ModelElement $result[] = null;
649            $result = this.required_elements ();
650            out = $rh.createReply();
651            org.omg.mof.Model.ModelElementBagHelper.write (out, $result);
652          } catch (org.omg.mof.Reflective.MofError $ex) {
653            out = $rh.createExceptionReply ();
654            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
655          }
656          break;
657        }
658
659        case 42: // org/omg/mof/Model/ModelElement/set_required_elements
660
{
661          try {
662            org.omg.mof.Model.ModelElement new_value[] = org.omg.mof.Model.ModelElementBagHelper.read (in);
663            this.set_required_elements (new_value);
664            out = $rh.createReply();
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/add_required_elements
673
{
674          try {
675            org.omg.mof.Model.ModelElement new_element = org.omg.mof.Model.ModelElementHelper.read (in);
676            this.add_required_elements (new_element);
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/modify_required_elements
686
{
687          try {
688            org.omg.mof.Model.ModelElement old_element = org.omg.mof.Model.ModelElementHelper.read (in);
689            org.omg.mof.Model.ModelElement new_element = org.omg.mof.Model.ModelElementHelper.read (in);
690            this.modify_required_elements (old_element, new_element);
691            out = $rh.createReply();
692          } catch (org.omg.mof.Reflective.NotFound $ex) {
693            out = $rh.createExceptionReply ();
694            org.omg.mof.Reflective.NotFoundHelper.write (out, $ex);
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/remove_required_elements
703
{
704          try {
705            org.omg.mof.Model.ModelElement old_element = org.omg.mof.Model.ModelElementHelper.read (in);
706            this.remove_required_elements (old_element);
707            out = $rh.createReply();
708          } catch (org.omg.mof.Reflective.NotFound $ex) {
709            out = $rh.createExceptionReply ();
710            org.omg.mof.Reflective.NotFoundHelper.write (out, $ex);
711          } catch (org.omg.mof.Reflective.MofError $ex) {
712            out = $rh.createExceptionReply ();
713            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
714          }
715          break;
716        }
717
718
719   //
720
case 46: // org/omg/mof/Model/ModelElement/constraints
721
{
722          try {
723            org.omg.mof.Model.Constraint $result[] = null;
724            $result = this.constraints ();
725            out = $rh.createReply();
726            org.omg.mof.Model.ConstraintBagHelper.write (out, $result);
727          } catch (org.omg.mof.Reflective.MofError $ex) {
728            out = $rh.createExceptionReply ();
729            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
730          }
731          break;
732        }
733
734        case 47: // org/omg/mof/Model/ModelElement/set_constraints
735
{
736          try {
737            org.omg.mof.Model.Constraint new_value[] = org.omg.mof.Model.ConstraintBagHelper.read (in);
738            this.set_constraints (new_value);
739            out = $rh.createReply();
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/ModelElement/add_constraints
748
{
749          try {
750            org.omg.mof.Model.Constraint new_element = org.omg.mof.Model.ConstraintHelper.read (in);
751            this.add_constraints (new_element);
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        case 49: // org/omg/mof/Model/ModelElement/modify_constraints
761
{
762          try {
763            org.omg.mof.Model.Constraint old_element = org.omg.mof.Model.ConstraintHelper.read (in);
764            org.omg.mof.Model.Constraint new_element = org.omg.mof.Model.ConstraintHelper.read (in);
765            this.modify_constraints (old_element, new_element);
766            out = $rh.createReply();
767          } catch (org.omg.mof.Reflective.NotFound $ex) {
768            out = $rh.createExceptionReply ();
769            org.omg.mof.Reflective.NotFoundHelper.write (out, $ex);
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        case 50: // org/omg/mof/Model/ModelElement/remove_constraints
778
{
779          try {
780            org.omg.mof.Model.Constraint old_element = org.omg.mof.Model.ConstraintHelper.read (in);
781            this.remove_constraints (old_element);
782            out = $rh.createReply();
783          } catch (org.omg.mof.Reflective.NotFound $ex) {
784            out = $rh.createExceptionReply ();
785            org.omg.mof.Reflective.NotFoundHelper.write (out, $ex);
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
794   //
795
case 51: // org/omg/mof/Model/TypedElement/type
796
{
797          try {
798            org.omg.mof.Model.Classifier $result = null;
799            $result = this.type ();
800            out = $rh.createReply();
801            org.omg.mof.Model.ClassifierHelper.write (out, $result);
802          } catch (org.omg.mof.Reflective.MofError $ex) {
803            out = $rh.createExceptionReply ();
804            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
805          }
806          break;
807        }
808
809        case 52: // org/omg/mof/Model/TypedElement/set_type
810
{
811          try {
812            org.omg.mof.Model.Classifier new_value = org.omg.mof.Model.ClassifierHelper.read (in);
813            this.set_type (new_value);
814            out = $rh.createReply();
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
823   //
824
case 53: // org/omg/mof/Model/Feature/visibility
825
{
826          try {
827            org.omg.mof.Model.VisibilityKind $result = null;
828            $result = this.visibility ();
829            out = $rh.createReply();
830            org.omg.mof.Model.VisibilityKindHelper.write (out, $result);
831          } catch (org.omg.mof.Reflective.MofError $ex) {
832            out = $rh.createExceptionReply ();
833            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
834          }
835          break;
836        }
837
838        case 54: // org/omg/mof/Model/Feature/set_visibility
839
{
840          try {
841            org.omg.mof.Model.VisibilityKind new_value = org.omg.mof.Model.VisibilityKindHelper.read (in);
842            this.set_visibility (new_value);
843            out = $rh.createReply();
844          } catch (org.omg.mof.Reflective.MofError $ex) {
845            out = $rh.createExceptionReply ();
846            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
847          }
848          break;
849        }
850
851
852   //
853
case 55: // org/omg/mof/Model/Feature/scope
854
{
855          try {
856            org.omg.mof.Model.ScopeKind $result = null;
857            $result = this.scope ();
858            out = $rh.createReply();
859            org.omg.mof.Model.ScopeKindHelper.write (out, $result);
860          } catch (org.omg.mof.Reflective.MofError $ex) {
861            out = $rh.createExceptionReply ();
862            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
863          }
864          break;
865        }
866
867        case 56: // org/omg/mof/Model/Feature/set_scope
868
{
869          try {
870            org.omg.mof.Model.ScopeKind new_value = org.omg.mof.Model.ScopeKindHelper.read (in);
871            this.set_scope (new_value);
872            out = $rh.createReply();
873          } catch (org.omg.mof.Reflective.MofError $ex) {
874            out = $rh.createExceptionReply ();
875            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
876          }
877          break;
878        }
879
880
881   //
882
case 57: // org/omg/mof/Model/StructuralFeature/multiplicity
883
{
884          try {
885            org.omg.mof.Model.MultiplicityType $result = null;
886            $result = this.multiplicity ();
887            out = $rh.createReply();
888            org.omg.mof.Model.MultiplicityTypeHelper.write (out, $result);
889          } catch (org.omg.mof.Reflective.MofError $ex) {
890            out = $rh.createExceptionReply ();
891            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
892          }
893          break;
894        }
895
896        case 58: // org/omg/mof/Model/StructuralFeature/set_multiplicity
897
{
898          try {
899            org.omg.mof.Model.MultiplicityType new_value = org.omg.mof.Model.MultiplicityTypeHelper.read (in);
900            this.set_multiplicity (new_value);
901            out = $rh.createReply();
902          } catch (org.omg.mof.Reflective.MofError $ex) {
903            out = $rh.createExceptionReply ();
904            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
905          }
906          break;
907        }
908
909
910   //
911
case 59: // org/omg/mof/Model/StructuralFeature/is_changeable
912
{
913          try {
914            boolean $result = false;
915            $result = this.is_changeable ();
916            out = $rh.createReply();
917            out.write_boolean ($result);
918          } catch (org.omg.mof.Reflective.MofError $ex) {
919            out = $rh.createExceptionReply ();
920            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
921          }
922          break;
923        }
924
925        case 60: // org/omg/mof/Model/StructuralFeature/set_is_changeable
926
{
927          try {
928            boolean new_value = in.read_boolean ();
929            this.set_is_changeable (new_value);
930            out = $rh.createReply();
931          } catch (org.omg.mof.Reflective.MofError $ex) {
932            out = $rh.createExceptionReply ();
933            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
934          }
935          break;
936        }
937
938        default:
939          throw new org.omg.CORBA.BAD_OPERATION JavaDoc (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
940     }
941
942     return out;
943   } // _invoke
944

945   // Type-specific CORBA::Object operations
946
private static String JavaDoc[] __ids = {
947     "IDL:org/omg/mof/Model/Reference:1.0",
948     "IDL:org/omg/mof/Model/ReferenceClass:1.0",
949     "IDL:org/omg/mof/Model/StructuralFeatureClass:1.0",
950     "IDL:org/omg/mof/Model/TypedElementClass:1.0",
951     "IDL:org/omg/mof/Model/ModelElementClass:1.0",
952     "IDL:org/omg/mof/Reflective/RefObject:1.0",
953     "IDL:org/omg/mof/Reflective/RefBaseObject:1.0",
954     "IDL:org/omg/mof/Model/FeatureClass:1.0",
955     "IDL:org/omg/mof/Model/ModelElement:1.0",
956     "IDL:org/omg/mof/Model/TypedElement:1.0",
957     "IDL:org/omg/mof/Model/Feature:1.0",
958     "IDL:org/omg/mof/Model/StructuralFeature:1.0"};
959
960   public String JavaDoc[] _all_interfaces (org.omg.PortableServer.POA JavaDoc poa, byte[] objectId)
961   {
962     return (String JavaDoc[])__ids.clone ();
963   }
964
965   public Reference _this()
966   {
967     return ReferenceHelper.narrow(
968     super._this_object());
969   }
970
971   public Reference _this(org.omg.CORBA.ORB JavaDoc orb)
972   {
973     return ReferenceHelper.narrow(
974     super._this_object(orb));
975   }
976
977
978 } // class ReferencePOA
979
Popular Tags