KickJava   Java API By Example, From Geeks To Geeks.

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


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

381   // Type-specific CORBA::Object operations
382
private static String JavaDoc[] __ids = {
383     "IDL:org/omg/mof/Model/NamespaceClass:1.0",
384     "IDL:org/omg/mof/Model/ModelElementClass:1.0",
385     "IDL:org/omg/mof/Reflective/RefObject:1.0",
386     "IDL:org/omg/mof/Reflective/RefBaseObject:1.0"};
387
388   public String JavaDoc[] _all_interfaces (org.omg.PortableServer.POA JavaDoc poa, byte[] objectId)
389   {
390     return (String JavaDoc[])__ids.clone ();
391   }
392
393   public NamespaceClass _this()
394   {
395     return NamespaceClassHelper.narrow(
396     super._this_object());
397   }
398
399   public NamespaceClass _this(org.omg.CORBA.ORB JavaDoc orb)
400   {
401     return NamespaceClassHelper.narrow(
402     super._this_object(orb));
403   }
404
405
406 } // class NamespaceClassPOA
407
Popular Tags