KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.omg.mof.Model;
2
3
4 /**
5 * org/omg/mof/Model/MofAttributeClassPOA.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 MofAttributeClassPOA extends org.omg.PortableServer.Servant JavaDoc
14  implements org.omg.mof.Model.MofAttributeClassOperations, 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_mof_attribute", new java.lang.Integer JavaDoc (0));
23     _methods.put ("_get_all_of_class_mof_attribute", new java.lang.Integer JavaDoc (1));
24     _methods.put ("create_mof_attribute", new java.lang.Integer JavaDoc (2));
25     _methods.put ("_get_all_of_type_structural_feature", new java.lang.Integer JavaDoc (3));
26     _methods.put ("_get_all_of_type_typed_element", new java.lang.Integer JavaDoc (4));
27     _methods.put ("_get_all_of_type_model_element", new java.lang.Integer JavaDoc (5));
28     _methods.put ("ref_is_instance_of", new java.lang.Integer JavaDoc (6));
29     _methods.put ("ref_create_instance", new java.lang.Integer JavaDoc (7));
30     _methods.put ("ref_all_objects", new java.lang.Integer JavaDoc (8));
31     _methods.put ("ref_set_value", new java.lang.Integer JavaDoc (9));
32     _methods.put ("ref_value", new java.lang.Integer JavaDoc (10));
33     _methods.put ("ref_unset_value", new java.lang.Integer JavaDoc (11));
34     _methods.put ("ref_add_value", new java.lang.Integer JavaDoc (12));
35     _methods.put ("ref_add_value_before", new java.lang.Integer JavaDoc (13));
36     _methods.put ("ref_add_value_at", new java.lang.Integer JavaDoc (14));
37     _methods.put ("ref_modify_value", new java.lang.Integer JavaDoc (15));
38     _methods.put ("ref_modify_value_at", new java.lang.Integer JavaDoc (16));
39     _methods.put ("ref_remove_value", new java.lang.Integer JavaDoc (17));
40     _methods.put ("ref_remove_value_at", new java.lang.Integer JavaDoc (18));
41     _methods.put ("ref_immediate_composite", new java.lang.Integer JavaDoc (19));
42     _methods.put ("ref_outermost_composite", new java.lang.Integer JavaDoc (20));
43     _methods.put ("ref_invoke_operation", new java.lang.Integer JavaDoc (21));
44     _methods.put ("ref_mof_id", new java.lang.Integer JavaDoc (22));
45     _methods.put ("ref_meta_object", new java.lang.Integer JavaDoc (23));
46     _methods.put ("ref_itself", new java.lang.Integer JavaDoc (24));
47     _methods.put ("ref_immediate_package", new java.lang.Integer JavaDoc (25));
48     _methods.put ("ref_outermost_package", new java.lang.Integer JavaDoc (26));
49     _methods.put ("ref_delete", new java.lang.Integer JavaDoc (27));
50     _methods.put ("_get_all_of_type_feature", 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/MofAttributeClass/_get_all_of_type_mof_attribute
65
{
66          org.omg.mof.Model.MofAttribute $result[] = null;
67          $result = this.all_of_type_mof_attribute ();
68          out = $rh.createReply();
69          org.omg.mof.Model.MofAttributeSetHelper.write (out, $result);
70          break;
71        }
72
73        case 1: // org/omg/mof/Model/MofAttributeClass/_get_all_of_class_mof_attribute
74
{
75          org.omg.mof.Model.MofAttribute $result[] = null;
76          $result = this.all_of_class_mof_attribute ();
77          out = $rh.createReply();
78          org.omg.mof.Model.MofAttributeSetHelper.write (out, $result);
79          break;
80        }
81
82        case 2: // org/omg/mof/Model/MofAttributeClass/create_mof_attribute
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            org.omg.mof.Model.ScopeKind scope = org.omg.mof.Model.ScopeKindHelper.read (in);
89            org.omg.mof.Model.MultiplicityType multiplicity = org.omg.mof.Model.MultiplicityTypeHelper.read (in);
90            boolean is_changeable = in.read_boolean ();
91            boolean is_derived = in.read_boolean ();
92            org.omg.mof.Model.MofAttribute $result = null;
93            $result = this.create_mof_attribute (name, annotation, visibility, scope, multiplicity, is_changeable, is_derived);
94            out = $rh.createReply();
95            org.omg.mof.Model.MofAttributeHelper.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/StructuralFeatureClass/_get_all_of_type_structural_feature
104
{
105          org.omg.mof.Model.StructuralFeature $result[] = null;
106          $result = this.all_of_type_structural_feature ();
107          out = $rh.createReply();
108          org.omg.mof.Model.StructuralFeatureSetHelper.write (out, $result);
109          break;
110        }
111
112        case 4: // org/omg/mof/Model/TypedElementClass/_get_all_of_type_typed_element
113
{
114          org.omg.mof.Model.TypedElement $result[] = null;
115          $result = this.all_of_type_typed_element ();
116          out = $rh.createReply();
117          org.omg.mof.Model.TypedElementSetHelper.write (out, $result);
118          break;
119        }
120
121        case 5: // org/omg/mof/Model/ModelElementClass/_get_all_of_type_model_element
122
{
123          org.omg.mof.Model.ModelElement $result[] = null;
124          $result = this.all_of_type_model_element ();
125          out = $rh.createReply();
126          org.omg.mof.Model.ModelElementSetHelper.write (out, $result);
127          break;
128        }
129
130        case 6: // org/omg/mof/Reflective/RefObject/ref_is_instance_of
131
{
132          org.omg.mof.Reflective.RefObject some_class = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
133          boolean consider_subtypes = in.read_boolean ();
134          boolean $result = false;
135          $result = this.ref_is_instance_of (some_class, consider_subtypes);
136          out = $rh.createReply();
137          out.write_boolean ($result);
138          break;
139        }
140
141        case 7: // org/omg/mof/Reflective/RefObject/ref_create_instance
142
{
143          try {
144            org.omg.CORBA.Any JavaDoc args[] = org.omg.mof.Reflective.ValueTypeListHelper.read (in);
145            org.omg.mof.Reflective.RefObject $result = null;
146            $result = this.ref_create_instance (args);
147            out = $rh.createReply();
148            org.omg.mof.Reflective.RefObjectHelper.write (out, $result);
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_all_objects
157
{
158          boolean include_subtypes = in.read_boolean ();
159          org.omg.mof.Reflective.RefObject $result[] = null;
160          $result = this.ref_all_objects (include_subtypes);
161          out = $rh.createReply();
162          org.omg.mof.Reflective.RefObjectSetHelper.write (out, $result);
163          break;
164        }
165
166        case 9: // org/omg/mof/Reflective/RefObject/ref_set_value
167
{
168          try {
169            org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
170            org.omg.CORBA.Any JavaDoc new_value = org.omg.mof.Reflective._ValueTypeHelper.read (in);
171            this.ref_set_value (feature, new_value);
172            out = $rh.createReply();
173          } catch (org.omg.mof.Reflective.MofError $ex) {
174            out = $rh.createExceptionReply ();
175            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
176          }
177          break;
178        }
179
180        case 10: // org/omg/mof/Reflective/RefObject/ref_value
181
{
182          try {
183            org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
184            org.omg.CORBA.Any JavaDoc $result = null;
185            $result = this.ref_value (feature);
186            out = $rh.createReply();
187            out.write_any ($result);
188          } catch (org.omg.mof.Reflective.NotSet $ex) {
189            out = $rh.createExceptionReply ();
190            org.omg.mof.Reflective.NotSetHelper.write (out, $ex);
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_unset_value
199
{
200          try {
201            this.ref_unset_value ();
202            out = $rh.createReply();
203          } catch (org.omg.mof.Reflective.MofError $ex) {
204            out = $rh.createExceptionReply ();
205            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
206          }
207          break;
208        }
209
210        case 12: // org/omg/mof/Reflective/RefObject/ref_add_value
211
{
212          try {
213            org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
214            org.omg.CORBA.Any JavaDoc new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in);
215            this.ref_add_value (feature, new_element);
216            out = $rh.createReply();
217          } catch (org.omg.mof.Reflective.MofError $ex) {
218            out = $rh.createExceptionReply ();
219            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
220          }
221          break;
222        }
223
224        case 13: // org/omg/mof/Reflective/RefObject/ref_add_value_before
225
{
226          try {
227            org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
228            org.omg.CORBA.Any JavaDoc new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in);
229            org.omg.CORBA.Any JavaDoc before_element = org.omg.mof.Reflective._ValueTypeHelper.read (in);
230            this.ref_add_value_before (feature, new_element, before_element);
231            out = $rh.createReply();
232          } catch (org.omg.mof.Reflective.NotFound $ex) {
233            out = $rh.createExceptionReply ();
234            org.omg.mof.Reflective.NotFoundHelper.write (out, $ex);
235          } catch (org.omg.mof.Reflective.MofError $ex) {
236            out = $rh.createExceptionReply ();
237            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
238          }
239          break;
240        }
241
242        case 14: // org/omg/mof/Reflective/RefObject/ref_add_value_at
243
{
244          try {
245            org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
246            org.omg.CORBA.Any JavaDoc new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in);
247            int position = in.read_ulong ();
248            this.ref_add_value_at (feature, new_element, position);
249            out = $rh.createReply();
250          } catch (org.omg.mof.Reflective.BadPosition $ex) {
251            out = $rh.createExceptionReply ();
252            org.omg.mof.Reflective.BadPositionHelper.write (out, $ex);
253          } catch (org.omg.mof.Reflective.MofError $ex) {
254            out = $rh.createExceptionReply ();
255            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
256          }
257          break;
258        }
259
260        case 15: // org/omg/mof/Reflective/RefObject/ref_modify_value
261
{
262          try {
263            org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
264            org.omg.CORBA.Any JavaDoc old_element = org.omg.mof.Reflective._ValueTypeHelper.read (in);
265            org.omg.CORBA.Any JavaDoc new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in);
266            this.ref_modify_value (feature, old_element, new_element);
267            out = $rh.createReply();
268          } catch (org.omg.mof.Reflective.NotFound $ex) {
269            out = $rh.createExceptionReply ();
270            org.omg.mof.Reflective.NotFoundHelper.write (out, $ex);
271          } catch (org.omg.mof.Reflective.MofError $ex) {
272            out = $rh.createExceptionReply ();
273            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
274          }
275          break;
276        }
277
278        case 16: // org/omg/mof/Reflective/RefObject/ref_modify_value_at
279
{
280          try {
281            org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
282            org.omg.CORBA.Any JavaDoc new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in);
283            int position = in.read_ulong ();
284            this.ref_modify_value_at (feature, new_element, position);
285            out = $rh.createReply();
286          } catch (org.omg.mof.Reflective.BadPosition $ex) {
287            out = $rh.createExceptionReply ();
288            org.omg.mof.Reflective.BadPositionHelper.write (out, $ex);
289          } catch (org.omg.mof.Reflective.MofError $ex) {
290            out = $rh.createExceptionReply ();
291            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
292          }
293          break;
294        }
295
296        case 17: // org/omg/mof/Reflective/RefObject/ref_remove_value
297
{
298          try {
299            org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
300            org.omg.CORBA.Any JavaDoc existing_element = org.omg.mof.Reflective._ValueTypeHelper.read (in);
301            this.ref_remove_value (feature, existing_element);
302            out = $rh.createReply();
303          } catch (org.omg.mof.Reflective.NotFound $ex) {
304            out = $rh.createExceptionReply ();
305            org.omg.mof.Reflective.NotFoundHelper.write (out, $ex);
306          } catch (org.omg.mof.Reflective.MofError $ex) {
307            out = $rh.createExceptionReply ();
308            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
309          }
310          break;
311        }
312
313        case 18: // org/omg/mof/Reflective/RefObject/ref_remove_value_at
314
{
315          try {
316            org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
317            int position = in.read_ulong ();
318            this.ref_remove_value_at (feature, position);
319            out = $rh.createReply();
320          } catch (org.omg.mof.Reflective.BadPosition $ex) {
321            out = $rh.createExceptionReply ();
322            org.omg.mof.Reflective.BadPositionHelper.write (out, $ex);
323          } catch (org.omg.mof.Reflective.MofError $ex) {
324            out = $rh.createExceptionReply ();
325            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
326          }
327          break;
328        }
329
330        case 19: // org/omg/mof/Reflective/RefObject/ref_immediate_composite
331
{
332          org.omg.mof.Reflective.RefObject $result = null;
333          $result = this.ref_immediate_composite ();
334          out = $rh.createReply();
335          org.omg.mof.Reflective.RefObjectHelper.write (out, $result);
336          break;
337        }
338
339        case 20: // org/omg/mof/Reflective/RefObject/ref_outermost_composite
340
{
341          org.omg.mof.Reflective.RefObject $result = null;
342          $result = this.ref_outermost_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_invoke_operation
349
{
350          try {
351            org.omg.mof.Reflective.RefObject requested_operation = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
352            org.omg.mof.Reflective.ValueTypeListHolder args = new org.omg.mof.Reflective.ValueTypeListHolder ();
353            args.value = org.omg.mof.Reflective.ValueTypeListHelper.read (in);
354            org.omg.CORBA.Any JavaDoc $result = null;
355            $result = this.ref_invoke_operation (requested_operation, args);
356            out = $rh.createReply();
357            out.write_any ($result);
358            org.omg.mof.Reflective.ValueTypeListHelper.write (out, args.value);
359          } catch (org.omg.mof.Reflective.OtherException $ex) {
360            out = $rh.createExceptionReply ();
361            org.omg.mof.Reflective.OtherExceptionHelper.write (out, $ex);
362          } catch (org.omg.mof.Reflective.MofError $ex) {
363            out = $rh.createExceptionReply ();
364            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
365          }
366          break;
367        }
368
369        case 22: // org/omg/mof/Reflective/RefBaseObject/ref_mof_id
370
{
371          String JavaDoc $result = null;
372          $result = this.ref_mof_id ();
373          out = $rh.createReply();
374          out.write_string ($result);
375          break;
376        }
377
378        case 23: // org/omg/mof/Reflective/RefBaseObject/ref_meta_object
379
{
380          org.omg.mof.Reflective.RefObject $result = null;
381          $result = this.ref_meta_object ();
382          out = $rh.createReply();
383          org.omg.mof.Reflective.RefObjectHelper.write (out, $result);
384          break;
385        }
386
387        case 24: // org/omg/mof/Reflective/RefBaseObject/ref_itself
388
{
389          org.omg.mof.Reflective.RefBaseObject other_object = org.omg.mof.Reflective.RefBaseObjectHelper.read (in);
390          boolean $result = false;
391          $result = this.ref_itself (other_object);
392          out = $rh.createReply();
393          out.write_boolean ($result);
394          break;
395        }
396
397        case 25: // org/omg/mof/Reflective/RefBaseObject/ref_immediate_package
398
{
399          org.omg.mof.Reflective._RefPackage $result = null;
400          $result = this.ref_immediate_package ();
401          out = $rh.createReply();
402          org.omg.mof.Reflective._RefPackageHelper.write (out, $result);
403          break;
404        }
405
406        case 26: // org/omg/mof/Reflective/RefBaseObject/ref_outermost_package
407
{
408          org.omg.mof.Reflective._RefPackage $result = null;
409          $result = this.ref_outermost_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_delete
416
{
417          try {
418            this.ref_delete ();
419            out = $rh.createReply();
420          } catch (org.omg.mof.Reflective.MofError $ex) {
421            out = $rh.createExceptionReply ();
422            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
423          }
424          break;
425        }
426
427        case 28: // org/omg/mof/Model/FeatureClass/_get_all_of_type_feature
428
{
429          org.omg.mof.Model.Feature $result[] = null;
430          $result = this.all_of_type_feature ();
431          out = $rh.createReply();
432          org.omg.mof.Model.FeatureSetHelper.write (out, $result);
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/MofAttributeClass:1.0",
446     "IDL:org/omg/mof/Model/StructuralFeatureClass:1.0",
447     "IDL:org/omg/mof/Model/TypedElementClass:1.0",
448     "IDL:org/omg/mof/Model/ModelElementClass:1.0",
449     "IDL:org/omg/mof/Reflective/RefObject:1.0",
450     "IDL:org/omg/mof/Reflective/RefBaseObject:1.0",
451     "IDL:org/omg/mof/Model/FeatureClass: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 MofAttributeClass _this()
459   {
460     return MofAttributeClassHelper.narrow(
461     super._this_object());
462   }
463
464   public MofAttributeClass _this(org.omg.CORBA.ORB JavaDoc orb)
465   {
466     return MofAttributeClassHelper.narrow(
467     super._this_object(orb));
468   }
469
470
471 } // class MofAttributeClassPOA
472
Popular Tags