KickJava   Java API By Example, From Geeks To Geeks.

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


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

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

789   // Type-specific CORBA::Object operations
790
private static String JavaDoc[] __ids = {
791     "IDL:org/omg/mof/Model/Import:1.0",
792     "IDL:org/omg/mof/Model/ImportClass:1.0",
793     "IDL:org/omg/mof/Model/ModelElementClass:1.0",
794     "IDL:org/omg/mof/Reflective/RefObject:1.0",
795     "IDL:org/omg/mof/Reflective/RefBaseObject:1.0",
796     "IDL:org/omg/mof/Model/ModelElement:1.0"};
797
798   public String JavaDoc[] _all_interfaces (org.omg.PortableServer.POA JavaDoc poa, byte[] objectId)
799   {
800     return (String JavaDoc[])__ids.clone ();
801   }
802
803   public Import _this()
804   {
805     return ImportHelper.narrow(
806     super._this_object());
807   }
808
809   public Import _this(org.omg.CORBA.ORB JavaDoc orb)
810   {
811     return ImportHelper.narrow(
812     super._this_object(orb));
813   }
814
815
816 } // class ImportPOA
817
Popular Tags