KickJava   Java API By Example, From Geeks To Geeks.

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


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

870   // Type-specific CORBA::Object operations
871
private static String JavaDoc[] __ids = {
872     "IDL:org/omg/mof/Model/Constraint:1.0",
873     "IDL:org/omg/mof/Model/ConstraintClass:1.0",
874     "IDL:org/omg/mof/Model/ModelElementClass:1.0",
875     "IDL:org/omg/mof/Reflective/RefObject:1.0",
876     "IDL:org/omg/mof/Reflective/RefBaseObject:1.0",
877     "IDL:org/omg/mof/Model/ModelElement:1.0"};
878
879   public String JavaDoc[] _all_interfaces (org.omg.PortableServer.POA JavaDoc poa, byte[] objectId)
880   {
881     return (String JavaDoc[])__ids.clone ();
882   }
883
884   public Constraint _this()
885   {
886     return ConstraintHelper.narrow(
887     super._this_object());
888   }
889
890   public Constraint _this(org.omg.CORBA.ORB JavaDoc orb)
891   {
892     return ConstraintHelper.narrow(
893     super._this_object(orb));
894   }
895
896
897 } // class ConstraintPOA
898
Popular Tags