KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.omg.mof.Model;
2
3
4 /**
5 * org/omg/mof/Model/_ModelPackagePOA.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 public abstract class _ModelPackagePOA extends org.omg.PortableServer.Servant JavaDoc
12  implements org.omg.mof.Model._ModelPackageOperations, org.omg.CORBA.portable.InvokeHandler JavaDoc
13 {
14
15   // Constructors
16

17   private static java.util.Hashtable JavaDoc _methods = new java.util.Hashtable JavaDoc ();
18   static
19   {
20     _methods.put ("_get_model_element_ref", new java.lang.Integer JavaDoc (0));
21     _methods.put ("_get_import_ref", new java.lang.Integer JavaDoc (1));
22     _methods.put ("_get_namespace_ref", new java.lang.Integer JavaDoc (2));
23     _methods.put ("_get_constraint_ref", new java.lang.Integer JavaDoc (3));
24     _methods.put ("_get_tag_ref", new java.lang.Integer JavaDoc (4));
25     _methods.put ("_get_typed_element_ref", new java.lang.Integer JavaDoc (5));
26     _methods.put ("_get_generalizable_element_ref", new java.lang.Integer JavaDoc (6));
27     _methods.put ("_get_feature_ref", new java.lang.Integer JavaDoc (7));
28     _methods.put ("_get_type_alias_ref", new java.lang.Integer JavaDoc (8));
29     _methods.put ("_get_parameter_ref", new java.lang.Integer JavaDoc (9));
30     _methods.put ("_get_constant_ref", new java.lang.Integer JavaDoc (10));
31     _methods.put ("_get_structural_feature_ref", new java.lang.Integer JavaDoc (11));
32     _methods.put ("_get_behavioral_feature_ref", new java.lang.Integer JavaDoc (12));
33     _methods.put ("_get_classifier_ref", new java.lang.Integer JavaDoc (13));
34     _methods.put ("_get_package_ref", new java.lang.Integer JavaDoc (14));
35     _methods.put ("_get_association_end_ref", new java.lang.Integer JavaDoc (15));
36     _methods.put ("_get_reference_ref", new java.lang.Integer JavaDoc (16));
37     _methods.put ("_get_mof_attribute_ref", new java.lang.Integer JavaDoc (17));
38     _methods.put ("_get_mof_exception_ref", new java.lang.Integer JavaDoc (18));
39     _methods.put ("_get_operation_ref", new java.lang.Integer JavaDoc (19));
40     _methods.put ("_get_class_ref", new java.lang.Integer JavaDoc (20));
41     _methods.put ("_get_data_type_ref", new java.lang.Integer JavaDoc (21));
42     _methods.put ("_get_association_ref", new java.lang.Integer JavaDoc (22));
43     _methods.put ("_get_depends_on_ref", new java.lang.Integer JavaDoc (23));
44     _methods.put ("_get_contains_ref", new java.lang.Integer JavaDoc (24));
45     _methods.put ("_get_attaches_to_ref", new java.lang.Integer JavaDoc (25));
46     _methods.put ("_get_constrains_ref", new java.lang.Integer JavaDoc (26));
47     _methods.put ("_get_aliases_ref", new java.lang.Integer JavaDoc (27));
48     _methods.put ("_get_generalizes_ref", new java.lang.Integer JavaDoc (28));
49     _methods.put ("_get_is_of_type_ref", new java.lang.Integer JavaDoc (29));
50     _methods.put ("_get_can_raise_ref", new java.lang.Integer JavaDoc (30));
51     _methods.put ("_get_refers_to_ref", new java.lang.Integer JavaDoc (31));
52     _methods.put ("_get_exposes_ref", new java.lang.Integer JavaDoc (32));
53     _methods.put ("ref_class_ref", new java.lang.Integer JavaDoc (33));
54     _methods.put ("ref_association_ref", new java.lang.Integer JavaDoc (34));
55     _methods.put ("ref_package_ref", new java.lang.Integer JavaDoc (35));
56     _methods.put ("ref_mof_id", new java.lang.Integer JavaDoc (36));
57     _methods.put ("ref_meta_object", new java.lang.Integer JavaDoc (37));
58     _methods.put ("ref_itself", new java.lang.Integer JavaDoc (38));
59     _methods.put ("ref_immediate_package", new java.lang.Integer JavaDoc (39));
60     _methods.put ("ref_outermost_package", new java.lang.Integer JavaDoc (40));
61     _methods.put ("ref_delete", new java.lang.Integer JavaDoc (41));
62   }
63
64   public org.omg.CORBA.portable.OutputStream JavaDoc _invoke (String JavaDoc $method,
65                                 org.omg.CORBA.portable.InputStream JavaDoc in,
66                                 org.omg.CORBA.portable.ResponseHandler JavaDoc $rh)
67   {
68     org.omg.CORBA.portable.OutputStream JavaDoc out = null;
69     java.lang.Integer JavaDoc __method = (java.lang.Integer JavaDoc)_methods.get ($method);
70     if (__method == null)
71       throw new org.omg.CORBA.BAD_OPERATION JavaDoc (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
72
73     switch (__method.intValue ())
74     {
75        case 0: // org/omg/mof/Model/_ModelPackage/_get_model_element_ref
76
{
77          org.omg.mof.Model.ModelElementClass $result = null;
78          $result = this.model_element_ref ();
79          out = $rh.createReply();
80          org.omg.mof.Model.ModelElementClassHelper.write (out, $result);
81          break;
82        }
83
84        case 1: // org/omg/mof/Model/_ModelPackage/_get_import_ref
85
{
86          org.omg.mof.Model.ImportClass $result = null;
87          $result = this.import_ref ();
88          out = $rh.createReply();
89          org.omg.mof.Model.ImportClassHelper.write (out, $result);
90          break;
91        }
92
93        case 2: // org/omg/mof/Model/_ModelPackage/_get_namespace_ref
94
{
95          org.omg.mof.Model.NamespaceClass $result = null;
96          $result = this.namespace_ref ();
97          out = $rh.createReply();
98          org.omg.mof.Model.NamespaceClassHelper.write (out, $result);
99          break;
100        }
101
102        case 3: // org/omg/mof/Model/_ModelPackage/_get_constraint_ref
103
{
104          org.omg.mof.Model.ConstraintClass $result = null;
105          $result = this.constraint_ref ();
106          out = $rh.createReply();
107          org.omg.mof.Model.ConstraintClassHelper.write (out, $result);
108          break;
109        }
110
111        case 4: // org/omg/mof/Model/_ModelPackage/_get_tag_ref
112
{
113          org.omg.mof.Model.TagClass $result = null;
114          $result = this.tag_ref ();
115          out = $rh.createReply();
116          org.omg.mof.Model.TagClassHelper.write (out, $result);
117          break;
118        }
119
120        case 5: // org/omg/mof/Model/_ModelPackage/_get_typed_element_ref
121
{
122          org.omg.mof.Model.TypedElementClass $result = null;
123          $result = this.typed_element_ref ();
124          out = $rh.createReply();
125          org.omg.mof.Model.TypedElementClassHelper.write (out, $result);
126          break;
127        }
128
129        case 6: // org/omg/mof/Model/_ModelPackage/_get_generalizable_element_ref
130
{
131          org.omg.mof.Model.GeneralizableElementClass $result = null;
132          $result = this.generalizable_element_ref ();
133          out = $rh.createReply();
134          org.omg.mof.Model.GeneralizableElementClassHelper.write (out, $result);
135          break;
136        }
137
138        case 7: // org/omg/mof/Model/_ModelPackage/_get_feature_ref
139
{
140          org.omg.mof.Model.FeatureClass $result = null;
141          $result = this.feature_ref ();
142          out = $rh.createReply();
143          org.omg.mof.Model.FeatureClassHelper.write (out, $result);
144          break;
145        }
146
147        case 8: // org/omg/mof/Model/_ModelPackage/_get_type_alias_ref
148
{
149          org.omg.mof.Model.TypeAliasClass $result = null;
150          $result = this.type_alias_ref ();
151          out = $rh.createReply();
152          org.omg.mof.Model.TypeAliasClassHelper.write (out, $result);
153          break;
154        }
155
156        case 9: // org/omg/mof/Model/_ModelPackage/_get_parameter_ref
157
{
158          org.omg.mof.Model.ParameterClass $result = null;
159          $result = this.parameter_ref ();
160          out = $rh.createReply();
161          org.omg.mof.Model.ParameterClassHelper.write (out, $result);
162          break;
163        }
164
165        case 10: // org/omg/mof/Model/_ModelPackage/_get_constant_ref
166
{
167          org.omg.mof.Model.ConstantClass $result = null;
168          $result = this.constant_ref ();
169          out = $rh.createReply();
170          org.omg.mof.Model.ConstantClassHelper.write (out, $result);
171          break;
172        }
173
174        case 11: // org/omg/mof/Model/_ModelPackage/_get_structural_feature_ref
175
{
176          org.omg.mof.Model.StructuralFeatureClass $result = null;
177          $result = this.structural_feature_ref ();
178          out = $rh.createReply();
179          org.omg.mof.Model.StructuralFeatureClassHelper.write (out, $result);
180          break;
181        }
182
183        case 12: // org/omg/mof/Model/_ModelPackage/_get_behavioral_feature_ref
184
{
185          org.omg.mof.Model.BehavioralFeatureClass $result = null;
186          $result = this.behavioral_feature_ref ();
187          out = $rh.createReply();
188          org.omg.mof.Model.BehavioralFeatureClassHelper.write (out, $result);
189          break;
190        }
191
192        case 13: // org/omg/mof/Model/_ModelPackage/_get_classifier_ref
193
{
194          org.omg.mof.Model.ClassifierClass $result = null;
195          $result = this.classifier_ref ();
196          out = $rh.createReply();
197          org.omg.mof.Model.ClassifierClassHelper.write (out, $result);
198          break;
199        }
200
201        case 14: // org/omg/mof/Model/_ModelPackage/_get_package_ref
202
{
203          org.omg.mof.Model.PackageClass $result = null;
204          $result = this.package_ref ();
205          out = $rh.createReply();
206          org.omg.mof.Model.PackageClassHelper.write (out, $result);
207          break;
208        }
209
210        case 15: // org/omg/mof/Model/_ModelPackage/_get_association_end_ref
211
{
212          org.omg.mof.Model.AssociationEndClass $result = null;
213          $result = this.association_end_ref ();
214          out = $rh.createReply();
215          org.omg.mof.Model.AssociationEndClassHelper.write (out, $result);
216          break;
217        }
218
219        case 16: // org/omg/mof/Model/_ModelPackage/_get_reference_ref
220
{
221          org.omg.mof.Model.ReferenceClass $result = null;
222          $result = this.reference_ref ();
223          out = $rh.createReply();
224          org.omg.mof.Model.ReferenceClassHelper.write (out, $result);
225          break;
226        }
227
228        case 17: // org/omg/mof/Model/_ModelPackage/_get_mof_attribute_ref
229
{
230          org.omg.mof.Model.MofAttributeClass $result = null;
231          $result = this.mof_attribute_ref ();
232          out = $rh.createReply();
233          org.omg.mof.Model.MofAttributeClassHelper.write (out, $result);
234          break;
235        }
236
237        case 18: // org/omg/mof/Model/_ModelPackage/_get_mof_exception_ref
238
{
239          org.omg.mof.Model.MofExceptionClass $result = null;
240          $result = this.mof_exception_ref ();
241          out = $rh.createReply();
242          org.omg.mof.Model.MofExceptionClassHelper.write (out, $result);
243          break;
244        }
245
246        case 19: // org/omg/mof/Model/_ModelPackage/_get_operation_ref
247
{
248          org.omg.mof.Model.OperationClass $result = null;
249          $result = this.operation_ref ();
250          out = $rh.createReply();
251          org.omg.mof.Model.OperationClassHelper.write (out, $result);
252          break;
253        }
254
255        case 20: // org/omg/mof/Model/_ModelPackage/_get_class_ref
256
{
257          org.omg.mof.Model.ClassClass $result = null;
258          $result = this.class_ref ();
259          out = $rh.createReply();
260          org.omg.mof.Model.ClassClassHelper.write (out, $result);
261          break;
262        }
263
264        case 21: // org/omg/mof/Model/_ModelPackage/_get_data_type_ref
265
{
266          org.omg.mof.Model.DataTypeClass $result = null;
267          $result = this.data_type_ref ();
268          out = $rh.createReply();
269          org.omg.mof.Model.DataTypeClassHelper.write (out, $result);
270          break;
271        }
272
273        case 22: // org/omg/mof/Model/_ModelPackage/_get_association_ref
274
{
275          org.omg.mof.Model.AssociationClass $result = null;
276          $result = this.association_ref ();
277          out = $rh.createReply();
278          org.omg.mof.Model.AssociationClassHelper.write (out, $result);
279          break;
280        }
281
282        case 23: // org/omg/mof/Model/_ModelPackage/_get_depends_on_ref
283
{
284          org.omg.mof.Model.DependsOn $result = null;
285          $result = this.depends_on_ref ();
286          out = $rh.createReply();
287          org.omg.mof.Model.DependsOnHelper.write (out, $result);
288          break;
289        }
290
291        case 24: // org/omg/mof/Model/_ModelPackage/_get_contains_ref
292
{
293          org.omg.mof.Model.Contains $result = null;
294          $result = this.contains_ref ();
295          out = $rh.createReply();
296          org.omg.mof.Model.ContainsHelper.write (out, $result);
297          break;
298        }
299
300        case 25: // org/omg/mof/Model/_ModelPackage/_get_attaches_to_ref
301
{
302          org.omg.mof.Model.AttachesTo $result = null;
303          $result = this.attaches_to_ref ();
304          out = $rh.createReply();
305          org.omg.mof.Model.AttachesToHelper.write (out, $result);
306          break;
307        }
308
309        case 26: // org/omg/mof/Model/_ModelPackage/_get_constrains_ref
310
{
311          org.omg.mof.Model.Constrains $result = null;
312          $result = this.constrains_ref ();
313          out = $rh.createReply();
314          org.omg.mof.Model.ConstrainsHelper.write (out, $result);
315          break;
316        }
317
318        case 27: // org/omg/mof/Model/_ModelPackage/_get_aliases_ref
319
{
320          org.omg.mof.Model.Aliases $result = null;
321          $result = this.aliases_ref ();
322          out = $rh.createReply();
323          org.omg.mof.Model.AliasesHelper.write (out, $result);
324          break;
325        }
326
327        case 28: // org/omg/mof/Model/_ModelPackage/_get_generalizes_ref
328
{
329          org.omg.mof.Model.Generalizes $result = null;
330          $result = this.generalizes_ref ();
331          out = $rh.createReply();
332          org.omg.mof.Model.GeneralizesHelper.write (out, $result);
333          break;
334        }
335
336        case 29: // org/omg/mof/Model/_ModelPackage/_get_is_of_type_ref
337
{
338          org.omg.mof.Model.IsOfType $result = null;
339          $result = this.is_of_type_ref ();
340          out = $rh.createReply();
341          org.omg.mof.Model.IsOfTypeHelper.write (out, $result);
342          break;
343        }
344
345        case 30: // org/omg/mof/Model/_ModelPackage/_get_can_raise_ref
346
{
347          org.omg.mof.Model.CanRaise $result = null;
348          $result = this.can_raise_ref ();
349          out = $rh.createReply();
350          org.omg.mof.Model.CanRaiseHelper.write (out, $result);
351          break;
352        }
353
354        case 31: // org/omg/mof/Model/_ModelPackage/_get_refers_to_ref
355
{
356          org.omg.mof.Model.RefersTo $result = null;
357          $result = this.refers_to_ref ();
358          out = $rh.createReply();
359          org.omg.mof.Model.RefersToHelper.write (out, $result);
360          break;
361        }
362
363        case 32: // org/omg/mof/Model/_ModelPackage/_get_exposes_ref
364
{
365          org.omg.mof.Model.Exposes $result = null;
366          $result = this.exposes_ref ();
367          out = $rh.createReply();
368          org.omg.mof.Model.ExposesHelper.write (out, $result);
369          break;
370        }
371
372        case 33: // org/omg/mof/Reflective/_RefPackage/ref_class_ref
373
{
374          try {
375            org.omg.mof.Reflective.RefObject _class = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
376            org.omg.mof.Reflective.RefObject $result = null;
377            $result = this.ref_class_ref (_class);
378            out = $rh.createReply();
379            org.omg.mof.Reflective.RefObjectHelper.write (out, $result);
380          } catch (org.omg.mof.Reflective.MofError $ex) {
381            out = $rh.createExceptionReply ();
382            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
383          }
384          break;
385        }
386
387        case 34: // org/omg/mof/Reflective/_RefPackage/ref_association_ref
388
{
389          try {
390            org.omg.mof.Reflective.RefObject association = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
391            org.omg.mof.Reflective.RefAssociation $result = null;
392            $result = this.ref_association_ref (association);
393            out = $rh.createReply();
394            org.omg.mof.Reflective.RefAssociationHelper.write (out, $result);
395          } catch (org.omg.mof.Reflective.MofError $ex) {
396            out = $rh.createExceptionReply ();
397            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
398          }
399          break;
400        }
401
402        case 35: // org/omg/mof/Reflective/_RefPackage/ref_package_ref
403
{
404          try {
405            org.omg.mof.Reflective.RefObject _package = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
406            org.omg.mof.Reflective._RefPackage $result = null;
407            $result = this.ref_package_ref (_package);
408            out = $rh.createReply();
409            org.omg.mof.Reflective._RefPackageHelper.write (out, $result);
410          } catch (org.omg.mof.Reflective.MofError $ex) {
411            out = $rh.createExceptionReply ();
412            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
413          }
414          break;
415        }
416
417        case 36: // org/omg/mof/Reflective/RefBaseObject/ref_mof_id
418
{
419          String JavaDoc $result = null;
420          $result = this.ref_mof_id ();
421          out = $rh.createReply();
422          out.write_string ($result);
423          break;
424        }
425
426        case 37: // org/omg/mof/Reflective/RefBaseObject/ref_meta_object
427
{
428          org.omg.mof.Reflective.RefObject $result = null;
429          $result = this.ref_meta_object ();
430          out = $rh.createReply();
431          org.omg.mof.Reflective.RefObjectHelper.write (out, $result);
432          break;
433        }
434
435        case 38: // org/omg/mof/Reflective/RefBaseObject/ref_itself
436
{
437          org.omg.mof.Reflective.RefBaseObject other_object = org.omg.mof.Reflective.RefBaseObjectHelper.read (in);
438          boolean $result = false;
439          $result = this.ref_itself (other_object);
440          out = $rh.createReply();
441          out.write_boolean ($result);
442          break;
443        }
444
445        case 39: // org/omg/mof/Reflective/RefBaseObject/ref_immediate_package
446
{
447          org.omg.mof.Reflective._RefPackage $result = null;
448          $result = this.ref_immediate_package ();
449          out = $rh.createReply();
450          org.omg.mof.Reflective._RefPackageHelper.write (out, $result);
451          break;
452        }
453
454        case 40: // org/omg/mof/Reflective/RefBaseObject/ref_outermost_package
455
{
456          org.omg.mof.Reflective._RefPackage $result = null;
457          $result = this.ref_outermost_package ();
458          out = $rh.createReply();
459          org.omg.mof.Reflective._RefPackageHelper.write (out, $result);
460          break;
461        }
462
463        case 41: // org/omg/mof/Reflective/RefBaseObject/ref_delete
464
{
465          try {
466            this.ref_delete ();
467            out = $rh.createReply();
468          } catch (org.omg.mof.Reflective.MofError $ex) {
469            out = $rh.createExceptionReply ();
470            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
471          }
472          break;
473        }
474
475        default:
476          throw new org.omg.CORBA.BAD_OPERATION JavaDoc (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
477     }
478
479     return out;
480   } // _invoke
481

482   // Type-specific CORBA::Object operations
483
private static String JavaDoc[] __ids = {
484     "IDL:org/omg/mof/Model/ModelPackage:1.0",
485     "IDL:org/omg/mof/Reflective/RefPackage:1.0",
486     "IDL:org/omg/mof/Reflective/RefBaseObject:1.0"};
487
488   public String JavaDoc[] _all_interfaces (org.omg.PortableServer.POA JavaDoc poa, byte[] objectId)
489   {
490     return (String JavaDoc[])__ids.clone ();
491   }
492
493   public _ModelPackage _this()
494   {
495     return _ModelPackageHelper.narrow(
496     super._this_object());
497   }
498
499   public _ModelPackage _this(org.omg.CORBA.ORB JavaDoc orb)
500   {
501     return _ModelPackageHelper.narrow(
502     super._this_object(orb));
503   }
504
505
506 } // class _ModelPackagePOA
507
Popular Tags