KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.omg.mof.Model;
2
3
4 /**
5 * org/omg/mof/Model/_ModelElementClassStub.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 _ModelElementClassStub extends org.omg.CORBA.portable.ObjectImpl JavaDoc implements org.omg.mof.Model.ModelElementClass
14 {
15
16   public org.omg.mof.Model.ModelElement[] all_of_type_model_element ()
17   {
18     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
19     try {
20        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("_get_all_of_type_model_element", true);
21        $in = _invoke ($out);
22        org.omg.mof.Model.ModelElement $result[] = org.omg.mof.Model.ModelElementSetHelper.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        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
28     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
29        return all_of_type_model_element ();
30     } finally {
31         _releaseReply ($in);
32     }
33   } // all_of_type_model_element
34

35   public boolean ref_is_instance_of (org.omg.mof.Reflective.RefObject some_class, boolean consider_subtypes)
36   {
37     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
38     try {
39        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_is_instance_of", true);
40        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, some_class);
41        $out.write_boolean (consider_subtypes);
42        $in = _invoke ($out);
43        boolean $result = $in.read_boolean ();
44        return $result;
45     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
46        $in = $ex.getInputStream ();
47        String JavaDoc _id = $ex.getId ();
48        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
49     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
50        return ref_is_instance_of (some_class, consider_subtypes);
51     } finally {
52         _releaseReply ($in);
53     }
54   } // ref_is_instance_of
55

56   public org.omg.mof.Reflective.RefObject ref_create_instance (org.omg.CORBA.Any JavaDoc[] args) throws org.omg.mof.Reflective.MofError
57   {
58     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
59     try {
60        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_create_instance", true);
61        org.omg.mof.Reflective.ValueTypeListHelper.write ($out, args);
62        $in = _invoke ($out);
63        org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.RefObjectHelper.read ($in);
64        return $result;
65     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
66        $in = $ex.getInputStream ();
67        String JavaDoc _id = $ex.getId ();
68        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
69           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
70        else
71             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
72     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
73        return ref_create_instance (args);
74     } finally {
75         _releaseReply ($in);
76     }
77   } // ref_create_instance
78

79   public org.omg.mof.Reflective.RefObject[] ref_all_objects (boolean include_subtypes)
80   {
81     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
82     try {
83        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_all_objects", true);
84        $out.write_boolean (include_subtypes);
85        $in = _invoke ($out);
86        org.omg.mof.Reflective.RefObject $result[] = org.omg.mof.Reflective.RefObjectSetHelper.read ($in);
87        return $result;
88     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
89        $in = $ex.getInputStream ();
90        String JavaDoc _id = $ex.getId ();
91        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
92     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
93        return ref_all_objects (include_subtypes);
94     } finally {
95         _releaseReply ($in);
96     }
97   } // ref_all_objects
98

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

121   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
122   {
123     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
124     try {
125        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_value", true);
126        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature);
127        $in = _invoke ($out);
128        org.omg.CORBA.Any JavaDoc $result = org.omg.mof.Reflective._ValueTypeHelper.read ($in);
129        return $result;
130     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
131        $in = $ex.getInputStream ();
132        String JavaDoc _id = $ex.getId ();
133        if (_id.equals ("IDL:org/omg/mof/Reflective/NotSet:1.0"))
134           throw org.omg.mof.Reflective.NotSetHelper.read ($in);
135        else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
136           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
137        else
138             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
139     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
140        return ref_value (feature);
141     } finally {
142         _releaseReply ($in);
143     }
144   } // ref_value
145

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

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

188   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
189   {
190     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
191     try {
192        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_add_value_before", true);
193        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature);
194        org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element);
195        org.omg.mof.Reflective._ValueTypeHelper.write ($out, before_element);
196        $in = _invoke ($out);
197     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
198        $in = $ex.getInputStream ();
199        String JavaDoc _id = $ex.getId ();
200        if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0"))
201           throw org.omg.mof.Reflective.NotFoundHelper.read ($in);
202        else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
203           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
204        else
205             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
206     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
207        ref_add_value_before (feature, new_element, before_element);
208     } finally {
209         _releaseReply ($in);
210     }
211   } // ref_add_value_before
212

213   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
214   {
215     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
216     try {
217        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_add_value_at", true);
218        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature);
219        org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element);
220        $out.write_ulong (position);
221        $in = _invoke ($out);
222     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
223        $in = $ex.getInputStream ();
224        String JavaDoc _id = $ex.getId ();
225        if (_id.equals ("IDL:org/omg/mof/Reflective/BadPosition:1.0"))
226           throw org.omg.mof.Reflective.BadPositionHelper.read ($in);
227        else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
228           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
229        else
230             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
231     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
232        ref_add_value_at (feature, new_element, position);
233     } finally {
234         _releaseReply ($in);
235     }
236   } // ref_add_value_at
237

238   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
239   {
240     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
241     try {
242        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_modify_value", true);
243        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature);
244        org.omg.mof.Reflective._ValueTypeHelper.write ($out, old_element);
245        org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element);
246        $in = _invoke ($out);
247     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
248        $in = $ex.getInputStream ();
249        String JavaDoc _id = $ex.getId ();
250        if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0"))
251           throw org.omg.mof.Reflective.NotFoundHelper.read ($in);
252        else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
253           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
254        else
255             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
256     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
257        ref_modify_value (feature, old_element, new_element);
258     } finally {
259         _releaseReply ($in);
260     }
261   } // ref_modify_value
262

263   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
264   {
265     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
266     try {
267        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_modify_value_at", true);
268        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature);
269        org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element);
270        $out.write_ulong (position);
271        $in = _invoke ($out);
272     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
273        $in = $ex.getInputStream ();
274        String JavaDoc _id = $ex.getId ();
275        if (_id.equals ("IDL:org/omg/mof/Reflective/BadPosition:1.0"))
276           throw org.omg.mof.Reflective.BadPositionHelper.read ($in);
277        else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
278           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
279        else
280             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
281     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
282        ref_modify_value_at (feature, new_element, position);
283     } finally {
284         _releaseReply ($in);
285     }
286   } // ref_modify_value_at
287

288   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
289   {
290     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
291     try {
292        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_remove_value", true);
293        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature);
294        org.omg.mof.Reflective._ValueTypeHelper.write ($out, existing_element);
295        $in = _invoke ($out);
296     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
297        $in = $ex.getInputStream ();
298        String JavaDoc _id = $ex.getId ();
299        if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0"))
300           throw org.omg.mof.Reflective.NotFoundHelper.read ($in);
301        else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
302           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
303        else
304             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
305     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
306        ref_remove_value (feature, existing_element);
307     } finally {
308         _releaseReply ($in);
309     }
310   } // ref_remove_value
311

312   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
313   {
314     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
315     try {
316        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_remove_value_at", true);
317        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature);
318        $out.write_ulong (position);
319        $in = _invoke ($out);
320     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
321        $in = $ex.getInputStream ();
322        String JavaDoc _id = $ex.getId ();
323        if (_id.equals ("IDL:org/omg/mof/Reflective/BadPosition:1.0"))
324           throw org.omg.mof.Reflective.BadPositionHelper.read ($in);
325        else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
326           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
327        else
328             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
329     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
330        ref_remove_value_at (feature, position);
331     } finally {
332         _releaseReply ($in);
333     }
334   } // ref_remove_value_at
335

336   public org.omg.mof.Reflective.RefObject ref_immediate_composite ()
337   {
338     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
339     try {
340        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_immediate_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_immediate_composite ();
350     } finally {
351         _releaseReply ($in);
352     }
353   } // ref_immediate_composite
354

355   public org.omg.mof.Reflective.RefObject ref_outermost_composite ()
356   {
357     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
358     try {
359        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_outermost_composite", true);
360        $in = _invoke ($out);
361        org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.RefObjectHelper.read ($in);
362        return $result;
363     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
364        $in = $ex.getInputStream ();
365        String JavaDoc _id = $ex.getId ();
366        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
367     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
368        return ref_outermost_composite ();
369     } finally {
370         _releaseReply ($in);
371     }
372   } // ref_outermost_composite
373

374   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
375   {
376     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
377     try {
378        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_invoke_operation", true);
379        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, requested_operation);
380        org.omg.mof.Reflective.ValueTypeListHelper.write ($out, args.value);
381        $in = _invoke ($out);
382        org.omg.CORBA.Any JavaDoc $result = org.omg.mof.Reflective._ValueTypeHelper.read ($in);
383        args.value = org.omg.mof.Reflective.ValueTypeListHelper.read ($in);
384        return $result;
385     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
386        $in = $ex.getInputStream ();
387        String JavaDoc _id = $ex.getId ();
388        if (_id.equals ("IDL:org/omg/mof/Reflective/OtherException:1.0"))
389           throw org.omg.mof.Reflective.OtherExceptionHelper.read ($in);
390        else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
391           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
392        else
393             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
394     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
395        return ref_invoke_operation (requested_operation, args);
396     } finally {
397         _releaseReply ($in);
398     }
399   } // ref_invoke_operation
400

401   public String JavaDoc ref_mof_id ()
402   {
403     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
404     try {
405        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_mof_id", true);
406        $in = _invoke ($out);
407        String JavaDoc $result = $in.read_string ();
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_mof_id ();
415     } finally {
416         _releaseReply ($in);
417     }
418   } // ref_mof_id
419

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

439   public boolean ref_itself (org.omg.mof.Reflective.RefBaseObject other_object)
440   {
441     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
442     try {
443        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_itself", true);
444        org.omg.mof.Reflective.RefBaseObjectHelper.write ($out, other_object);
445        $in = _invoke ($out);
446        boolean $result = $in.read_boolean ();
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_itself (other_object);
454     } finally {
455         _releaseReply ($in);
456     }
457   } // ref_itself
458

459   public org.omg.mof.Reflective._RefPackage ref_immediate_package ()
460   {
461     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
462     try {
463        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_immediate_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_immediate_package ();
473     } finally {
474         _releaseReply ($in);
475     }
476   } // ref_immediate_package
477

478   public org.omg.mof.Reflective._RefPackage ref_outermost_package ()
479   {
480     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
481     try {
482        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_outermost_package", true);
483        $in = _invoke ($out);
484        org.omg.mof.Reflective._RefPackage $result = org.omg.mof.Reflective._RefPackageHelper.read ($in);
485        return $result;
486     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
487        $in = $ex.getInputStream ();
488        String JavaDoc _id = $ex.getId ();
489        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
490     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
491        return ref_outermost_package ();
492     } finally {
493         _releaseReply ($in);
494     }
495   } // ref_outermost_package
496

497   public void ref_delete () throws org.omg.mof.Reflective.MofError
498   {
499     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
500     try {
501        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_delete", true);
502        $in = _invoke ($out);
503     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
504        $in = $ex.getInputStream ();
505        String JavaDoc _id = $ex.getId ();
506        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
507           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
508        else
509             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
510     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
511        ref_delete ();
512     } finally {
513         _releaseReply ($in);
514     }
515   } // ref_delete
516

517   // Type-specific CORBA::Object operations
518
private static String JavaDoc[] __ids = {
519     "IDL:org/omg/mof/Model/ModelElementClass:1.0",
520     "IDL:org/omg/mof/Reflective/RefObject:1.0",
521     "IDL:org/omg/mof/Reflective/RefBaseObject:1.0"};
522
523   public String JavaDoc[] _ids ()
524   {
525     return (String JavaDoc[])__ids.clone ();
526   }
527
528   private void readObject (java.io.ObjectInputStream JavaDoc s) throws java.io.IOException JavaDoc
529   {
530      String JavaDoc str = s.readUTF ();
531      String JavaDoc[] args = null;
532      java.util.Properties JavaDoc props = null;
533      org.omg.CORBA.Object JavaDoc obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
534      org.omg.CORBA.portable.Delegate JavaDoc delegate = ((org.omg.CORBA.portable.ObjectImpl JavaDoc) obj)._get_delegate ();
535      _set_delegate (delegate);
536   }
537
538   private void writeObject (java.io.ObjectOutputStream JavaDoc s) throws java.io.IOException JavaDoc
539   {
540      String JavaDoc[] args = null;
541      java.util.Properties JavaDoc props = null;
542      String JavaDoc str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
543      s.writeUTF (str);
544   }
545 } // class _ModelElementClassStub
546
Popular Tags