KickJava   Java API By Example, From Geeks To Geeks.

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


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

410   // Type-specific CORBA::Object operations
411
private static String JavaDoc[] __ids = {
412     "IDL:org/omg/mof/Model/ImportClass:1.0",
413     "IDL:org/omg/mof/Model/ModelElementClass:1.0",
414     "IDL:org/omg/mof/Reflective/RefObject:1.0",
415     "IDL:org/omg/mof/Reflective/RefBaseObject:1.0"};
416
417   public String JavaDoc[] _all_interfaces (org.omg.PortableServer.POA JavaDoc poa, byte[] objectId)
418   {
419     return (String JavaDoc[])__ids.clone ();
420   }
421
422   public ImportClass _this()
423   {
424     return ImportClassHelper.narrow(
425     super._this_object());
426   }
427
428   public ImportClass _this(org.omg.CORBA.ORB JavaDoc orb)
429   {
430     return ImportClassHelper.narrow(
431     super._this_object(orb));
432   }
433
434
435 } // class ImportClassPOA
436
Popular Tags