KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.omg.mof.Model;
2
3
4 /**
5 * org/omg/mof/Model/_RefersToStub.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 _RefersToStub extends org.omg.CORBA.portable.ObjectImpl JavaDoc implements org.omg.mof.Model.RefersTo
14 {
15
16   public org.omg.mof.Model.RefersToLink[] all_refers_to_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_refers_to_Links", true);
21        $in = _invoke ($out);
22        org.omg.mof.Model.RefersToLink $result[] = org.omg.mof.Model.RefersToLinkSetHelper.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_refers_to_Links ();
33     } finally {
34         _releaseReply ($in);
35     }
36   } // all_refers_to_Links
37

38   public boolean exists (org.omg.mof.Model.AssociationEnd referent, org.omg.mof.Model.Reference referenced_end) 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.AssociationEndHelper.write ($out, referent);
44        org.omg.mof.Model.ReferenceHelper.write ($out, referenced_end);
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 (referent, referenced_end);
57     } finally {
58         _releaseReply ($in);
59     }
60   } // exists
61

62   public org.omg.mof.Model.AssociationEnd[] referent (org.omg.mof.Model.Reference referenced_end) 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 ("referent", true);
67        org.omg.mof.Model.ReferenceHelper.write ($out, referenced_end);
68        $in = _invoke ($out);
69        org.omg.mof.Model.AssociationEnd $result[] = org.omg.mof.Model.AssociationEndBagHelper.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 referent (referenced_end);
80     } finally {
81         _releaseReply ($in);
82     }
83   } // referent
84

85   public org.omg.mof.Model.Reference referenced_end (org.omg.mof.Model.AssociationEnd referent) 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 ("referenced_end", true);
90        org.omg.mof.Model.AssociationEndHelper.write ($out, referent);
91        $in = _invoke ($out);
92        org.omg.mof.Model.Reference $result = org.omg.mof.Model.ReferenceHelper.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 referenced_end (referent);
103     } finally {
104         _releaseReply ($in);
105     }
106   } // referenced_end
107

108   public void add (org.omg.mof.Model.AssociationEnd referent, org.omg.mof.Model.Reference referenced_end) 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.AssociationEndHelper.write ($out, referent);
114        org.omg.mof.Model.ReferenceHelper.write ($out, referenced_end);
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 (referent, referenced_end);
125     } finally {
126         _releaseReply ($in);
127     }
128   } // add
129

130   public void modify_referent (org.omg.mof.Model.AssociationEnd referent, org.omg.mof.Model.Reference referenced_end, org.omg.mof.Model.AssociationEnd new_referent) 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 ("modify_referent", true);
135        org.omg.mof.Model.AssociationEndHelper.write ($out, referent);
136        org.omg.mof.Model.ReferenceHelper.write ($out, referenced_end);
137        org.omg.mof.Model.AssociationEndHelper.write ($out, new_referent);
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        modify_referent (referent, referenced_end, new_referent);
150     } finally {
151         _releaseReply ($in);
152     }
153   } // modify_referent
154

155   public void modify_referenced_end (org.omg.mof.Model.AssociationEnd referent, org.omg.mof.Model.Reference referenced_end, org.omg.mof.Model.Reference new_referenced_end) 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_referenced_end", true);
160        org.omg.mof.Model.AssociationEndHelper.write ($out, referent);
161        org.omg.mof.Model.ReferenceHelper.write ($out, referenced_end);
162        org.omg.mof.Model.ReferenceHelper.write ($out, new_referenced_end);
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_referenced_end (referent, referenced_end, new_referenced_end);
175     } finally {
176         _releaseReply ($in);
177     }
178   } // modify_referenced_end
179

180   public void remove (org.omg.mof.Model.AssociationEnd referent, org.omg.mof.Model.Reference referenced_end) 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 ("remove", true);
185        org.omg.mof.Model.AssociationEndHelper.write ($out, referent);
186        org.omg.mof.Model.ReferenceHelper.write ($out, referenced_end);
187        $in = _invoke ($out);
188     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
189        $in = $ex.getInputStream ();
190        String JavaDoc _id = $ex.getId ();
191        if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0"))
192           throw org.omg.mof.Reflective.NotFoundHelper.read ($in);
193        else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
194           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
195        else
196             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
197     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
198        remove (referent, referenced_end);
199     } finally {
200         _releaseReply ($in);
201     }
202   } // remove
203

204   public org.omg.mof.Reflective.RefObject[][] ref_all_links ()
205   {
206     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
207     try {
208        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_all_links", true);
209        $in = _invoke ($out);
210        org.omg.mof.Reflective.RefObject $result[][] = org.omg.mof.Reflective.LinkSetHelper.read ($in);
211        return $result;
212     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
213        $in = $ex.getInputStream ();
214        String JavaDoc _id = $ex.getId ();
215        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
216     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
217        return ref_all_links ();
218     } finally {
219         _releaseReply ($in);
220     }
221   } // ref_all_links
222

223   public boolean ref_link_exists (org.omg.mof.Reflective.RefObject[] some_link) throws org.omg.mof.Reflective.MofError
224   {
225     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
226     try {
227        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_link_exists", true);
228        org.omg.mof.Reflective.LinkHelper.write ($out, some_link);
229        $in = _invoke ($out);
230        boolean $result = $in.read_boolean ();
231        return $result;
232     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
233        $in = $ex.getInputStream ();
234        String JavaDoc _id = $ex.getId ();
235        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
236           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
237        else
238             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
239     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
240        return ref_link_exists (some_link);
241     } finally {
242         _releaseReply ($in);
243     }
244   } // ref_link_exists
245

246   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
247   {
248     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
249     try {
250        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_query", true);
251        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, query_end);
252        org.omg.mof.Reflective.RefObjectHelper.write ($out, query_object);
253        $in = _invoke ($out);
254        org.omg.mof.Reflective.RefObject $result[] = org.omg.mof.Reflective.RefObjectUListHelper.read ($in);
255        return $result;
256     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
257        $in = $ex.getInputStream ();
258        String JavaDoc _id = $ex.getId ();
259        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
260           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
261        else
262             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
263     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
264        return ref_query (query_end, query_object);
265     } finally {
266         _releaseReply ($in);
267     }
268   } // ref_query
269

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

291   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
292   {
293     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
294     try {
295        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_add_link_before", true);
296        org.omg.mof.Reflective.LinkHelper.write ($out, new_link);
297        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, position_end);
298        org.omg.mof.Reflective.RefObjectHelper.write ($out, before);
299        $in = _invoke ($out);
300     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
301        $in = $ex.getInputStream ();
302        String JavaDoc _id = $ex.getId ();
303        if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0"))
304           throw org.omg.mof.Reflective.NotFoundHelper.read ($in);
305        else 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_before (new_link, position_end, before);
311     } finally {
312         _releaseReply ($in);
313     }
314   } // ref_add_link_before
315

316   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
317   {
318     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
319     try {
320        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_modify_link", true);
321        org.omg.mof.Reflective.LinkHelper.write ($out, old_link);
322        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, position_end);
323        org.omg.mof.Reflective.RefObjectHelper.write ($out, new_object);
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_modify_link (old_link, position_end, new_object);
336     } finally {
337         _releaseReply ($in);
338     }
339   } // ref_modify_link
340

341   public void ref_remove_link (org.omg.mof.Reflective.RefObject[] old_link) 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_remove_link", true);
346        org.omg.mof.Reflective.LinkHelper.write ($out, old_link);
347        $in = _invoke ($out);
348     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
349        $in = $ex.getInputStream ();
350        String JavaDoc _id = $ex.getId ();
351        if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0"))
352           throw org.omg.mof.Reflective.NotFoundHelper.read ($in);
353        else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
354           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
355        else
356             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
357     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
358        ref_remove_link (old_link);
359     } finally {
360         _releaseReply ($in);
361     }
362   } // ref_remove_link
363

364   public String JavaDoc ref_mof_id ()
365   {
366     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
367     try {
368        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_mof_id", true);
369        $in = _invoke ($out);
370        String JavaDoc $result = $in.read_string ();
371        return $result;
372     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
373        $in = $ex.getInputStream ();
374        String JavaDoc _id = $ex.getId ();
375        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
376     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
377        return ref_mof_id ();
378     } finally {
379         _releaseReply ($in);
380     }
381   } // ref_mof_id
382

383   public org.omg.mof.Reflective.RefObject ref_meta_object ()
384   {
385     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
386     try {
387        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_meta_object", true);
388        $in = _invoke ($out);
389        org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.DesignatorTypeHelper.read ($in);
390        return $result;
391     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
392        $in = $ex.getInputStream ();
393        String JavaDoc _id = $ex.getId ();
394        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
395     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
396        return ref_meta_object ();
397     } finally {
398         _releaseReply ($in);
399     }
400   } // ref_meta_object
401

402   public boolean ref_itself (org.omg.mof.Reflective.RefBaseObject other_object)
403   {
404     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
405     try {
406        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_itself", true);
407        org.omg.mof.Reflective.RefBaseObjectHelper.write ($out, other_object);
408        $in = _invoke ($out);
409        boolean $result = $in.read_boolean ();
410        return $result;
411     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
412        $in = $ex.getInputStream ();
413        String JavaDoc _id = $ex.getId ();
414        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
415     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
416        return ref_itself (other_object);
417     } finally {
418         _releaseReply ($in);
419     }
420   } // ref_itself
421

422   public org.omg.mof.Reflective._RefPackage ref_immediate_package ()
423   {
424     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
425     try {
426        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_immediate_package", true);
427        $in = _invoke ($out);
428        org.omg.mof.Reflective._RefPackage $result = org.omg.mof.Reflective._RefPackageHelper.read ($in);
429        return $result;
430     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
431        $in = $ex.getInputStream ();
432        String JavaDoc _id = $ex.getId ();
433        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
434     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
435        return ref_immediate_package ();
436     } finally {
437         _releaseReply ($in);
438     }
439   } // ref_immediate_package
440

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

460   public void ref_delete () throws org.omg.mof.Reflective.MofError
461   {
462     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
463     try {
464        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_delete", true);
465        $in = _invoke ($out);
466     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
467        $in = $ex.getInputStream ();
468        String JavaDoc _id = $ex.getId ();
469        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
470           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
471        else
472             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
473     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
474        ref_delete ();
475     } finally {
476         _releaseReply ($in);
477     }
478   } // ref_delete
479

480   // Type-specific CORBA::Object operations
481
private static String JavaDoc[] __ids = {
482     "IDL:org/omg/mof/Model/RefersTo:1.0",
483     "IDL:org/omg/mof/Reflective/RefAssociation:1.0",
484     "IDL:org/omg/mof/Reflective/RefBaseObject:1.0"};
485
486   public String JavaDoc[] _ids ()
487   {
488     return (String JavaDoc[])__ids.clone ();
489   }
490
491   private void readObject (java.io.ObjectInputStream JavaDoc s) throws java.io.IOException JavaDoc
492   {
493      String JavaDoc str = s.readUTF ();
494      String JavaDoc[] args = null;
495      java.util.Properties JavaDoc props = null;
496      org.omg.CORBA.Object JavaDoc obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
497      org.omg.CORBA.portable.Delegate JavaDoc delegate = ((org.omg.CORBA.portable.ObjectImpl JavaDoc) obj)._get_delegate ();
498      _set_delegate (delegate);
499   }
500
501   private void writeObject (java.io.ObjectOutputStream JavaDoc s) throws java.io.IOException JavaDoc
502   {
503      String JavaDoc[] args = null;
504      java.util.Properties JavaDoc props = null;
505      String JavaDoc str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
506      s.writeUTF (str);
507   }
508 } // class _RefersToStub
509
Popular Tags