KickJava   Java API By Example, From Geeks To Geeks.

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


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

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

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

80   public org.omg.mof.Model.ModelElement[] all_of_type_model_element ()
81   {
82     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
83     try {
84        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("_get_all_of_type_model_element", true);
85        $in = _invoke ($out);
86        org.omg.mof.Model.ModelElement $result[] = org.omg.mof.Model.ModelElementSetHelper.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 all_of_type_model_element ();
94     } finally {
95         _releaseReply ($in);
96     }
97   } // all_of_type_model_element
98

99   public boolean ref_is_instance_of (org.omg.mof.Reflective.RefObject some_class, boolean consider_subtypes)
100   {
101     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
102     try {
103        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_is_instance_of", true);
104        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, some_class);
105        $out.write_boolean (consider_subtypes);
106        $in = _invoke ($out);
107        boolean $result = $in.read_boolean ();
108        return $result;
109     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
110        $in = $ex.getInputStream ();
111        String JavaDoc _id = $ex.getId ();
112        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
113     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
114        return ref_is_instance_of (some_class, consider_subtypes);
115     } finally {
116         _releaseReply ($in);
117     }
118   } // ref_is_instance_of
119

120   public org.omg.mof.Reflective.RefObject ref_create_instance (org.omg.CORBA.Any JavaDoc[] args) throws org.omg.mof.Reflective.MofError
121   {
122     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
123     try {
124        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_create_instance", true);
125        org.omg.mof.Reflective.ValueTypeListHelper.write ($out, args);
126        $in = _invoke ($out);
127        org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.RefObjectHelper.read ($in);
128        return $result;
129     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
130        $in = $ex.getInputStream ();
131        String JavaDoc _id = $ex.getId ();
132        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
133           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
134        else
135             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
136     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
137        return ref_create_instance (args);
138     } finally {
139         _releaseReply ($in);
140     }
141   } // ref_create_instance
142

143   public org.omg.mof.Reflective.RefObject[] ref_all_objects (boolean include_subtypes)
144   {
145     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
146     try {
147        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_all_objects", true);
148        $out.write_boolean (include_subtypes);
149        $in = _invoke ($out);
150        org.omg.mof.Reflective.RefObject $result[] = org.omg.mof.Reflective.RefObjectSetHelper.read ($in);
151        return $result;
152     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
153        $in = $ex.getInputStream ();
154        String JavaDoc _id = $ex.getId ();
155        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
156     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
157        return ref_all_objects (include_subtypes);
158     } finally {
159         _releaseReply ($in);
160     }
161   } // ref_all_objects
162

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

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

210   public void ref_unset_value () throws org.omg.mof.Reflective.MofError
211   {
212     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
213     try {
214        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_unset_value", true);
215        $in = _invoke ($out);
216     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
217        $in = $ex.getInputStream ();
218        String JavaDoc _id = $ex.getId ();
219        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
220           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
221        else
222             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
223     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
224        ref_unset_value ();
225     } finally {
226         _releaseReply ($in);
227     }
228   } // ref_unset_value
229

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

252   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
253   {
254     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
255     try {
256        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_add_value_before", true);
257        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature);
258        org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element);
259        org.omg.mof.Reflective._ValueTypeHelper.write ($out, before_element);
260        $in = _invoke ($out);
261     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
262        $in = $ex.getInputStream ();
263        String JavaDoc _id = $ex.getId ();
264        if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0"))
265           throw org.omg.mof.Reflective.NotFoundHelper.read ($in);
266        else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
267           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
268        else
269             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
270     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
271        ref_add_value_before (feature, new_element, before_element);
272     } finally {
273         _releaseReply ($in);
274     }
275   } // ref_add_value_before
276

277   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
278   {
279     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
280     try {
281        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_add_value_at", true);
282        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature);
283        org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element);
284        $out.write_ulong (position);
285        $in = _invoke ($out);
286     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
287        $in = $ex.getInputStream ();
288        String JavaDoc _id = $ex.getId ();
289        if (_id.equals ("IDL:org/omg/mof/Reflective/BadPosition:1.0"))
290           throw org.omg.mof.Reflective.BadPositionHelper.read ($in);
291        else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
292           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
293        else
294             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
295     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
296        ref_add_value_at (feature, new_element, position);
297     } finally {
298         _releaseReply ($in);
299     }
300   } // ref_add_value_at
301

302   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
303   {
304     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
305     try {
306        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_modify_value", true);
307        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature);
308        org.omg.mof.Reflective._ValueTypeHelper.write ($out, old_element);
309        org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element);
310        $in = _invoke ($out);
311     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
312        $in = $ex.getInputStream ();
313        String JavaDoc _id = $ex.getId ();
314        if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0"))
315           throw org.omg.mof.Reflective.NotFoundHelper.read ($in);
316        else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
317           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
318        else
319             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
320     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
321        ref_modify_value (feature, old_element, new_element);
322     } finally {
323         _releaseReply ($in);
324     }
325   } // ref_modify_value
326

