KickJava   Java API By Example, From Geeks To Geeks.

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


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

401   // Type-specific CORBA::Object operations
402
private static String JavaDoc[] __ids = {
403     "IDL:org/omg/mof/Model/ClassifierClass:1.0",
404     "IDL:org/omg/mof/Model/GeneralizableElementClass:1.0",
405     "IDL:org/omg/mof/Model/NamespaceClass:1.0",
406     "IDL:org/omg/mof/Model/ModelElementClass:1.0",
407     "IDL:org/omg/mof/Reflective/RefObject:1.0",
408     "IDL:org/omg/mof/Reflective/RefBaseObject:1.0"};
409
410   public String JavaDoc[] _all_interfaces (org.omg.PortableServer.POA JavaDoc poa, byte[] objectId)
411   {
412     return (String JavaDoc[])__ids.clone ();
413   }
414
415   public ClassifierClass _this()
416   {
417     return ClassifierClassHelper.narrow(
418     super._this_object());
419   }
420
421   public ClassifierClass _this(org.omg.CORBA.ORB JavaDoc orb)
422   {
423     return ClassifierClassHelper.narrow(
424     super._this_object(orb));
425   }
426
427
428 } // class ClassifierClassPOA
429
Popular Tags