KickJava   Java API By Example, From Geeks To Geeks.

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


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

698   // Type-specific CORBA::Object operations
699
private static String JavaDoc[] __ids = {
700     "IDL:org/omg/mof/Model/TypedElement:1.0",
701     "IDL:org/omg/mof/Model/TypedElementClass:1.0",
702     "IDL:org/omg/mof/Model/ModelElementClass:1.0",
703     "IDL:org/omg/mof/Reflective/RefObject:1.0",
704     "IDL:org/omg/mof/Reflective/RefBaseObject:1.0",
705     "IDL:org/omg/mof/Model/ModelElement:1.0"};
706
707   public String JavaDoc[] _all_interfaces (org.omg.PortableServer.POA JavaDoc poa, byte[] objectId)
708   {
709     return (String JavaDoc[])__ids.clone ();
710   }
711
712   public TypedElement _this()
713   {
714     return TypedElementHelper.narrow(
715     super._this_object());
716   }
717
718   public TypedElement _this(org.omg.CORBA.ORB JavaDoc orb)
719   {
720     return TypedElementHelper.narrow(
721     super._this_object(orb));
722   }
723
724
725 } // class TypedElementPOA
726
Popular Tags