KickJava   Java API By Example, From Geeks To Geeks.

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


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

422   // Type-specific CORBA::Object operations
423
private static String JavaDoc[] __ids = {
424     "IDL:org/omg/mof/Model/AssociationEndClass:1.0",
425     "IDL:org/omg/mof/Model/TypedElementClass:1.0",
426     "IDL:org/omg/mof/Model/ModelElementClass:1.0",
427     "IDL:org/omg/mof/Reflective/RefObject:1.0",
428     "IDL:org/omg/mof/Reflective/RefBaseObject:1.0"};
429
430   public String JavaDoc[] _all_interfaces (org.omg.PortableServer.POA JavaDoc poa, byte[] objectId)
431   {
432     return (String JavaDoc[])__ids.clone ();
433   }
434
435   public AssociationEndClass _this()
436   {
437     return AssociationEndClassHelper.narrow(
438     super._this_object());
439   }
440
441   public AssociationEndClass _this(org.omg.CORBA.ORB JavaDoc orb)
442   {
443     return AssociationEndClassHelper.narrow(
444     super._this_object(orb));
445   }
446
447
448 } // class AssociationEndClassPOA
449
Popular Tags