327   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
328   {
329     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
330     try {
331        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_modify_value_at", true);
332        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature);
333        org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element);
334        $out.write_ulong (position);
335        $in = _invoke ($out);
336     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
337        $in = $ex.getInputStream ();
338        String JavaDoc _id = $ex.getId ();
339        if (_id.equals ("IDL:org/omg/mof/Reflective/BadPosition:1.0"))
340           throw org.omg.mof.Reflective.BadPositionHelper.read ($in);
341        else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
342           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
343        else
344             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
345     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
346        ref_modify_value_at (feature, new_element, position);
347     } finally {
348         _releaseReply ($in);
349     }
350   } // ref_modify_value_at
351

352   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
353   {
354     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
355     try {
356        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_remove_value", true);
357        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature);
358        org.omg.mof.Reflective._ValueTypeHelper.write ($out, existing_element);
359        $in = _invoke ($out);
360     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
361        $in = $ex.getInputStream ();
362        String JavaDoc _id = $ex.getId ();
363        if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0"))
364           throw org.omg.mof.Reflective.NotFoundHelper.read ($in);
365        else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
366           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
367        else
368             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
369     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
370        ref_remove_value (feature, existing_element);
371     } finally {
372         _releaseReply ($in);
373     }
374   } // ref_remove_value
375

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

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

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

438   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
439   {
440     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
441     try {
442        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_invoke_operation", true);
443        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, requested_operation);
444        org.omg.mof.Reflective.ValueTypeListHelper.write ($out, args.value);
445        $in = _invoke ($out);
446        org.omg.CORBA.Any JavaDoc $result = org.omg.mof.Reflective._ValueTypeHelper.read ($in);
447        args.value = org.omg.mof.Reflective.ValueTypeListHelper.read ($in);
448        return $result;
449     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
450        $in = $ex.getInputStream ();
451        String JavaDoc _id = $ex.getId ();
452        if (_id.equals ("IDL:org/omg/mof/Reflective/OtherException:1.0"))
453           throw org.omg.mof.Reflective.OtherExceptionHelper.read ($in);
454        else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
455           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
456        else
457             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
458     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
459        return ref_invoke_operation (requested_operation, args);
460     } finally {
461         _releaseReply ($in);
462     }
463   } // ref_invoke_operation
464

465   public String JavaDoc ref_mof_id ()
466   {
467     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
468     try {
469        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_mof_id", true);
470        $in = _invoke ($out);
471        String JavaDoc $result = $in.read_string ();
472        return $result;
473     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
474        $in = $ex.getInputStream ();
475        String JavaDoc _id = $ex.getId ();
476        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
477     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
478        return ref_mof_id ();
479     } finally {
480         _releaseReply ($in);
481     }
482   } // ref_mof_id
483

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

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

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

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

561   public void ref_delete () throws org.omg.mof.Reflective.MofError
562   {
563     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
564     try {
565        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_delete", true);
566        $in = _invoke ($out);
567     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
568        $in = $ex.getInputStream ();
569        String JavaDoc _id = $ex.getId ();
570        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
571           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
572        else
573             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
574     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
575        ref_delete ();
576     } finally {
577         _releaseReply ($in);
578     }
579   } // ref_delete
580

581   // Type-specific CORBA::Object operations
582
private static String JavaDoc[] __ids = {
583     "IDL:org/omg/mof/Model/TagClass:1.0",
584     "IDL:org/omg/mof/Model/ModelElementClass:1.0",
585     "IDL:org/omg/mof/Reflective/RefObject:1.0",
586     "IDL:org/omg/mof/Reflective/RefBaseObject:1.0"};
587
588   public String JavaDoc[] _ids ()
589   {
590     return (String JavaDoc[])__ids.clone ();
591   }
592
593   private void readObject (java.io.ObjectInputStream JavaDoc s) throws java.io.IOException JavaDoc
594   {
595      String JavaDoc str = s.readUTF ();
596      String JavaDoc[] args = null;
597      java.util.Properties JavaDoc props = null;
598      org.omg.CORBA.Object JavaDoc obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
599      org.omg.CORBA.portable.Delegate JavaDoc delegate = ((org.omg.CORBA.portable.ObjectImpl JavaDoc) obj)._get_delegate ();
600      _set_delegate (delegate);
601   }
602
603   private void writeObject (java.io.ObjectOutputStream JavaDoc s) throws java.io.IOException JavaDoc
604   {
605      String JavaDoc[] args = null;
606      java.util.Properties JavaDoc props = null;
607      String JavaDoc str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
608      s.writeUTF (str);
609   }
610 } // class _TagClassStub
611
Popular Tags