KickJava   Java API By Example, From Geeks To Geeks.

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


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

391   // Type-specific CORBA::Object operations
392
private static String JavaDoc[] __ids = {
393     "IDL:org/omg/mof/Model/GeneralizableElementClass:1.0",
394     "IDL:org/omg/mof/Model/NamespaceClass:1.0",
395     "IDL:org/omg/mof/Model/ModelElementClass:1.0",
396     "IDL:org/omg/mof/Reflective/RefObject:1.0",
397     "IDL:org/omg/mof/Reflective/RefBaseObject:1.0"};
398
399   public String JavaDoc[] _all_interfaces (org.omg.PortableServer.POA JavaDoc poa, byte[] objectId)
400   {
401     return (String JavaDoc[])__ids.clone ();
402   }
403
404   public GeneralizableElementClass _this()
405   {
406     return GeneralizableElementClassHelper.narrow(
407     super._this_object());
408   }
409
410   public GeneralizableElementClass _this(org.omg.CORBA.ORB JavaDoc orb)
411   {
412     return GeneralizableElementClassHelper.narrow(
413     super._this_object(orb));
414   }
415
416
417 } // class GeneralizableElementClassPOA
418
Popular Tags