KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.omg.mof.Model;
2
3
4 /**
5 * org/omg/mof/Model/MofExceptionClassPOA.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 //
13
public abstract class MofExceptionClassPOA extends org.omg.PortableServer.Servant JavaDoc
14  implements org.omg.mof.Model.MofExceptionClassOperations, 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 ("_get_all_of_type_mof_exception", new java.lang.Integer JavaDoc (0));
23     _methods.put ("_get_all_of_class_mof_exception", new java.lang.Integer JavaDoc (1));
24     _methods.put ("create_mof_exception", new java.lang.Integer JavaDoc (2));
25     _methods.put ("_get_all_of_type_behavioral_feature", new java.lang.Integer JavaDoc (3));
26     _methods.put ("_get_all_of_type_namespace", new java.lang.Integer JavaDoc (4));
27     _methods.put ("_get_all_of_type_model_element", new java.lang.Integer JavaDoc (5));
28     _methods.put ("ref_is_instance_of", new java.lang.Integer JavaDoc (6));
29     _methods.put ("ref_create_instance", new java.lang.Integer JavaDoc (7));
30     _methods.put ("ref_all_objects", new java.lang.Integer JavaDoc (8));
31     _methods.put ("ref_set_value", new java.lang.Integer JavaDoc (9));
32     _methods.put ("ref_value", new java.lang.Integer JavaDoc (10));
33     _methods.put ("ref_unset_value", new java.lang.Integer JavaDoc (11));
34     _methods.put ("ref_add_value", new java.lang.Integer JavaDoc (12));
35     _methods.put ("ref_add_value_before", new java.lang.Integer JavaDoc (13));
36     _methods.put ("ref_add_value_at", new java.lang.Integer JavaDoc (14));
37     _methods.put ("ref_modify_value", new java.lang.Integer JavaDoc (15));
38     _methods.put ("ref_modify_value_at", new java.lang.Integer JavaDoc (16));
39     _methods.put ("ref_remove_value", new java.lang.Integer JavaDoc (17));
40     _methods.put ("ref_remove_value_at", new java.lang.Integer JavaDoc (18));
41     _methods.put ("ref_immediate_composite", new java.lang.Integer JavaDoc (19));
42     _methods.put ("ref_outermost_composite", new java.lang.Integer JavaDoc (20));
43     _methods.put ("ref_invoke_operation", new java.lang.Integer JavaDoc (21));
44     _methods.put ("ref_mof_id", new java.lang.Integer JavaDoc (22));
45     _methods.put ("ref_meta_object", new java.lang.Integer JavaDoc (23));
46     _methods.put ("ref_itself", new java.lang.Integer JavaDoc (24));
47     _methods.put ("ref_immediate_package", new java.lang.Integer JavaDoc (25));
48     _methods.put ("ref_outermost_package", new java.lang.Integer JavaDoc (26));
49     _methods.put ("ref_delete", new java.lang.Integer JavaDoc (27));
50     _methods.put ("_get_all_of_type_feature", new java.lang.Integer JavaDoc (28));
51   }
52
53   public org.omg.CORBA.portable.OutputStream JavaDoc _invoke (String JavaDoc $method,
54                                 org.omg.CORBA.portable.InputStream JavaDoc in,
55                                 org.omg.CORBA.portable.ResponseHandler JavaDoc $rh)
56   {
57     org.omg.CORBA.portable.OutputStream JavaDoc out = null;
58     java.lang.Integer JavaDoc __method = (java.lang.Integer JavaDoc)_methods.get ($method);
59     if (__method == null)
60       throw new org.omg.CORBA.BAD_OPERATION JavaDoc (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
61
62     switch (__method.intValue ())
63     {
64        case 0: // org/omg/mof/Model/MofExceptionClass/_get_all_of_type_mof_exception
65
{
66          org.omg.mof.Model.MofException $result[] = null;
67          $result = this.all_of_type_mof_exception ();
68          out = $rh.createReply();
69          org.omg.mof.Model.MofExceptionSetHelper.write (out, $result);
70          break;
71        }
72
73        case 1: // org/omg/mof/Model/MofExceptionClass/_get_all_of_class_mof_exception
74
{
75          org.omg.mof.Model.MofException $result[] = null;
76          $result = this.all_of_class_mof_exception ();
77          out = $rh.createReply();
78          org.omg.mof.Model.MofExceptionSetHelper.write (out, $result);
79          break;
80        }
81
82        case 2: // org/omg/mof/Model/MofExceptionClass/create_mof_exception
83
{
84          try {
85            String JavaDoc name = in.read_string ();
86            String JavaDoc annotation = in.read_string ();
87            org.omg.mof.Model.VisibilityKind visibility = org.omg.mof.Model.VisibilityKindHelper.read (in);
88            org.omg.mof.Model.ScopeKind scope = org.omg.mof.Model.ScopeKindHelper.read (in);
89            org.omg.mof.Model.MofException $result = null;
90            $result = this.create_mof_exception (name, annotation, visibility, scope);
91            out = $rh.createReply();
92            org.omg.mof.Model.MofExceptionHelper.write (out, $result);
93          } catch (org.omg.mof.Reflective.MofError $ex) {
94            out = $rh.createExceptionReply ();
95            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
96          }
97          break;
98        }
99
100        case 3: // org/omg/mof/Model/BehavioralFeatureClass/_get_all_of_type_behavioral_feature
101
{
102          org.omg.mof.Model.BehavioralFeature $result[] = null;
103          $result = this.all_of_type_behavioral_feature ();
104          out = $rh.createReply();
105          org.omg.mof.Model.BehavioralFeatureSetHelper.write (out, $result);
106          break;
107        }
108
109        case 4: // org/omg/mof/Model/NamespaceClass/_get_all_of_type_namespace
110
{
111          org.omg.mof.Model.Namespace $result[] = null;
112          $result = this.all_of_type_namespace ();
113          out = $rh.createReply();
114          org.omg.mof.Model.NamespaceSetHelper.write (out, $result);
115          break;
116        }
117
118        case 5: // org/omg/mof/Model/ModelElementClass/_get_all_of_type_model_element
119
{
120          org.omg.mof.Model.ModelElement $result[] = null;
121          $result = this.all_of_type_model_element ();
122          out = $rh.createReply();
123          org.omg.mof.Model.ModelElementSetHelper.write (out, $result);
124          break;
125        }
126
127        case 6: // org/omg/mof/Reflective/RefObject/ref_is_instance_of
128
{
129          org.omg.mof.Reflective.RefObject some_class = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
130          boolean consider_subtypes = in.read_boolean ();
131          boolean $result = false;
132          $result = this.ref_is_instance_of (some_class, consider_subtypes);
133          out = $rh.createReply();
134          out.write_boolean ($result);
135          break;
136        }
137
138        case 7: // org/omg/mof/Reflective/RefObject/ref_create_instance
139
{
140          try {
141            org.omg.CORBA.Any JavaDoc args[] = org.omg.mof.Reflective.ValueTypeListHelper.read (in);
142            org.omg.mof.Reflective.RefObject $result = null;
143            $result = this.ref_create_instance (args);
144            out = $rh.createReply();
145            org.omg.mof.Reflective.RefObjectHelper.write (out, $result);
146          } catch (org.omg.mof.Reflective.MofError $ex) {
147            out = $rh.createExceptionReply ();
148            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
149          }
150          break;
151        }
152
153        case 8: // org/omg/mof/Reflective/RefObject/ref_all_objects
154
{
155          boolean include_subtypes = in.read_boolean ();
156          org.omg.mof.Reflective.RefObject $result[] = null;
157          $result = this.ref_all_objects (include_subtypes);
158          out = $rh.createReply();
159          org.omg.mof.Reflective.RefObjectSetHelper.write (out, $result);
160          break;
161        }
162
163        case 9: // org/omg/mof/Reflective/RefObject/ref_set_value
164
{
165          try {
166            org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
167            org.omg.CORBA.Any JavaDoc new_value = org.omg.mof.Reflective._ValueTypeHelper.read (in);
168            this.ref_set_value (feature, 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        case 10: // org/omg/mof/Reflective/RefObject/ref_value
178
{
179          try {
180            org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
181            org.omg.CORBA.Any JavaDoc $result = null;
182            $result = this.ref_value (feature);
183            out = $rh.createReply();
184            out.write_any ($result);
185          } catch (org.omg.mof.Reflective.NotSet $ex) {
186            out = $rh.createExceptionReply ();
187            org.omg.mof.Reflective.NotSetHelper.write (out, $ex);
188          } catch (org.omg.mof.Reflective.MofError $ex) {
189            out = $rh.createExceptionReply ();
190            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
191          }
192          break;
193        }
194
195        case 11: // org/omg/mof/Reflective/RefObject/ref_unset_value
196
{
197          try {
198            this.ref_unset_value ();
199            out = $rh.createReply();
200          } catch (org.omg.mof.Reflective.MofError $ex) {
201            out = $rh.createExceptionReply ();
202            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
203          }
204          break;
205        }
206
207        case 12: // org/omg/mof/Reflective/RefObject/ref_add_value
208
{
209          try {
210            org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
211            org.omg.CORBA.Any JavaDoc new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in);
212            this.ref_add_value (feature, new_element);
213            out = $rh.createReply();
214          } catch (org.omg.mof.Reflective.MofError $ex) {
215            out = $rh.createExceptionReply ();
216            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
217          }
218          break;
219        }
220
221        case 13: // org/omg/mof/Reflective/RefObject/ref_add_value_before
222
{
223          try {
224            org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
225            org.omg.CORBA.Any JavaDoc new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in);
226            org.omg.CORBA.Any JavaDoc before_element = org.omg.mof.Reflective._ValueTypeHelper.read (in);
227            this.ref_add_value_before (feature, new_element, before_element);
228            out = $rh.createReply();
229          } catch (org.omg.mof.Reflective.NotFound $ex) {
230            out = $rh.createExceptionReply ();
231            org.omg.mof.Reflective.NotFoundHelper.write (out, $ex);
232          } catch (org.omg.mof.Reflective.MofError $ex) {
233            out = $rh.createExceptionReply ();
234            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
235          }
236          break;
237        }
238
239        case 14: // org/omg/mof/Reflective/RefObject/ref_add_value_at
240
{
241          try {
242            org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
243            org.omg.CORBA.Any JavaDoc new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in);
244            int position = in.read_ulong ();
245            this.ref_add_value_at (feature, new_element, position);
246            out = $rh.createReply();
247          } catch (org.omg.mof.Reflective.BadPosition $ex) {
248            out = $rh.createExceptionReply ();
249            org.omg.mof.Reflective.BadPositionHelper.write (out, $ex);
250          } catch (org.omg.mof.Reflective.MofError $ex) {
251            out = $rh.createExceptionReply ();
252            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
253          }
254          break;
255        }
256
257        case 15: // org/omg/mof/Reflective/RefObject/ref_modify_value
258
{
259          try {
260            org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
261            org.omg.CORBA.Any JavaDoc old_element = org.omg.mof.Reflective._ValueTypeHelper.read (in);
262            org.omg.CORBA.Any JavaDoc new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in);
263            this.ref_modify_value (feature, old_element, new_element);
264            out = $rh.createReply();
265          } catch (org.omg.mof.Reflective.NotFound $ex) {
266            out = $rh.createExceptionReply ();
267            org.omg.mof.Reflective.NotFoundHelper.write (out, $ex);
268          } catch (org.omg.mof.Reflective.MofError $ex) {
269            out = $rh.createExceptionReply ();
270            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
271          }
272          break;
273        }
274
275        case 16: // org/omg/mof/Reflective/RefObject/ref_modify_value_at
276
{
277          try {
278            org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
279            org.omg.CORBA.Any JavaDoc new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in);
280            int position = in.read_ulong ();
281            this.ref_modify_value_at (feature, new_element, position);
282            out = $rh.createReply();
283          } catch (org.omg.mof.Reflective.BadPosition $ex) {
284            out = $rh.createExceptionReply ();
285            org.omg.mof.Reflective.BadPositionHelper.write (out, $ex);
286          } catch (org.omg.mof.Reflective.MofError $ex) {
287            out = $rh.createExceptionReply ();
288            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
289          }
290          break;
291        }
292
293        case 17: // org/omg/mof/Reflective/RefObject/ref_remove_value
294
{
295          try {
296            org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
297            org.omg.CORBA.Any JavaDoc existing_element = org.omg.mof.Reflective._ValueTypeHelper.read (in);
298            this.ref_remove_value (feature, existing_element);
299            out = $rh.createReply();
300          } catch (org.omg.mof.Reflective.NotFound $ex) {
301            out = $rh.createExceptionReply ();
302            org.omg.mof.Reflective.NotFoundHelper.write (out, $ex);
303          } catch (org.omg.mof.Reflective.MofError $ex) {
304            out = $rh.createExceptionReply ();
305            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
306          }
307          break;
308        }
309
310        case 18: // org/omg/mof/Reflective/RefObject/ref_remove_value_at
311
{
312          try {
313            org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
314            int position = in.read_ulong ();
315            this.ref_remove_value_at (feature, position);
316            out = $rh.createReply();
317          } catch (org.omg.mof.Reflective.BadPosition $ex) {
318            out = $rh.createExceptionReply ();
319            org.omg.mof.Reflective.BadPositionHelper.write (out, $ex);
320          } catch (org.omg.mof.Reflective.MofError $ex) {
321            out = $rh.createExceptionReply ();
322            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
323          }
324          break;
325        }
326
327        case 19: // org/omg/mof/Reflective/RefObject/ref_immediate_composite
328
{
329          org.omg.mof.Reflective.RefObject $result = null;
330          $result = this.ref_immediate_composite ();
331          out = $rh.createReply();
332          org.omg.mof.Reflective.RefObjectHelper.write (out, $result);
333          break;
334        }
335
336        case 20: // org/omg/mof/Reflective/RefObject/ref_outermost_composite
337
{
338          org.omg.mof.Reflective.RefObject $result = null;
339          $result = this.ref_outermost_composite ();
340          out = $rh.createReply();
341          org.omg.mof.Reflective.RefObjectHelper.write (out, $result);
342          break;
343        }
344
345        case 21: // org/omg/mof/Reflective/RefObject/ref_invoke_operation
346
{
347          try {
348            org.omg.mof.Reflective.RefObject requested_operation = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
349            org.omg.mof.Reflective.ValueTypeListHolder args = new org.omg.mof.Reflective.ValueTypeListHolder ();
350            args.value = org.omg.mof.Reflective.ValueTypeListHelper.read (in);
351            org.omg.CORBA.Any JavaDoc $result = null;
352            $result = this.ref_invoke_operation (requested_operation, args);
353            out = $rh.createReply();
354            out.write_any ($result);
355            org.omg.mof.Reflective.ValueTypeListHelper.write (out, args.value);
356          } catch (org.omg.mof.Reflective.OtherException $ex) {
357            out = $rh.createExceptionReply ();
358            org.omg.mof.Reflective.OtherExceptionHelper.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 22: // org/omg/mof/Reflective/RefBaseObject/ref_mof_id
367
{
368          String JavaDoc $result = null;
369          $result = this.ref_mof_id ();
370          out = $rh.createReply();
371          out.write_string ($result);
372          break;
373        }
374
375        case 23: // org/omg/mof/Reflective/RefBaseObject/ref_meta_object
376
{
377          org.omg.mof.Reflective.RefObject $result = null;
378          $result = this.ref_meta_object ();
379          out = $rh.createReply();
380          org.omg.mof.Reflective.RefObjectHelper.write (out, $result);
381          break;
382        }
383
384        case 24: // org/omg/mof/Reflective/RefBaseObject/ref_itself
385
{
386          org.omg.mof.Reflective.RefBaseObject other_object = org.omg.mof.Reflective.RefBaseObjectHelper.read (in);
387          boolean $result = false;
388          $result = this.ref_itself (other_object);
389          out = $rh.createReply();
390          out.write_boolean ($result);
391          break;
392        }
393
394        case 25: // org/omg/mof/Reflective/RefBaseObject/ref_immediate_package
395
{
396          org.omg.mof.Reflective._RefPackage $result = null;
397          $result = this.ref_immediate_package ();
398          out = $rh.createReply();
399          org.omg.mof.Reflective._RefPackageHelper.write (out, $result);
400          break;
401        }
402
403        case 26: // org/omg/mof/Reflective/RefBaseObject/ref_outermost_package
404
{
405          org.omg.mof.Reflective._RefPackage $result = null;
406          $result = this.ref_outermost_package ();
407          out = $rh.createReply();
408          org.omg.mof.Reflective._RefPackageHelper.write (out, $result);
409          break;
410        }
411
412        case 27: // org/omg/mof/Reflective/RefBaseObject/ref_delete
413
{
414          try {
415            this.ref_delete ();
416            out = $rh.createReply();
417          } catch (org.omg.mof.Reflective.MofError $ex) {
418            out = $rh.createExceptionReply ();
419            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
420          }
421          break;
422        }
423
424        case 28: // org/omg/mof/Model/FeatureClass/_get_all_of_type_feature
425
{
426          org.omg.mof.Model.Feature $result[] = null;
427          $result = this.all_of_type_feature ();
428          out = $rh.createReply();
429          org.omg.mof.Model.FeatureSetHelper.write (out, $result);
430          break;
431        }
432
433        default:
434          throw new org.omg.CORBA.BAD_OPERATION JavaDoc (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
435     }
436
437     return out;
438   } // _invoke
439

440   // Type-specific CORBA::Object operations
441
private static String JavaDoc[] __ids = {
442     "IDL:org/omg/mof/Model/MofExceptionClass:1.0",
443     "IDL:org/omg/mof/Model/BehavioralFeatureClass:1.0",
444     "IDL:org/omg/mof/Model/NamespaceClass:1.0",
445     "IDL:org/omg/mof/Model/ModelElementClass:1.0",
446     "IDL:org/omg/mof/Reflective/RefObject:1.0",
447     "IDL:org/omg/mof/Reflective/RefBaseObject:1.0",
448     "IDL:org/omg/mof/Model/FeatureClass:1.0"};
449
450   public String JavaDoc[] _all_interfaces (org.omg.PortableServer.POA JavaDoc poa, byte[] objectId)
451   {
452     return (String JavaDoc[])__ids.clone ();
453   }
454
455   public MofExceptionClass _this()
456   {
457     return MofExceptionClassHelper.narrow(
458     super._this_object());
459   }
460
461   public MofExceptionClass _this(org.omg.CORBA.ORB JavaDoc orb)
462   {
463     return MofExceptionClassHelper.narrow(
464     super._this_object(orb));
465   }
466
467
468 } // class MofExceptionClassPOA
469
Popular Tags