KickJava   Java API By Example, From Geeks To Geeks.

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


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

35   public org.omg.mof.Model.TypeAlias[] all_of_class_type_alias ()
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_type_alias", true);
40        $in = _invoke ($out);
41        org.omg.mof.Model.TypeAlias $result[] = org.omg.mof.Model.TypeAliasSetHelper.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_type_alias ();
49     } finally {
50         _releaseReply ($in);
51     }
52   } // all_of_class_type_alias
53

54   public org.omg.mof.Model.TypeAlias create_type_alias (String JavaDoc name, String JavaDoc annotation) 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_type_alias", true);
59        $out.write_string (name);
60        $out.write_string (annotation);
61        $in = _invoke ($out);
62        org.omg.mof.Model.TypeAlias $result = org.omg.mof.Model.TypeAliasHelper.read ($in);
63        return $result;
64     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
65        $in = $ex.getInputStream ();
66        String JavaDoc _id = $ex.getId ();
67        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
68           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
69        else
70             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
71     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
72        return create_type_alias (name, annotation);
73     } finally {
74         _releaseReply ($in);
75     }
76   } // create_type_alias
77

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

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

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

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

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

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

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

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

247   public void ref_add_value (org.omg.mof.Reflective.RefObject feature, org.omg.CORBA.Any JavaDoc new_element) throws org.omg.mof.Reflective.MofError
248   {
249     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
250     try {
251        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_add_value", true);
252        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature);
253        org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element);
254        $in = _invoke ($out);
255     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
256        $in = $ex.getInputStream ();
257        String JavaDoc _id = $ex.getId ();
258        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_add_value (feature, new_element);
264     } finally {
265         _releaseReply ($in);
266     }
267   } // ref_add_value
268

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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