KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.omg.mof.Model;
2
3
4 /**
5 * org/omg/mof/Model/_ConstantClassStub.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 _ConstantClassStub extends org.omg.CORBA.portable.ObjectImpl JavaDoc implements org.omg.mof.Model.ConstantClass
14 {
15
16   public org.omg.mof.Model.Constant[] all_of_type_constant ()
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_constant", true);
21        $in = _invoke ($out);
22        org.omg.mof.Model.Constant $result[] = org.omg.mof.Model.ConstantSetHelper.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_constant ();
30     } finally {
31         _releaseReply ($in);
32     }
33   } // all_of_type_constant
34

35   public org.omg.mof.Model.Constant[] all_of_class_constant ()
36   {
37     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
38     try {
39        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("_get_all_of_class_constant", true);
40        $in = _invoke ($out);
41        org.omg.mof.Model.Constant $result[] = org.omg.mof.Model.ConstantSetHelper.read ($in);
42        return $result;
43     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
44        $in = $ex.getInputStream ();
45        String JavaDoc _id = $ex.getId ();
46        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
47     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
48        return all_of_class_constant ();
49     } finally {
50         _releaseReply ($in);
51     }
52   } // all_of_class_constant
53

54   public org.omg.mof.Model.Constant create_constant (String JavaDoc name, String JavaDoc annotation, org.omg.CORBA.Any JavaDoc value) throws org.omg.mof.Reflective.MofError
55   {
56     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
57     try {
58        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("create_constant", true);
59        $out.write_string (name);
60        $out.write_string (annotation);
61        $out.write_any (value);
62        $in = _invoke ($out);
63        org.omg.mof.Model.Constant $result = org.omg.mof.Model.ConstantHelper.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 create_constant (name, annotation, value);
74     } finally {
75         _releaseReply ($in);
76     }
77   } // create_constant
78

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

98   public org.omg.mof.Model.ModelElement[] all_of_type_model_element ()
99   {
100     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
101     try {
102        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("_get_all_of_type_model_element", true);
103        $in = _invoke ($out);
104        org.omg.mof.Model.ModelElement $result[] = org.omg.mof.Model.ModelElementSetHelper.read ($in);
105        return $result;
106     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
107        $in = $ex.getInputStream ();
108        String JavaDoc _id = $ex.getId ();
109        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
110     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
111        return all_of_type_model_element ();
112     } finally {
113         _releaseReply ($in);
114     }
115   } // all_of_type_model_element
116

117   public boolean ref_is_instance_of (org.omg.mof.Reflective.RefObject some_class, boolean consider_subtypes)
118   {
119     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
120     try {
121        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_is_instance_of", true);
122        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, some_class);
123        $out.write_boolean (consider_subtypes);
124        $in = _invoke ($out);
125        boolean $result = $in.read_boolean ();
126        return $result;
127     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
128        $in = $ex.getInputStream ();
129        String JavaDoc _id = $ex.getId ();
130        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
131     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
132        return ref_is_instance_of (some_class, consider_subtypes);
133     } finally {
134         _releaseReply ($in);
135     }
136   } // ref_is_instance_of
137

138   public org.omg.mof.Reflective.RefObject ref_create_instance (org.omg.CORBA.Any JavaDoc[] args) throws org.omg.mof.Reflective.MofError
139   {
140     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
141     try {
142        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_create_instance", true);
143        org.omg.mof.Reflective.ValueTypeListHelper.write ($out, args);
144        $in = _invoke ($out);
145        org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.RefObjectHelper.read ($in);
146        return $result;
147     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
148        $in = $ex.getInputStream ();
149        String JavaDoc _id = $ex.getId ();
150        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
151           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
152        else
153             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
154     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
155        return ref_create_instance (args);
156     } finally {
157         _releaseReply ($in);
158     }
159   } // ref_create_instance
160

161   public org.omg.mof.Reflective.RefObject[] ref_all_objects (boolean include_subtypes)
162   {
163     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
164     try {
165        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_all_objects", true);
166        $out.write_boolean (include_subtypes);
167        $in = _invoke ($out);
168        org.omg.mof.Reflective.RefObject $result[] = org.omg.mof.Reflective.RefObjectSetHelper.read ($in);
169        return $result;
170     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
171        $in = $ex.getInputStream ();
172        String JavaDoc _id = $ex.getId ();
173        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
174     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
175        return ref_all_objects (include_subtypes);
176     } finally {
177         _releaseReply ($in);
178     }
179   } // ref_all_objects
180

181   public void ref_set_value (org.omg.mof.Reflective.RefObject feature, org.omg.CORBA.Any JavaDoc new_value) throws org.omg.mof.Reflective.MofError
182   {
183     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
184     try {
185        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_set_value", true);
186        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature);
187        org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_value);
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/MofError:1.0"))
193           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
194        else
195             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
196     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
197        ref_set_value (feature, new_value);
198     } finally {
199         _releaseReply ($in);
200     }
201   } // ref_set_value
202

203   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
204   {
205     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
206     try {
207        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_value", true);
208        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature);
209        $in = _invoke ($out);
210        org.omg.CORBA.Any JavaDoc $result = org.omg.mof.Reflective._ValueTypeHelper.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        if (_id.equals ("IDL:org/omg/mof/Reflective/NotSet:1.0"))
216           throw org.omg.mof.Reflective.NotSetHelper.read ($in);
217        else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
218           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
219        else
220             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
221     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
222        return ref_value (feature);
223     } finally {
224         _releaseReply ($in);
225     }
226   } // ref_value
227

228   public void ref_unset_value () throws org.omg.mof.Reflective.MofError
229   {
230     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
231     try {
232        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_unset_value", true);
233        $in = _invoke ($out);
234     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
235        $in = $ex.getInputStream ();
236        String JavaDoc _id = $ex.getId ();
237        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
238           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
239        else
240             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
241     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
242        ref_unset_value ();
243     } finally {
244         _releaseReply ($in);
245     }
246   } // ref_unset_value
247

248   public void ref_add_value (org.omg.mof.Reflective.RefObject feature, org.omg.CORBA.Any JavaDoc new_element) 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_add_value", true);
253        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature);
254        org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element);
255        $in = _invoke ($out);
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        ref_add_value (feature, new_element);
265     } finally {
266         _releaseReply ($in);
267     }
268   } // ref_add_value
269

270   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
271   {
272     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
273     try {
274        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_add_value_before", true);
275        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature);
276        org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element);
277        org.omg.mof.Reflective._ValueTypeHelper.write ($out, before_element);
278        $in = _invoke ($out);
279     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
280        $in = $ex.getInputStream ();
281        String JavaDoc _id = $ex.getId ();
282        if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0"))
283           throw org.omg.mof.Reflective.NotFoundHelper.read ($in);
284        else 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        ref_add_value_before (feature, new_element, before_element);
290     } finally {
291         _releaseReply ($in);
292     }
293   } // ref_add_value_before
294

295   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
296   {
297     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
298     try {
299        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_add_value_at", true);
300        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature);
301        org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element);
302        $out.write_ulong (position);
303        $in = _invoke ($out);
304     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
305        $in = $ex.getInputStream ();
306        String JavaDoc _id = $ex.getId ();
307        if (_id.equals ("IDL:org/omg/mof/Reflective/BadPosition:1.0"))
308           throw org.omg.mof.Reflective.BadPositionHelper.read ($in);
309        else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
310           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
311        else
312             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
313     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
314        ref_add_value_at (feature, new_element, position);
315     } finally {
316         _releaseReply ($in);
317     }
318   } // ref_add_value_at
319

320   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
321   {
322     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
323     try {
324        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_modify_value", true);
325        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature);
326        org.omg.mof.Reflective._ValueTypeHelper.write ($out, old_element);
327        org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element);
328        $in = _invoke ($out);
329     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
330        $in = $ex.getInputStream ();
331        String JavaDoc _id = $ex.getId ();
332        if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0"))
333           throw org.omg.mof.Reflective.NotFoundHelper.read ($in);
334        else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
335           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
336        else
337             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
338     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
339        ref_modify_value (feature, old_element, new_element);
340     } finally {
341         _releaseReply ($in);
342     }
343   } // ref_modify_value
344

345   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
346   {
347     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
348     try {
349        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_modify_value_at", true);
350        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature);
351        org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element);
352        $out.write_ulong (position);
353        $in = _invoke ($out);
354     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
355        $in = $ex.getInputStream ();
356        String JavaDoc _id = $ex.getId ();
357        if (_id.equals ("IDL:org/omg/mof/Reflective/BadPosition:1.0"))
358           throw org.omg.mof.Reflective.BadPositionHelper.read ($in);
359        else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
360           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
361        else
362             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
363     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
364        ref_modify_value_at (feature, new_element, position);
365     } finally {
366         _releaseReply ($in);
367     }
368   } // ref_modify_value_at
369

370   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
371   {
372     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
373     try {
374        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_remove_value", true);
375        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature);
376        org.omg.mof.Reflective._ValueTypeHelper.write ($out, existing_element);
377        $in = _invoke ($out);
378     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
379        $in = $ex.getInputStream ();
380        String JavaDoc _id = $ex.getId ();
381        if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0"))
382           throw org.omg.mof.Reflective.NotFoundHelper.read ($in);
383        else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
384           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
385        else
386             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
387     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
388        ref_remove_value (feature, existing_element);
389     } finally {
390         _releaseReply ($in);
391     }
392   } // ref_remove_value
393

394   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
395   {
396     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
397     try {
398        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_remove_value_at", true);
399        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature);
400        $out.write_ulong (position);
401        $in = _invoke ($out);
402     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
403        $in = $ex.getInputStream ();
404        String JavaDoc _id = $ex.getId ();
405        if (_id.equals ("IDL:org/omg/mof/Reflective/BadPosition:1.0"))
406           throw org.omg.mof.Reflective.BadPositionHelper.read ($in);
407        else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
408           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
409        else
410             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
411     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
412        ref_remove_value_at (feature, position);
413     } finally {
414         _releaseReply ($in);
415     }
416   } // ref_remove_value_at
417

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

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

456   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
457   {
458     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
459     try {
460        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_invoke_operation", true);
461        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, requested_operation);
462        org.omg.mof.Reflective.ValueTypeListHelper.write ($out, args.value);
463        $in = _invoke ($out);
464        org.omg.CORBA.Any JavaDoc $result = org.omg.mof.Reflective._ValueTypeHelper.read ($in);
465        args.value = org.omg.mof.Reflective.ValueTypeListHelper.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        if (_id.equals ("IDL:org/omg/mof/Reflective/OtherException:1.0"))
471           throw org.omg.mof.Reflective.OtherExceptionHelper.read ($in);
472        else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
473           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
474        else
475             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
476     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
477        return ref_invoke_operation (requested_operation, args);
478     } finally {
479         _releaseReply ($in);
480     }
481   } // ref_invoke_operation
482

483   public String JavaDoc ref_mof_id ()
484   {
485     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
486     try {
487        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_mof_id", true);
488        $in = _invoke ($out);
489        String JavaDoc $result = $in.read_string ();
490        return $result;
491     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
492        $in = $ex.getInputStream ();
493        String JavaDoc _id = $ex.getId ();
494        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
495     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
496        return ref_mof_id ();
497     } finally {
498         _releaseReply ($in);
499     }
500   } // ref_mof_id
501

502   public org.omg.mof.Reflective.RefObject ref_meta_object ()
503   {
504     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
505     try {
506        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_meta_object", true);
507        $in = _invoke ($out);
508        org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.DesignatorTypeHelper.read ($in);
509        return $result;
510     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
511        $in = $ex.getInputStream ();
512        String JavaDoc _id = $ex.getId ();
513        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
514     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
515        return ref_meta_object ();
516     } finally {
517         _releaseReply ($in);
518     }
519   } // ref_meta_object
520

521   public boolean ref_itself (org.omg.mof.Reflective.RefBaseObject other_object)
522   {
523     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
524     try {
525        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_itself", true);
526        org.omg.mof.Reflective.RefBaseObjectHelper.write ($out, other_object);
527        $in = _invoke ($out);
528        boolean $result = $in.read_boolean ();
529        return $result;
530     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
531        $in = $ex.getInputStream ();
532        String JavaDoc _id = $ex.getId ();
533        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
534     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
535        return ref_itself (other_object);
536     } finally {
537         _releaseReply ($in);
538     }
539   } // ref_itself
540

541   public org.omg.mof.Reflective._RefPackage ref_immediate_package ()
542   {
543     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
544     try {
545        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_immediate_package", true);
546        $in = _invoke ($out);
547        org.omg.mof.Reflective._RefPackage $result = org.omg.mof.Reflective._RefPackageHelper.read ($in);
548        return $result;
549     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
550        $in = $ex.getInputStream ();
551        String JavaDoc _id = $ex.getId ();
552        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
553     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
554        return ref_immediate_package ();
555     } finally {
556         _releaseReply ($in);
557     }
558   } // ref_immediate_package
559

560   public org.omg.mof.Reflective._RefPackage ref_outermost_package ()
561   {
562     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
563     try {
564        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_outermost_package", true);
565        $in = _invoke ($out);
566        org.omg.mof.Reflective._RefPackage $result = org.omg.mof.Reflective._RefPackageHelper.read ($in);
567        return $result;
568     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
569        $in = $ex.getInputStream ();
570        String JavaDoc _id = $ex.getId ();
571        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
572     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
573        return ref_outermost_package ();
574     } finally {
575         _releaseReply ($in);
576     }
577   } // ref_outermost_package
578

579   public void ref_delete () throws org.omg.mof.Reflective.MofError
580   {
581     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
582     try {
583        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_delete", true);
584        $in = _invoke ($out);
585     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
586        $in = $ex.getInputStream ();
587        String JavaDoc _id = $ex.getId ();
588        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
589           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
590        else
591             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
592     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
593        ref_delete ();
594     } finally {
595         _releaseReply ($in);
596     }
597   } // ref_delete
598

599   // Type-specific CORBA::Object operations
600
private static String JavaDoc[] __ids = {
601     "IDL:org/omg/mof/Model/ConstantClass:1.0",
602     "IDL:org/omg/mof/Model/TypedElementClass:1.0",
603     "IDL:org/omg/mof/Model/ModelElementClass:1.0",
604     "IDL:org/omg/mof/Reflective/RefObject:1.0",
605     "IDL:org/omg/mof/Reflective/RefBaseObject:1.0"};
606
607   public String JavaDoc[] _ids ()
608   {
609     return (String JavaDoc[])__ids.clone ();
610   }
611
612   private void readObject (java.io.ObjectInputStream JavaDoc s) throws java.io.IOException JavaDoc
613   {
614      String JavaDoc str = s.readUTF ();
615      String JavaDoc[] args = null;
616      java.util.Properties JavaDoc props = null;
617      org.omg.CORBA.Object JavaDoc obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
618      org.omg.CORBA.portable.Delegate JavaDoc delegate = ((org.omg.CORBA.portable.ObjectImpl JavaDoc) obj)._get_delegate ();
619      _set_delegate (delegate);
620   }
621
622   private void writeObject (java.io.ObjectOutputStream JavaDoc s) throws java.io.IOException JavaDoc
623   {
624      String JavaDoc[] args = null;
625      java.util.Properties JavaDoc props = null;
626      String JavaDoc str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
627      s.writeUTF (str);
628   }
629 } // class _ConstantClassStub
630
Popular Tags