KickJava   Java API By Example, From Geeks To Geeks.

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


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

443   // Type-specific CORBA::Object operations
444
private static String JavaDoc[] __ids = {
445     "IDL:org/omg/mof/Model/DataTypeClass:1.0",
446     "IDL:org/omg/mof/Model/ClassifierClass:1.0",
447     "IDL:org/omg/mof/Model/GeneralizableElementClass:1.0",
448     "IDL:org/omg/mof/Model/NamespaceClass:1.0",
449     "IDL:org/omg/mof/Model/ModelElementClass:1.0",
450     "IDL:org/omg/mof/Reflective/RefObject:1.0",
451     "IDL:org/omg/mof/Reflective/RefBaseObject:1.0"};
452
453   public String JavaDoc[] _all_interfaces (org.omg.PortableServer.POA JavaDoc poa, byte[] objectId)
454   {
455     return (String JavaDoc[])__ids.clone ();
456   }
457
458   public DataTypeClass _this()
459   {
460     return DataTypeClassHelper.narrow(
461     super._this_object());
462   }
463
464   public DataTypeClass _this(org.omg.CORBA.ORB JavaDoc orb)
465   {
466     return DataTypeClassHelper.narrow(
467     super._this_object(orb));
468   }
469
470
471 } // class DataTypeClassPOA
472
Popular Tags