KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > omg > mof > Reflective > _RefObjectStub


1 package org.omg.mof.Reflective;
2
3
4 /**
5 * org/omg/mof/Reflective/_RefObjectStub.java .
6 * Generated by the IDL-to-Java compiler (portable), version "3.1"
7 * from Reflective.idl
8 * lundi 17 mars 2003 15 h 00 CET
9 */

10
11
12 // end of RefBaseObject interface
13
public class _RefObjectStub extends org.omg.CORBA.portable.ObjectImpl JavaDoc implements org.omg.mof.Reflective.RefObject
14 {
15
16   public boolean ref_is_instance_of (org.omg.mof.Reflective.RefObject some_class, boolean consider_subtypes)
17   {
18     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
19     try {
20        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_is_instance_of", true);
21        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, some_class);
22        $out.write_boolean (consider_subtypes);
23        $in = _invoke ($out);
24        boolean $result = $in.read_boolean ();
25        return $result;
26     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
27        $in = $ex.getInputStream ();
28        String JavaDoc _id = $ex.getId ();
29        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
30     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
31        return ref_is_instance_of (some_class, consider_subtypes);
32     } finally {
33         _releaseReply ($in);
34     }
35   } // ref_is_instance_of
36

37   public org.omg.mof.Reflective.RefObject ref_create_instance (org.omg.CORBA.Any JavaDoc[] args) throws org.omg.mof.Reflective.MofError
38   {
39     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
40     try {
41        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_create_instance", true);
42        org.omg.mof.Reflective.ValueTypeListHelper.write ($out, args);
43        $in = _invoke ($out);
44        org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.RefObjectHelper.read ($in);
45        return $result;
46     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
47        $in = $ex.getInputStream ();
48        String JavaDoc _id = $ex.getId ();
49        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
50           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
51        else
52             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
53     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
54        return ref_create_instance (args);
55     } finally {
56         _releaseReply ($in);
57     }
58   } // ref_create_instance
59

60   public org.omg.mof.Reflective.RefObject[] ref_all_objects (boolean include_subtypes)
61   {
62     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
63     try {
64        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_all_objects", true);
65        $out.write_boolean (include_subtypes);
66        $in = _invoke ($out);
67        org.omg.mof.Reflective.RefObject $result[] = org.omg.mof.Reflective.RefObjectSetHelper.read ($in);
68        return $result;
69     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
70        $in = $ex.getInputStream ();
71        String JavaDoc _id = $ex.getId ();
72        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
73     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
74        return ref_all_objects (include_subtypes);
75     } finally {
76         _releaseReply ($in);
77     }
78   } // ref_all_objects
79

80   public void ref_set_value (org.omg.mof.Reflective.RefObject feature, org.omg.CORBA.Any JavaDoc new_value) throws org.omg.mof.Reflective.MofError
81   {
82     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
83     try {
84        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_set_value", true);
85        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature);
86        org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_value);
87        $in = _invoke ($out);
88     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
89        $in = $ex.getInputStream ();
90        String JavaDoc _id = $ex.getId ();
91        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
92           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
93        else
94             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
95     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
96        ref_set_value (feature, new_value);
97     } finally {
98         _releaseReply ($in);
99     }
100   } // ref_set_value
101

102   public org.omg.CORBA.Any JavaDoc ref_value (org.omg.mof.Reflective.RefObject feature) throws org.omg.mof.Reflective.NotSet, org.omg.mof.Reflective.MofError
103   {
104     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
105     try {
106        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_value", true);
107        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature);
108        $in = _invoke ($out);
109        org.omg.CORBA.Any JavaDoc $result = org.omg.mof.Reflective._ValueTypeHelper.read ($in);
110        return $result;
111     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
112        $in = $ex.getInputStream ();
113        String JavaDoc _id = $ex.getId ();
114        if (_id.equals ("IDL:org/omg/mof/Reflective/NotSet:1.0"))
115           throw org.omg.mof.Reflective.NotSetHelper.read ($in);
116        else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
117           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
118        else
119             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
120     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
121        return ref_value (feature);
122     } finally {
123         _releaseReply ($in);
124     }
125   } // ref_value
126

