KickJava   Java API By Example, From Geeks To Geeks.

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


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

765   // Type-specific CORBA::Object operations
766
private static String JavaDoc[] __ids = {
767     "IDL:org/omg/mof/Model/Namespace:1.0",
768     "IDL:org/omg/mof/Model/NamespaceClass:1.0",
769     "IDL:org/omg/mof/Model/ModelElementClass:1.0",
770     "IDL:org/omg/mof/Reflective/RefObject:1.0",
771     "IDL:org/omg/mof/Reflective/RefBaseObject:1.0",
772     "IDL:org/omg/mof/Model/ModelElement:1.0"};
773
774   public String JavaDoc[] _all_interfaces (org.omg.PortableServer.POA JavaDoc poa, byte[] objectId)
775   {
776     return (String JavaDoc[])__ids.clone ();
777   }
778
779   public Namespace _this()
780   {
781     return NamespaceHelper.narrow(
782     super._this_object());
783   }
784
785   public Namespace _this(org.omg.CORBA.ORB JavaDoc orb)
786   {
787     return NamespaceHelper.narrow(
788     super._this_object(orb));
789   }
790
791
792 } // class NamespacePOA
793
Popular Tags