KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.omg.mof.Model;
2
3
4 /**
5 * org/omg/mof/Model/StructuralFeatureClassPOA.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 StructuralFeatureClassPOA extends org.omg.PortableServer.Servant JavaDoc
14  implements org.omg.mof.Model.StructuralFeatureClassOperations, 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_structural_feature", new java.lang.Integer JavaDoc (0));
23     _methods.put ("_get_all_of_type_typed_element", 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     _methods.put ("_get_all_of_type_feature", 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/StructuralFeatureClass/_get_all_of_type_structural_feature
62
{
63          org.omg.mof.Model.StructuralFeature $result[] = null;
64          $result = this.all_of_type_structural_feature ();
65          out = $rh.createReply();
66          org.omg.mof.Model.StructuralFeatureSetHelper.write (out, $result);
67          break;
68        }
69
70        case 1: // org/omg/mof/Model/TypedElementClass/_get_all_of_type_typed_element
71
{
72          org.omg.mof.Model.TypedElement $result[] = null;
73          $result = this.all_of_type_typed_element ();
74          out = $rh.createReply();
75          org.omg.mof.Model.TypedElementSetHelper.write (out, $result);
76          break;
77        }
78
79        case 2: // org/omg/mof/Model/ModelElementClass/_get_all_of_type_model_element
80
{
81          org.omg.mof.Model.ModelElement $result[] = null;
82          $result = this.all_of_type_model_element ();
83          out = $rh.createReply();
84          org.omg.mof.Model.ModelElementSetHelper.write (out, $result);
85          break;
86        }
87
88        case 3: // org/omg/mof/Reflective/RefObject/ref_is_instance_of
89
{
90          org.omg.mof.Reflective.RefObject some_class = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
91          boolean consider_subtypes = in.read_boolean ();
92          boolean $result = false;
93          $result = this.ref_is_instance_of (some_class, consider_subtypes);
94          out = $rh.createReply();
95          out.write_boolean ($result);
96          break;
97        }
98
99        case 4: // org/omg/mof/Reflective/RefObject/ref_create_instance
100
{
101          try {
102            org.omg.CORBA.Any JavaDoc args[] = org.omg.mof.Reflective.ValueTypeListHelper.read (in);
103            org.omg.mof.Reflective.RefObject $result = null;
104            $result = this.ref_create_instance (args);
105            out = $rh.createReply();
106            org.omg.mof.Reflective.RefObjectHelper.write (out, $result);
107          } catch (org.omg.mof.Reflective.MofError $ex) {
108            out = $rh.createExceptionReply ();
109            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
110          }
111          break;
112        }
113
114        case 5: // org/omg/mof/Reflective/RefObject/ref_all_objects
115
{
116          boolean include_subtypes = in.read_boolean ();
117          org.omg.mof.Reflective.RefObject $result[] = null;
118          $result = this.ref_all_objects (include_subtypes);
119          out = $rh.createReply();
120          org.omg.mof.Reflective.RefObjectSetHelper.write (out, $result);
121          break;
122        }
123
124        case 6: // org/omg/mof/Reflective/RefObject/ref_set_value
125
{
126          try {
127            org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
128            org.omg.CORBA.Any JavaDoc new_value = org.omg.mof.Reflective._ValueTypeHelper.read (in);
129            this.ref_set_value (feature, new_value);
130            out = $rh.createReply();
131          } catch (org.omg.mof.Reflective.MofError $ex) {
132            out = $rh.createExceptionReply ();
133            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
134          }
135          break;
136        }
137
138        case 7: // org/omg/mof/Reflective/RefObject/ref_value
139
{
140          try {
141            org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
142            org.omg.CORBA.Any JavaDoc $result = null;
143            $result = this.ref_value (feature);
144            out = $rh.createReply();
145            out.write_any ($result);
146          } catch (org.omg.mof.Reflective.NotSet $ex) {
147            out = $rh.createExceptionReply ();
148            org.omg.mof.Reflective.NotSetHelper.write (out, $ex);
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_unset_value
157
{
158          try {
159            this.ref_unset_value ();
160            out = $rh.createReply();
161          } catch (org.omg.mof.Reflective.MofError $ex) {
162            out = $rh.createExceptionReply ();
163            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
164          }
165          break;
166        }
167
168        case 9: // org/omg/mof/Reflective/RefObject/ref_add_value
169
{
170          try {
171            org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
172            org.omg.CORBA.Any JavaDoc new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in);
173            this.ref_add_value (feature, new_element);
174            out = $rh.createReply();
175          } catch (org.omg.mof.Reflective.MofError $ex) {
176            out = $rh.createExceptionReply ();
177            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
178          }
179          break;
180        }
181
182        case 10: // org/omg/mof/Reflective/RefObject/ref_add_value_before
183
{
184          try {
185            org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
186            org.omg.CORBA.Any JavaDoc new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in);
187            org.omg.CORBA.Any JavaDoc before_element = org.omg.mof.Reflective._ValueTypeHelper.read (in);
188            this.ref_add_value_before (feature, new_element, before_element);
189            out = $rh.createReply();
190          } catch (org.omg.mof.Reflective.NotFound $ex) {
191            out = $rh.createExceptionReply ();
192            org.omg.mof.Reflective.NotFoundHelper.write (out, $ex);
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_at
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            int position = in.read_ulong ();
206            this.ref_add_value_at (feature, new_element, position);
207            out = $rh.createReply();
208          } catch (org.omg.mof.Reflective.BadPosition $ex) {
209            out = $rh.createExceptionReply ();
210            org.omg.mof.Reflective.BadPositionHelper.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_modify_value
219
{
220          try {
221            org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
222            org.omg.CORBA.Any JavaDoc old_element = org.omg.mof.Reflective._ValueTypeHelper.read (in);
223            org.omg.CORBA.Any JavaDoc new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in);
224            this.ref_modify_value (feature, old_element, new_element);
225            out = $rh.createReply();
226          } catch (org.omg.mof.Reflective.NotFound $ex) {
227            out = $rh.createExceptionReply ();
228            org.omg.mof.Reflective.NotFoundHelper.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_at
237
{
238          try {
239            org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
240            org.omg.CORBA.Any JavaDoc new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in);
241            int position = in.read_ulong ();
242            this.ref_modify_value_at (feature, new_element, position);
243            out = $rh.createReply();
244          } catch (org.omg.mof.Reflective.BadPosition $ex) {
245            out = $rh.createExceptionReply ();
246            org.omg.mof.Reflective.BadPositionHelper.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_remove_value
255
{
256          try {
257            org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
258            org.omg.CORBA.Any JavaDoc existing_element = org.omg.mof.Reflective._ValueTypeHelper.read (in);
259            this.ref_remove_value (feature, existing_element);
260            out = $rh.createReply();
261          } catch (org.omg.mof.Reflective.NotFound $ex) {
262            out = $rh.createExceptionReply ();
263            org.omg.mof.Reflective.NotFoundHelper.write (out, $ex);
264          } catch (org.omg.mof.Reflective.MofError $ex) {
265            out = $rh.createExceptionReply ();
266            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
267          }
268          break;
269        }
270
271        case 15: // org/omg/mof/Reflective/RefObject/ref_remove_value_at
272
{
273          try {
274            org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
275            int position = in.read_ulong ();
276            this.ref_remove_value_at (feature, position);
277            out = $rh.createReply();
278          } catch (org.omg.mof.Reflective.BadPosition $ex) {
279            out = $rh.createExceptionReply ();
280            org.omg.mof.Reflective.BadPositionHelper.write (out, $ex);
281          } catch (org.omg.mof.Reflective.MofError $ex) {
282            out = $rh.createExceptionReply ();
283            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
284          }
285          break;
286        }
287
288        case 16: // org/omg/mof/Reflective/RefObject/ref_immediate_composite
289
{
290          org.omg.mof.Reflective.RefObject $result = null;
291          $result = this.ref_immediate_composite ();
292          out = $rh.createReply();
293          org.omg.mof.Reflective.RefObjectHelper.write (out, $result);
294          break;
295        }
296
297        case 17: // org/omg/mof/Reflective/RefObject/ref_outermost_composite
298
{
299          org.omg.mof.Reflective.RefObject $result = null;
300          $result = this.ref_outermost_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_invoke_operation
307
{
308          try {
309            org.omg.mof.Reflective.RefObject requested_operation = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
310            org.omg.mof.Reflective.ValueTypeListHolder args = new org.omg.mof.Reflective.ValueTypeListHolder ();
311            args.value = org.omg.mof.Reflective.ValueTypeListHelper.read (in);
312            org.omg.CORBA.Any JavaDoc $result = null;
313            $result = this.ref_invoke_operation (requested_operation, args);
314            out = $rh.createReply();
315            out.write_any ($result);
316            org.omg.mof.Reflective.ValueTypeListHelper.write (out, args.value);
317          } catch (org.omg.mof.Reflective.OtherException $ex) {
318            out = $rh.createExceptionReply ();
319            org.omg.mof.Reflective.OtherExceptionHelper.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/RefBaseObject/ref_mof_id
328
{
329          String JavaDoc $result = null;
330          $result = this.ref_mof_id ();
331          out = $rh.createReply();
332          out.write_string ($result);
333          break;
334        }
335
336        case 20: // org/omg/mof/Reflective/RefBaseObject/ref_meta_object
337
{
338          org.omg.mof.Reflective.RefObject $result = null;
339          $result = this.ref_meta_object ();
340          out = $rh.createReply();
341          org.omg.mof.Reflective.RefObjectHelper.write (out, $result);
342          break;
343        }
344
345        case 21: // org/omg/mof/Reflective/RefBaseObject/ref_itself
346
{
347          org.omg.mof.Reflective.RefBaseObject other_object = org.omg.mof.Reflective.RefBaseObjectHelper.read (in);
348          boolean $result = false;
349          $result = this.ref_itself (other_object);
350          out = $rh.createReply();
351          out.write_boolean ($result);
352          break;
353        }
354
355        case 22: // org/omg/mof/Reflective/RefBaseObject/ref_immediate_package
356
{
357          org.omg.mof.Reflective._RefPackage $result = null;
358          $result = this.ref_immediate_package ();
359          out = $rh.createReply();
360          org.omg.mof.Reflective._RefPackageHelper.write (out, $result);
361          break;
362        }
363
364        case 23: // org/omg/mof/Reflective/RefBaseObject/ref_outermost_package
365
{
366          org.omg.mof.Reflective._RefPackage $result = null;
367          $result = this.ref_outermost_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_delete
374
{
375          try {
376            this.ref_delete ();
377            out = $rh.createReply();
378          } catch (org.omg.mof.Reflective.MofError $ex) {
379            out = $rh.createExceptionReply ();
380            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
381          }
382          break;
383        }
384
385        case 25: // org/omg/mof/Model/FeatureClass/_get_all_of_type_feature
386
{
387          org.omg.mof.Model.Feature $result[] = null;
388          $result = this.all_of_type_feature ();
389          out = $rh.createReply();
390          org.omg.mof.Model.FeatureSetHelper.write (out, $result);
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/StructuralFeatureClass:1.0",
404     "IDL:org/omg/mof/Model/TypedElementClass:1.0",
405     "IDL:org/omg/mof/Model/ModelElementClass:1.0",
406     "IDL:org/omg/mof/Reflective/RefObject:1.0",
407     "IDL:org/omg/mof/Reflective/RefBaseObject:1.0",
408     "IDL:org/omg/mof/Model/FeatureClass: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 StructuralFeatureClass _this()
416   {
417     return StructuralFeatureClassHelper.narrow(
418     super._this_object());
419   }
420
421   public StructuralFeatureClass _this(org.omg.CORBA.ORB JavaDoc orb)
422   {
423     return StructuralFeatureClassHelper.narrow(
424     super._this_object(orb));
425   }
426
427
428 } // class StructuralFeatureClassPOA
429
Popular Tags