127   public void ref_unset_value () throws org.omg.mof.Reflective.MofError
128   {
129     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
130     try {
131        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_unset_value", true);
132        $in = _invoke ($out);
133     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
134        $in = $ex.getInputStream ();
135        String JavaDoc _id = $ex.getId ();
136        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
137           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
138        else
139             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
140     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
141        ref_unset_value ();
142     } finally {
143         _releaseReply ($in);
144     }
145   } // ref_unset_value
146

147   public void ref_add_value (org.omg.mof.Reflective.RefObject feature, org.omg.CORBA.Any JavaDoc new_element) throws org.omg.mof.Reflective.MofError
148   {
149     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
150     try {
151        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_add_value", true);
152        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature);
153        org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element);
154        $in = _invoke ($out);
155     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
156        $in = $ex.getInputStream ();
157        String JavaDoc _id = $ex.getId ();
158        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
159           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
160        else
161             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
162     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
163        ref_add_value (feature, new_element);
164     } finally {
165         _releaseReply ($in);
166     }
167   } // ref_add_value
168

169   public void ref_add_value_before (org.omg.mof.Reflective.RefObject feature, org.omg.CORBA.Any JavaDoc new_element, org.omg.CORBA.Any JavaDoc before_element) throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError
170   {
171     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
172     try {
173        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_add_value_before", true);
174        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature);
175        org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element);
176        org.omg.mof.Reflective._ValueTypeHelper.write ($out, before_element);
177        $in = _invoke ($out);
178     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
179        $in = $ex.getInputStream ();
180        String JavaDoc _id = $ex.getId ();
181        if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0"))
182           throw org.omg.mof.Reflective.NotFoundHelper.read ($in);
183        else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
184           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
185        else
186             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
187     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
188        ref_add_value_before (feature, new_element, before_element);
189     } finally {
190         _releaseReply ($in);
191     }
192   } // ref_add_value_before
193

194   public void ref_add_value_at (org.omg.mof.Reflective.RefObject feature, org.omg.CORBA.Any JavaDoc new_element, int position) throws org.omg.mof.Reflective.BadPosition, org.omg.mof.Reflective.MofError
195   {
196     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
197     try {
198        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_add_value_at", true);
199        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature);
200        org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element);
201        $out.write_ulong (position);
202        $in = _invoke ($out);
203     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
204        $in = $ex.getInputStream ();
205        String JavaDoc _id = $ex.getId ();
206        if (_id.equals ("IDL:org/omg/mof/Reflective/BadPosition:1.0"))
207           throw org.omg.mof.Reflective.BadPositionHelper.read ($in);
208        else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
209           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
210        else
211             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
212     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
213        ref_add_value_at (feature, new_element, position);
214     } finally {
215         _releaseReply ($in);
216     }
217   } // ref_add_value_at
218

219   public void ref_modify_value (org.omg.mof.Reflective.RefObject feature, org.omg.CORBA.Any JavaDoc old_element, org.omg.CORBA.Any JavaDoc new_element) throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError
220   {
221     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
222     try {
223        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_modify_value", true);
224        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature);
225        org.omg.mof.Reflective._ValueTypeHelper.write ($out, old_element);
226        org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element);
227        $in = _invoke ($out);
228     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
229        $in = $ex.getInputStream ();
230        String JavaDoc _id = $ex.getId ();
231        if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0"))
232           throw org.omg.mof.Reflective.NotFoundHelper.read ($in);
233        else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
234           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
235        else
236             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
237     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
238        ref_modify_value (feature, old_element, new_element);
239     } finally {
240         _releaseReply ($in);
241     }
242   } // ref_modify_value
243

