KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.omg.mof.Model;
2
3
4 /**
5 * org/omg/mof/Model/CanRaisePOA.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 CanRaisePOA extends org.omg.PortableServer.Servant JavaDoc
14  implements org.omg.mof.Model.CanRaiseOperations, 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 ("all_can_raise_Links", new java.lang.Integer JavaDoc (0));
23     _methods.put ("exists", new java.lang.Integer JavaDoc (1));
24     _methods.put ("operation", new java.lang.Integer JavaDoc (2));
25     _methods.put ("except", new java.lang.Integer JavaDoc (3));
26     _methods.put ("add", new java.lang.Integer JavaDoc (4));
27     _methods.put ("add_before_except", new java.lang.Integer JavaDoc (5));
28     _methods.put ("modify_operation", new java.lang.Integer JavaDoc (6));
29     _methods.put ("modify_except", new java.lang.Integer JavaDoc (7));
30     _methods.put ("remove", new java.lang.Integer JavaDoc (8));
31     _methods.put ("ref_all_links", new java.lang.Integer JavaDoc (9));
32     _methods.put ("ref_link_exists", new java.lang.Integer JavaDoc (10));
33     _methods.put ("ref_query", new java.lang.Integer JavaDoc (11));
34     _methods.put ("ref_add_link", new java.lang.Integer JavaDoc (12));
35     _methods.put ("ref_add_link_before", new java.lang.Integer JavaDoc (13));
36     _methods.put ("ref_modify_link", new java.lang.Integer JavaDoc (14));
37     _methods.put ("ref_remove_link", new java.lang.Integer JavaDoc (15));
38     _methods.put ("ref_mof_id", new java.lang.Integer JavaDoc (16));
39     _methods.put ("ref_meta_object", new java.lang.Integer JavaDoc (17));
40     _methods.put ("ref_itself", new java.lang.Integer JavaDoc (18));
41     _methods.put ("ref_immediate_package", new java.lang.Integer JavaDoc (19));
42     _methods.put ("ref_outermost_package", new java.lang.Integer JavaDoc (20));
43     _methods.put ("ref_delete", new java.lang.Integer JavaDoc (21));
44   }
45
46   public org.omg.CORBA.portable.OutputStream JavaDoc _invoke (String JavaDoc $method,
47                                 org.omg.CORBA.portable.InputStream JavaDoc in,
48                                 org.omg.CORBA.portable.ResponseHandler JavaDoc $rh)
49   {
50     org.omg.CORBA.portable.OutputStream JavaDoc out = null;
51     java.lang.Integer JavaDoc __method = (java.lang.Integer JavaDoc)_methods.get ($method);
52     if (__method == null)
53       throw new org.omg.CORBA.BAD_OPERATION JavaDoc (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
54
55     switch (__method.intValue ())
56     {
57        case 0: // org/omg/mof/Model/CanRaise/all_can_raise_Links
58
{
59          try {
60            org.omg.mof.Model.CanRaiseLink $result[] = null;
61            $result = this.all_can_raise_Links ();
62            out = $rh.createReply();
63            org.omg.mof.Model.CanRaiseLinkSetHelper.write (out, $result);
64          } catch (org.omg.mof.Reflective.MofError $ex) {
65            out = $rh.createExceptionReply ();
66            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
67          }
68          break;
69        }
70
71        case 1: // org/omg/mof/Model/CanRaise/exists
72
{
73          try {
74            org.omg.mof.Model.Operation operation = org.omg.mof.Model.OperationHelper.read (in);
75            org.omg.mof.Model.MofException except = org.omg.mof.Model.MofExceptionHelper.read (in);
76            boolean $result = false;
77            $result = this.exists (operation, except);
78            out = $rh.createReply();
79            out.write_boolean ($result);
80          } catch (org.omg.mof.Reflective.MofError $ex) {
81            out = $rh.createExceptionReply ();
82            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
83          }
84          break;
85        }
86
87        case 2: // org/omg/mof/Model/CanRaise/operation
88
{
89          try {
90            org.omg.mof.Model.MofException except = org.omg.mof.Model.MofExceptionHelper.read (in);
91            org.omg.mof.Model.Operation $result[] = null;
92            $result = this.operation (except);
93            out = $rh.createReply();
94            org.omg.mof.Model.OperationBagHelper.write (out, $result);
95          } catch (org.omg.mof.Reflective.MofError $ex) {
96            out = $rh.createExceptionReply ();
97            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
98          }
99          break;
100        }
101
102        case 3: // org/omg/mof/Model/CanRaise/except
103
{
104          try {
105            org.omg.mof.Model.Operation operation = org.omg.mof.Model.OperationHelper.read (in);
106            org.omg.mof.Model.MofException $result[] = null;
107            $result = this.except (operation);
108            out = $rh.createReply();
109            org.omg.mof.Model.MofExceptionListHelper.write (out, $result);
110          } catch (org.omg.mof.Reflective.MofError $ex) {
111            out = $rh.createExceptionReply ();
112            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
113          }
114          break;
115        }
116
117        case 4: // org/omg/mof/Model/CanRaise/add
118
{
119          try {
120            org.omg.mof.Model.Operation operation = org.omg.mof.Model.OperationHelper.read (in);
121            org.omg.mof.Model.MofException except = org.omg.mof.Model.MofExceptionHelper.read (in);
122            this.add (operation, except);
123            out = $rh.createReply();
124          } catch (org.omg.mof.Reflective.MofError $ex) {
125            out = $rh.createExceptionReply ();
126            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
127          }
128          break;
129        }
130
131        case 5: // org/omg/mof/Model/CanRaise/add_before_except
132
{
133          try {
134            org.omg.mof.Model.Operation operation = org.omg.mof.Model.OperationHelper.read (in);
135            org.omg.mof.Model.MofException except = org.omg.mof.Model.MofExceptionHelper.read (in);
136            org.omg.mof.Model.MofException before = org.omg.mof.Model.MofExceptionHelper.read (in);
137            this.add_before_except (operation, except, before);
138            out = $rh.createReply();
139          } catch (org.omg.mof.Reflective.NotFound $ex) {
140            out = $rh.createExceptionReply ();
141            org.omg.mof.Reflective.NotFoundHelper.write (out, $ex);
142          } catch (org.omg.mof.Reflective.MofError $ex) {
143            out = $rh.createExceptionReply ();
144            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
145          }
146          break;
147        }
148
149        case 6: // org/omg/mof/Model/CanRaise/modify_operation
150
{
151          try {
152            org.omg.mof.Model.Operation operation = org.omg.mof.Model.OperationHelper.read (in);
153            org.omg.mof.Model.MofException except = org.omg.mof.Model.MofExceptionHelper.read (in);
154            org.omg.mof.Model.Operation new_operation = org.omg.mof.Model.OperationHelper.read (in);
155            this.modify_operation (operation, except, new_operation);
156            out = $rh.createReply();
157          } catch (org.omg.mof.Reflective.NotFound $ex) {
158            out = $rh.createExceptionReply ();
159            org.omg.mof.Reflective.NotFoundHelper.write (out, $ex);
160          } catch (org.omg.mof.Reflective.MofError $ex) {
161            out = $rh.createExceptionReply ();
162            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
163          }
164          break;
165        }
166
167        case 7: // org/omg/mof/Model/CanRaise/modify_except
168
{
169          try {
170            org.omg.mof.Model.Operation operation = org.omg.mof.Model.OperationHelper.read (in);
171            org.omg.mof.Model.MofException except = org.omg.mof.Model.MofExceptionHelper.read (in);
172            org.omg.mof.Model.MofException new_except = org.omg.mof.Model.MofExceptionHelper.read (in);
173            this.modify_except (operation, except, new_except);
174            out = $rh.createReply();
175          } catch (org.omg.mof.Reflective.NotFound $ex) {
176            out = $rh.createExceptionReply ();
177            org.omg.mof.Reflective.NotFoundHelper.write (out, $ex);
178          } catch (org.omg.mof.Reflective.MofError $ex) {
179            out = $rh.createExceptionReply ();
180            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
181          }
182          break;
183        }
184
185        case 8: // org/omg/mof/Model/CanRaise/remove
186
{
187          try {
188            org.omg.mof.Model.Operation operation = org.omg.mof.Model.OperationHelper.read (in);
189            org.omg.mof.Model.MofException except = org.omg.mof.Model.MofExceptionHelper.read (in);
190            this.remove (operation, except);
191            out = $rh.createReply();
192          } catch (org.omg.mof.Reflective.NotFound $ex) {
193            out = $rh.createExceptionReply ();
194            org.omg.mof.Reflective.NotFoundHelper.write (out, $ex);
195          } catch (org.omg.mof.Reflective.MofError $ex) {
196            out = $rh.createExceptionReply ();
197            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
198          }
199          break;
200        }
201
202        case 9: // org/omg/mof/Reflective/RefAssociation/ref_all_links
203
{
204          org.omg.mof.Reflective.RefObject $result[][] = null;
205          $result = this.ref_all_links ();
206          out = $rh.createReply();
207          org.omg.mof.Reflective.LinkSetHelper.write (out, $result);
208          break;
209        }
210
211        case 10: // org/omg/mof/Reflective/RefAssociation/ref_link_exists
212
{
213          try {
214            org.omg.mof.Reflective.RefObject some_link[] = org.omg.mof.Reflective.LinkHelper.read (in);
215            boolean $result = false;
216            $result = this.ref_link_exists (some_link);
217            out = $rh.createReply();
218            out.write_boolean ($result);
219          } catch (org.omg.mof.Reflective.MofError $ex) {
220            out = $rh.createExceptionReply ();
221            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
222          }
223          break;
224        }
225
226        case 11: // org/omg/mof/Reflective/RefAssociation/ref_query
227
{
228          try {
229            org.omg.mof.Reflective.RefObject query_end = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
230            org.omg.mof.Reflective.RefObject query_object = org.omg.mof.Reflective.RefObjectHelper.read (in);
231            org.omg.mof.Reflective.RefObject $result[] = null;
232            $result = this.ref_query (query_end, query_object);
233            out = $rh.createReply();
234            org.omg.mof.Reflective.RefObjectUListHelper.write (out, $result);
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 12: // org/omg/mof/Reflective/RefAssociation/ref_add_link
243
{
244          try {
245            org.omg.mof.Reflective.RefObject new_link[] = org.omg.mof.Reflective.LinkHelper.read (in);
246            this.ref_add_link (new_link);
247            out = $rh.createReply();
248          } catch (org.omg.mof.Reflective.MofError $ex) {
249            out = $rh.createExceptionReply ();
250            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
251          }
252          break;
253        }
254
255        case 13: // org/omg/mof/Reflective/RefAssociation/ref_add_link_before
256
{
257          try {
258            org.omg.mof.Reflective.RefObject new_link[] = org.omg.mof.Reflective.LinkHelper.read (in);
259            org.omg.mof.Reflective.RefObject position_end = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
260            org.omg.mof.Reflective.RefObject before = org.omg.mof.Reflective.RefObjectHelper.read (in);
261            this.ref_add_link_before (new_link, position_end, before);
262            out = $rh.createReply();
263          } catch (org.omg.mof.Reflective.NotFound $ex) {
264            out = $rh.createExceptionReply ();
265            org.omg.mof.Reflective.NotFoundHelper.write (out, $ex);
266          } catch (org.omg.mof.Reflective.MofError $ex) {
267            out = $rh.createExceptionReply ();
268            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
269          }
270          break;
271        }
272
273        case 14: // org/omg/mof/Reflective/RefAssociation/ref_modify_link
274
{
275          try {
276            org.omg.mof.Reflective.RefObject old_link[] = org.omg.mof.Reflective.LinkHelper.read (in);
277            org.omg.mof.Reflective.RefObject position_end = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
278            org.omg.mof.Reflective.RefObject new_object = org.omg.mof.Reflective.RefObjectHelper.read (in);
279            this.ref_modify_link (old_link, position_end, new_object);
280            out = $rh.createReply();
281          } catch (org.omg.mof.Reflective.NotFound $ex) {
282            out = $rh.createExceptionReply ();
283            org.omg.mof.Reflective.NotFoundHelper.write (out, $ex);
284          } catch (org.omg.mof.Reflective.MofError $ex) {
285            out = $rh.createExceptionReply ();
286            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
287          }
288          break;
289        }
290
291        case 15: // org/omg/mof/Reflective/RefAssociation/ref_remove_link
292
{
293          try {
294            org.omg.mof.Reflective.RefObject old_link[] = org.omg.mof.Reflective.LinkHelper.read (in);
295            this.ref_remove_link (old_link);
296            out = $rh.createReply();
297          } catch (org.omg.mof.Reflective.NotFound $ex) {
298            out = $rh.createExceptionReply ();
299            org.omg.mof.Reflective.NotFoundHelper.write (out, $ex);
300          } catch (org.omg.mof.Reflective.MofError $ex) {
301            out = $rh.createExceptionReply ();
302            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
303          }
304          break;
305        }
306
307        case 16: // org/omg/mof/Reflective/RefBaseObject/ref_mof_id
308
{
309          String JavaDoc $result = null;
310          $result = this.ref_mof_id ();
311          out = $rh.createReply();
312          out.write_string ($result);
313          break;
314        }
315
316        case 17: // org/omg/mof/Reflective/RefBaseObject/ref_meta_object
317
{
318          org.omg.mof.Reflective.RefObject $result = null;
319          $result = this.ref_meta_object ();
320          out = $rh.createReply();
321          org.omg.mof.Reflective.RefObjectHelper.write (out, $result);
322          break;
323        }
324
325        case 18: // org/omg/mof/Reflective/RefBaseObject/ref_itself
326
{
327          org.omg.mof.Reflective.RefBaseObject other_object = org.omg.mof.Reflective.RefBaseObjectHelper.read (in);
328          boolean $result = false;
329          $result = this.ref_itself (other_object);
330          out = $rh.createReply();
331          out.write_boolean ($result);
332          break;
333        }
334
335        case 19: // org/omg/mof/Reflective/RefBaseObject/ref_immediate_package
336
{
337          org.omg.mof.Reflective._RefPackage $result = null;
338          $result = this.ref_immediate_package ();
339          out = $rh.createReply();
340          org.omg.mof.Reflective._RefPackageHelper.write (out, $result);
341          break;
342        }
343
344        case 20: // org/omg/mof/Reflective/RefBaseObject/ref_outermost_package
345
{
346          org.omg.mof.Reflective._RefPackage $result = null;
347          $result = this.ref_outermost_package ();
348          out = $rh.createReply();
349          org.omg.mof.Reflective._RefPackageHelper.write (out, $result);
350          break;
351        }
352
353        case 21: // org/omg/mof/Reflective/RefBaseObject/ref_delete
354
{
355          try {
356            this.ref_delete ();
357            out = $rh.createReply();
358          } catch (org.omg.mof.Reflective.MofError $ex) {
359            out = $rh.createExceptionReply ();
360            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
361          }
362          break;
363        }
364
365        default:
366          throw new org.omg.CORBA.BAD_OPERATION JavaDoc (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
367     }
368
369     return out;
370   } // _invoke
371

372   // Type-specific CORBA::Object operations
373
private static String JavaDoc[] __ids = {
374     "IDL:org/omg/mof/Model/CanRaise:1.0",
375     "IDL:org/omg/mof/Reflective/RefAssociation:1.0",
376     "IDL:org/omg/mof/Reflective/RefBaseObject:1.0"};
377
378   public String JavaDoc[] _all_interfaces (org.omg.PortableServer.POA JavaDoc poa, byte[] objectId)
379   {
380     return (String JavaDoc[])__ids.clone ();
381   }
382
383   public CanRaise _this()
384   {
385     return CanRaiseHelper.narrow(
386     super._this_object());
387   }
388
389   public CanRaise _this(org.omg.CORBA.ORB JavaDoc orb)
390   {
391     return CanRaiseHelper.narrow(
392     super._this_object(orb));
393   }
394
395
396 } // class CanRaisePOA
397
Popular Tags