KickJava   Java API By Example, From Geeks To Geeks.

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


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

432   // Type-specific CORBA::Object operations
433
private static String JavaDoc[] __ids = {
434     "IDL:org/omg/mof/Model/PackageClass:1.0",
435     "IDL:org/omg/mof/Model/GeneralizableElementClass:1.0",
436     "IDL:org/omg/mof/Model/NamespaceClass:1.0",
437     "IDL:org/omg/mof/Model/ModelElementClass:1.0",
438     "IDL:org/omg/mof/Reflective/RefObject:1.0",
439     "IDL:org/omg/mof/Reflective/RefBaseObject:1.0"};
440
441   public String JavaDoc[] _all_interfaces (org.omg.PortableServer.POA JavaDoc poa, byte[] objectId)
442   {
443     return (String JavaDoc[])__ids.clone ();
444   }
445
446   public PackageClass _this()
447   {
448     return PackageClassHelper.narrow(
449     super._this_object());
450   }
451
452   public PackageClass _this(org.omg.CORBA.ORB JavaDoc orb)
453   {
454     return PackageClassHelper.narrow(
455     super._this_object(orb));
456   }
457
458
459 } // class PackageClassPOA
460
Popular Tags