KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.omg.mof.Model;
2
3
4 /**
5 * org/omg/mof/Model/_CanRaiseStub.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 class _CanRaiseStub extends org.omg.CORBA.portable.ObjectImpl JavaDoc implements org.omg.mof.Model.CanRaise
14 {
15
16   public org.omg.mof.Model.CanRaiseLink[] all_can_raise_Links () throws org.omg.mof.Reflective.MofError
17   {
18     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
19     try {
20        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("all_can_raise_Links", true);
21        $in = _invoke ($out);
22        org.omg.mof.Model.CanRaiseLink $result[] = org.omg.mof.Model.CanRaiseLinkSetHelper.read ($in);
23        return $result;
24     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
25        $in = $ex.getInputStream ();
26        String JavaDoc _id = $ex.getId ();
27        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
28           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
29        else
30             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
31     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
32        return all_can_raise_Links ();
33     } finally {
34         _releaseReply ($in);
35     }
36   } // all_can_raise_Links
37

38   public boolean exists (org.omg.mof.Model.Operation operation, org.omg.mof.Model.MofException except) throws org.omg.mof.Reflective.MofError
39   {
40     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
41     try {
42        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("exists", true);
43        org.omg.mof.Model.OperationHelper.write ($out, operation);
44        org.omg.mof.Model.MofExceptionHelper.write ($out, except);
45        $in = _invoke ($out);
46        boolean $result = $in.read_boolean ();
47        return $result;
48     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
49        $in = $ex.getInputStream ();
50        String JavaDoc _id = $ex.getId ();
51        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
52           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
53        else
54             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
55     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
56        return exists (operation, except);
57     } finally {
58         _releaseReply ($in);
59     }
60   } // exists
61

62   public org.omg.mof.Model.Operation[] operation (org.omg.mof.Model.MofException except) throws org.omg.mof.Reflective.MofError
63   {
64     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
65     try {
66        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("operation", true);
67        org.omg.mof.Model.MofExceptionHelper.write ($out, except);
68        $in = _invoke ($out);
69        org.omg.mof.Model.Operation $result[] = org.omg.mof.Model.OperationBagHelper.read ($in);
70        return $result;
71     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
72        $in = $ex.getInputStream ();
73        String JavaDoc _id = $ex.getId ();
74        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
75           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
76        else
77             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
78     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
79        return operation (except);
80     } finally {
81         _releaseReply ($in);
82     }
83   } // operation
84

85   public org.omg.mof.Model.MofException[] except (org.omg.mof.Model.Operation operation) throws org.omg.mof.Reflective.MofError
86   {
87     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
88     try {
89        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("except", true);
90        org.omg.mof.Model.OperationHelper.write ($out, operation);
91        $in = _invoke ($out);
92        org.omg.mof.Model.MofException $result[] = org.omg.mof.Model.MofExceptionListHelper.read ($in);
93        return $result;
94     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
95        $in = $ex.getInputStream ();
96        String JavaDoc _id = $ex.getId ();
97        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
98           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
99        else
100             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
101     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
102        return except (operation);
103     } finally {
104         _releaseReply ($in);
105     }
106   } // except
107

108   public void add (org.omg.mof.Model.Operation operation, org.omg.mof.Model.MofException except) throws org.omg.mof.Reflective.MofError
109   {
110     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
111     try {
112        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("add", true);
113        org.omg.mof.Model.OperationHelper.write ($out, operation);
114        org.omg.mof.Model.MofExceptionHelper.write ($out, except);
115        $in = _invoke ($out);
116     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
117        $in = $ex.getInputStream ();
118        String JavaDoc _id = $ex.getId ();
119        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
120           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
121        else
122             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
123     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
124        add (operation, except);
125     } finally {
126         _releaseReply ($in);
127     }
128   } // add
129

130   public void add_before_except (org.omg.mof.Model.Operation operation, org.omg.mof.Model.MofException except, org.omg.mof.Model.MofException before) throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError
131   {
132     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
133     try {
134        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("add_before_except", true);
135        org.omg.mof.Model.OperationHelper.write ($out, operation);
136        org.omg.mof.Model.MofExceptionHelper.write ($out, except);
137        org.omg.mof.Model.MofExceptionHelper.write ($out, before);
138        $in = _invoke ($out);
139     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
140        $in = $ex.getInputStream ();
141        String JavaDoc _id = $ex.getId ();
142        if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0"))
143           throw org.omg.mof.Reflective.NotFoundHelper.read ($in);
144        else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
145           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
146        else
147             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
148     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
149        add_before_except (operation, except, before);
150     } finally {
151         _releaseReply ($in);
152     }
153   } // add_before_except
154

155   public void modify_operation (org.omg.mof.Model.Operation operation, org.omg.mof.Model.MofException except, org.omg.mof.Model.Operation new_operation) throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError
156   {
157     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
158     try {
159        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("modify_operation", true);
160        org.omg.mof.Model.OperationHelper.write ($out, operation);
161        org.omg.mof.Model.MofExceptionHelper.write ($out, except);
162        org.omg.mof.Model.OperationHelper.write ($out, new_operation);
163        $in = _invoke ($out);
164     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
165        $in = $ex.getInputStream ();
166        String JavaDoc _id = $ex.getId ();
167        if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0"))
168           throw org.omg.mof.Reflective.NotFoundHelper.read ($in);
169        else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
170           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
171        else
172             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
173     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
174        modify_operation (operation, except, new_operation);
175     } finally {
176         _releaseReply ($in);
177     }
178   } // modify_operation
179

180   public void modify_except (org.omg.mof.Model.Operation operation, org.omg.mof.Model.MofException except, org.omg.mof.Model.MofException new_except) throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError
181   {
182     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
183     try {
184        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("modify_except", true);
185        org.omg.mof.Model.OperationHelper.write ($out, operation);
186        org.omg.mof.Model.MofExceptionHelper.write ($out, except);
187        org.omg.mof.Model.MofExceptionHelper.write ($out, new_except);
188        $in = _invoke ($out);
189     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
190        $in = $ex.getInputStream ();
191        String JavaDoc _id = $ex.getId ();
192        if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0"))
193           throw org.omg.mof.Reflective.NotFoundHelper.read ($in);
194        else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
195           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
196        else
197             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
198     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
199        modify_except (operation, except, new_except);
200     } finally {
201         _releaseReply ($in);
202     }
203   } // modify_except
204

205   public void remove (org.omg.mof.Model.Operation operation, org.omg.mof.Model.MofException except) throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError
206   {
207     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
208     try {
209        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("remove", true);
210        org.omg.mof.Model.OperationHelper.write ($out, operation);
211        org.omg.mof.Model.MofExceptionHelper.write ($out, except);
212        $in = _invoke ($out);
213     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
214        $in = $ex.getInputStream ();
215        String JavaDoc _id = $ex.getId ();
216        if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0"))
217           throw org.omg.mof.Reflective.NotFoundHelper.read ($in);
218        else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
219           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
220        else
221             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
222     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
223        remove (operation, except);
224     } finally {
225         _releaseReply ($in);
226     }
227   } // remove
228

229   public org.omg.mof.Reflective.RefObject[][] ref_all_links ()
230   {
231     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
232     try {
233        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_all_links", true);
234        $in = _invoke ($out);
235        org.omg.mof.Reflective.RefObject $result[][] = org.omg.mof.Reflective.LinkSetHelper.read ($in);
236        return $result;
237     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
238        $in = $ex.getInputStream ();
239        String JavaDoc _id = $ex.getId ();
240        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
241     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
242        return ref_all_links ();
243     } finally {
244         _releaseReply ($in);
245     }
246   } // ref_all_links
247

248   public boolean ref_link_exists (org.omg.mof.Reflective.RefObject[] some_link) throws org.omg.mof.Reflective.MofError
249   {
250     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
251     try {
252        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_link_exists", true);
253        org.omg.mof.Reflective.LinkHelper.write ($out, some_link);
254        $in = _invoke ($out);
255        boolean $result = $in.read_boolean ();
256        return $result;
257     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
258        $in = $ex.getInputStream ();
259        String JavaDoc _id = $ex.getId ();
260        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
261           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
262        else
263             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
264     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
265        return ref_link_exists (some_link);
266     } finally {
267         _releaseReply ($in);
268     }
269   } // ref_link_exists
270

271   public org.omg.mof.Reflective.RefObject[] ref_query (org.omg.mof.Reflective.RefObject query_end, org.omg.mof.Reflective.RefObject query_object) throws org.omg.mof.Reflective.MofError
272   {
273     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
274     try {
275        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_query", true);
276        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, query_end);
277        org.omg.mof.Reflective.RefObjectHelper.write ($out, query_object);
278        $in = _invoke ($out);
279        org.omg.mof.Reflective.RefObject $result[] = org.omg.mof.Reflective.RefObjectUListHelper.read ($in);
280        return $result;
281     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
282        $in = $ex.getInputStream ();
283        String JavaDoc _id = $ex.getId ();
284        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
285           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
286        else
287             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
288     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
289        return ref_query (query_end, query_object);
290     } finally {
291         _releaseReply ($in);
292     }
293   } // ref_query
294

295   public void ref_add_link (org.omg.mof.Reflective.RefObject[] new_link) throws org.omg.mof.Reflective.MofError
296   {
297     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
298     try {
299        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_add_link", true);
300        org.omg.mof.Reflective.LinkHelper.write ($out, new_link);
301        $in = _invoke ($out);
302     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
303        $in = $ex.getInputStream ();
304        String JavaDoc _id = $ex.getId ();
305        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
306           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
307        else
308             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
309     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
310        ref_add_link (new_link);
311     } finally {
312         _releaseReply ($in);
313     }
314   } // ref_add_link
315

316   public void ref_add_link_before (org.omg.mof.Reflective.RefObject[] new_link, org.omg.mof.Reflective.RefObject position_end, org.omg.mof.Reflective.RefObject before) throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError
317   {
318     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
319     try {
320        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_add_link_before", true);
321        org.omg.mof.Reflective.LinkHelper.write ($out, new_link);
322        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, position_end);
323        org.omg.mof.Reflective.RefObjectHelper.write ($out, before);
324        $in = _invoke ($out);
325     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
326        $in = $ex.getInputStream ();
327        String JavaDoc _id = $ex.getId ();
328        if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0"))
329           throw org.omg.mof.Reflective.NotFoundHelper.read ($in);
330        else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
331           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
332        else
333             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
334     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
335        ref_add_link_before (new_link, position_end, before);
336     } finally {
337         _releaseReply ($in);
338     }
339   } // ref_add_link_before
340

341   public void ref_modify_link (org.omg.mof.Reflective.RefObject[] old_link, org.omg.mof.Reflective.RefObject position_end, org.omg.mof.Reflective.RefObject new_object) throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError
342   {
343     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
344     try {
345        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_modify_link", true);
346        org.omg.mof.Reflective.LinkHelper.write ($out, old_link);
347        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, position_end);
348        org.omg.mof.Reflective.RefObjectHelper.write ($out, new_object);
349        $in = _invoke ($out);
350     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
351        $in = $ex.getInputStream ();
352        String JavaDoc _id = $ex.getId ();
353        if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0"))
354           throw org.omg.mof.Reflective.NotFoundHelper.read ($in);
355        else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
356           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
357        else
358             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
359     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
360        ref_modify_link (old_link, position_end, new_object);
361     } finally {
362         _releaseReply ($in);
363     }
364   } // ref_modify_link
365

366   public void ref_remove_link (org.omg.mof.Reflective.RefObject[] old_link) throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError
367   {
368     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
369     try {
370        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_remove_link", true);
371        org.omg.mof.Reflective.LinkHelper.write ($out, old_link);
372        $in = _invoke ($out);
373     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
374        $in = $ex.getInputStream ();
375        String JavaDoc _id = $ex.getId ();
376        if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0"))
377           throw org.omg.mof.Reflective.NotFoundHelper.read ($in);
378        else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
379           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
380        else
381             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
382     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
383        ref_remove_link (old_link);
384     } finally {
385         _releaseReply ($in);
386     }
387   } // ref_remove_link
388

389   public String JavaDoc ref_mof_id ()
390   {
391     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
392     try {
393        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_mof_id", true);
394        $in = _invoke ($out);
395        String JavaDoc $result = $in.read_string ();
396        return $result;
397     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
398        $in = $ex.getInputStream ();
399        String JavaDoc _id = $ex.getId ();
400        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
401     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
402        return ref_mof_id ();
403     } finally {
404         _releaseReply ($in);
405     }
406   } // ref_mof_id
407

408   public org.omg.mof.Reflective.RefObject ref_meta_object ()
409   {
410     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
411     try {
412        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_meta_object", true);
413        $in = _invoke ($out);
414        org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.DesignatorTypeHelper.read ($in);
415        return $result;
416     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
417        $in = $ex.getInputStream ();
418        String JavaDoc _id = $ex.getId ();
419        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
420     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
421        return ref_meta_object ();
422     } finally {
423         _releaseReply ($in);
424     }
425   } // ref_meta_object
426

427   public boolean ref_itself (org.omg.mof.Reflective.RefBaseObject other_object)
428   {
429     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
430     try {
431        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_itself", true);
432        org.omg.mof.Reflective.RefBaseObjectHelper.write ($out, other_object);
433        $in = _invoke ($out);
434        boolean $result = $in.read_boolean ();
435        return $result;
436     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
437        $in = $ex.getInputStream ();
438        String JavaDoc _id = $ex.getId ();
439        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
440     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
441        return ref_itself (other_object);
442     } finally {
443         _releaseReply ($in);
444     }
445   } // ref_itself
446

447   public org.omg.mof.Reflective._RefPackage ref_immediate_package ()
448   {
449     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
450     try {
451        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_immediate_package", true);
452        $in = _invoke ($out);
453        org.omg.mof.Reflective._RefPackage $result = org.omg.mof.Reflective._RefPackageHelper.read ($in);
454        return $result;
455     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
456        $in = $ex.getInputStream ();
457        String JavaDoc _id = $ex.getId ();
458        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
459     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
460        return ref_immediate_package ();
461     } finally {
462         _releaseReply ($in);
463     }
464   } // ref_immediate_package
465

466   public org.omg.mof.Reflective._RefPackage ref_outermost_package ()
467   {
468     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
469     try {
470        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_outermost_package", true);
471        $in = _invoke ($out);
472        org.omg.mof.Reflective._RefPackage $result = org.omg.mof.Reflective._RefPackageHelper.read ($in);
473        return $result;
474     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
475        $in = $ex.getInputStream ();
476        String JavaDoc _id = $ex.getId ();
477        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
478     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
479        return ref_outermost_package ();
480     } finally {
481         _releaseReply ($in);
482     }
483   } // ref_outermost_package
484

485   public void ref_delete () throws org.omg.mof.Reflective.MofError
486   {
487     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
488     try {
489        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_delete", true);
490        $in = _invoke ($out);
491     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
492        $in = $ex.getInputStream ();
493        String JavaDoc _id = $ex.getId ();
494        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
495           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
496        else
497             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
498     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
499        ref_delete ();
500     } finally {
501         _releaseReply ($in);
502     }
503   } // ref_delete
504

505   // Type-specific CORBA::Object operations
506
private static String JavaDoc[] __ids = {
507     "IDL:org/omg/mof/Model/CanRaise:1.0",
508     "IDL:org/omg/mof/Reflective/RefAssociation:1.0",
509     "IDL:org/omg/mof/Reflective/RefBaseObject:1.0"};
510
511   public String JavaDoc[] _ids ()
512   {
513     return (String JavaDoc[])__ids.clone ();
514   }
515
516   private void readObject (java.io.ObjectInputStream JavaDoc s) throws java.io.IOException JavaDoc
517   {
518      String JavaDoc str = s.readUTF ();
519      String JavaDoc[] args = null;
520      java.util.Properties JavaDoc props = null;
521      org.omg.CORBA.Object JavaDoc obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
522      org.omg.CORBA.portable.Delegate JavaDoc delegate = ((org.omg.CORBA.portable.ObjectImpl JavaDoc) obj)._get_delegate ();
523      _set_delegate (delegate);
524   }
525
526   private void writeObject (java.io.ObjectOutputStream JavaDoc s) throws java.io.IOException JavaDoc
527   {
528      String JavaDoc[] args = null;
529      java.util.Properties JavaDoc props = null;
530      String JavaDoc str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
531      s.writeUTF (str);
532   }
533 } // class _CanRaiseStub
534
Popular Tags