244   public void ref_modify_value_at (org.omg.mof.Reflective.RefObject feature, org.omg.CORBA.Any JavaDoc new_element, int position) throws org.omg.mof.Reflective.BadPosition, org.omg.mof.Reflective.MofError
245   {
246     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
247     try {
248        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_modify_value_at", true);
249        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature);
250        org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element);
251        $out.write_ulong (position);
252        $in = _invoke ($out);
253     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
254        $in = $ex.getInputStream ();
255        String JavaDoc _id = $ex.getId ();
256        if (_id.equals ("IDL:org/omg/mof/Reflective/BadPosition:1.0"))
257           throw org.omg.mof.Reflective.BadPositionHelper.read ($in);
258        else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
259           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
260        else
261             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
262     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
263        ref_modify_value_at (feature, new_element, position);
264     } finally {
265         _releaseReply ($in);
266     }
267   } // ref_modify_value_at
268

269   public void ref_remove_value (org.omg.mof.Reflective.RefObject feature, org.omg.CORBA.Any JavaDoc existing_element) throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError
270   {
271     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
272     try {
273        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_remove_value", true);
274        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature);
275        org.omg.mof.Reflective._ValueTypeHelper.write ($out, existing_element);
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/NotFound:1.0"))
281           throw org.omg.mof.Reflective.NotFoundHelper.read ($in);
282        else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
283           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
284        else
285             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
286     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
287        ref_remove_value (feature, existing_element);
288     } finally {
289         _releaseReply ($in);
290     }
291   } // ref_remove_value
292

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

317   public org.omg.mof.Reflective.RefObject ref_immediate_composite ()
318   {
319     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
320     try {
321        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_immediate_composite", true);
322        $in = _invoke ($out);
323        org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.RefObjectHelper.read ($in);
324        return $result;
325     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
326        $in = $ex.getInputStream ();
327        String JavaDoc _id = $ex.getId ();
328        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
329     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
330        return ref_immediate_composite ();
331     } finally {
332         _releaseReply ($in);
333     }
334   } // ref_immediate_composite
335

336   public org.omg.mof.Reflective.RefObject ref_outermost_composite ()
337   {
338     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
339     try {
340        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_outermost_composite", true);
341        $in = _invoke ($out);
342        org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.RefObjectHelper.read ($in);
343        return $result;
344     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
345        $in = $ex.getInputStream ();
346        String JavaDoc _id = $ex.getId ();
347        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
348     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
349        return ref_outermost_composite ();
350     } finally {
351         _releaseReply ($in);
352     }
353   } // ref_outermost_composite
354

355   public org.omg.CORBA.Any JavaDoc ref_invoke_operation (org.omg.mof.Reflective.RefObject requested_operation, org.omg.mof.Reflective.ValueTypeListHolder args) throws org.omg.mof.Reflective.OtherException, org.omg.mof.Reflective.MofError
356   {
357     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
358     try {
359        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_invoke_operation", true);
360        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, requested_operation);
361        org.omg.mof.Reflective.ValueTypeListHelper.write ($out, args.value);
362        $in = _invoke ($out);
363        org.omg.CORBA.Any JavaDoc $result = org.omg.mof.Reflective._ValueTypeHelper.read ($in);
364        args.value = org.omg.mof.Reflective.ValueTypeListHelper.read ($in);
365        return $result;
366     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
367        $in = $ex.getInputStream ();
368        String JavaDoc _id = $ex.getId ();
369        if (_id.equals ("IDL:org/omg/mof/Reflective/OtherException:1.0"))
370           throw org.omg.mof.Reflective.OtherExceptionHelper.read ($in);
371        else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
372           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
373        else
374             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
375     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
376        return ref_invoke_operation (requested_operation, args);
377     } finally {
378         _releaseReply ($in);
379     }
380   } // ref_invoke_operation
381

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

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

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

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

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

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

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