KickJava   Java API By Example, From Geeks To Geeks.

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


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

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

54   public org.omg.mof.Model.DataType create_data_type (String JavaDoc name, String JavaDoc annotation, org.omg.mof.Model.VisibilityKind visibility, boolean is_leaf, boolean is_root, boolean is_abstract, org.omg.CORBA.TypeCode JavaDoc type_code) 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_data_type", true);
59        $out.write_string (name);
60        $out.write_string (annotation);
61        org.omg.mof.Model.VisibilityKindHelper.write ($out, visibility);
62        $out.write_boolean (is_leaf);
63        $out.write_boolean (is_root);
64        $out.write_boolean (is_abstract);
65        $out.write_TypeCode (type_code);
66        $in = _invoke ($out);
67        org.omg.mof.Model.DataType $result = org.omg.mof.Model.DataTypeHelper.read ($in);
68        return $result;
69     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
70        $in = $ex.getInputStream ();
71        String JavaDoc _id = $ex.getId ();
72        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
73           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
74        else
75             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
76     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
77        return create_data_type (name, annotation, visibility, is_leaf, is_root, is_abstract, type_code);
78     } finally {
79         _releaseReply ($in);
80     }
81   } // create_data_type
82

83   public org.omg.mof.Model.Classifier[] all_of_type_classifier ()
84   {
85     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
86     try {
87        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("_get_all_of_type_classifier", true);
88        $in = _invoke ($out);
89        org.omg.mof.Model.Classifier $result[] = org.omg.mof.Model.ClassifierSetHelper.read ($in);
90        return $result;
91     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
92        $in = $ex.getInputStream ();
93        String JavaDoc _id = $ex.getId ();
94        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
95     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
96        return all_of_type_classifier ();
97     } finally {
98         _releaseReply ($in);
99     }
100   } // all_of_type_classifier
101

102   public org.omg.mof.Model.GeneralizableElement[] all_of_type_generalizable_element ()
103   {
104     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
105     try {
106        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("_get_all_of_type_generalizable_element", true);
107        $in = _invoke ($out);
108        org.omg.mof.Model.GeneralizableElement $result[] = org.omg.mof.Model.GeneralizableElementSetHelper.read ($in);
109        return $result;
110     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
111        $in = $ex.getInputStream ();
112        String JavaDoc _id = $ex.getId ();
113        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
114     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
115        return all_of_type_generalizable_element ();
116     } finally {
117         _releaseReply ($in);
118     }
119   } // all_of_type_generalizable_element
120

121   public org.omg.mof.Model.Namespace[] all_of_type_namespace ()
122   {
123     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
124     try {
125        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("_get_all_of_type_namespace", true);
126        $in = _invoke ($out);
127        org.omg.mof.Model.Namespace $result[] = org.omg.mof.Model.NamespaceSetHelper.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        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
133     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
134        return all_of_type_namespace ();
135     } finally {
136         _releaseReply ($in);
137     }
138   } // all_of_type_namespace
139

140   public org.omg.mof.Model.ModelElement[] all_of_type_model_element ()
141   {
142     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
143     try {
144        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("_get_all_of_type_model_element", true);
145        $in = _invoke ($out);
146        org.omg.mof.Model.ModelElement $result[] = org.omg.mof.Model.ModelElementSetHelper.read ($in);
147        return $result;
148     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
149        $in = $ex.getInputStream ();
150        String JavaDoc _id = $ex.getId ();
151        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
152     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
153        return all_of_type_model_element ();
154     } finally {
155         _releaseReply ($in);
156     }
157   } // all_of_type_model_element
158

159   public boolean ref_is_instance_of (org.omg.mof.Reflective.RefObject some_class, boolean consider_subtypes)
160   {
161     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
162     try {
163        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_is_instance_of", true);
164        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, some_class);
165        $out.write_boolean (consider_subtypes);
166        $in = _invoke ($out);
167        boolean $result = $in.read_boolean ();
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_is_instance_of (some_class, consider_subtypes);
175     } finally {
176         _releaseReply ($in);
177     }
178   } // ref_is_instance_of
179

180   public org.omg.mof.Reflective.RefObject ref_create_instance (org.omg.CORBA.Any JavaDoc[] args) 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_create_instance", true);
185        org.omg.mof.Reflective.ValueTypeListHelper.write ($out, args);
186        $in = _invoke ($out);
187        org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.RefObjectHelper.read ($in);
188        return $result;
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        return ref_create_instance (args);
198     } finally {
199         _releaseReply ($in);
200     }
201   } // ref_create_instance
202

203   public org.omg.mof.Reflective.RefObject[] ref_all_objects (boolean include_subtypes)
204   {
205     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
206     try {
207        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_all_objects", true);
208        $out.write_boolean (include_subtypes);
209        $in = _invoke ($out);
210        org.omg.mof.Reflective.RefObject $result[] = org.omg.mof.Reflective.RefObjectSetHelper.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        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
216     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
217        return ref_all_objects (include_subtypes);
218     } finally {
219         _releaseReply ($in);
220     }
221   } // ref_all_objects
222

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

245   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
246   {
247     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
248     try {
249        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_value", true);
250        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature);
251        $in = _invoke ($out);
252        org.omg.CORBA.Any JavaDoc $result = org.omg.mof.Reflective._ValueTypeHelper.read ($in);
253        return $result;
254     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
255        $in = $ex.getInputStream ();
256        String JavaDoc _id = $ex.getId ();
257        if (_id.equals ("IDL:org/omg/mof/Reflective/NotSet:1.0"))
258           throw org.omg.mof.Reflective.NotSetHelper.read ($in);
259        else 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        return ref_value (feature);
265     } finally {
266         _releaseReply ($in);
267     }
268   } // ref_value
269

270   public void ref_unset_value () throws 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_unset_value", true);
275        $in = _invoke ($out);
276     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
277        $in = $ex.getInputStream ();
278        String JavaDoc _id = $ex.getId ();
279        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
280           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
281        else
282             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
283     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
284        ref_unset_value ();
285     } finally {
286         _releaseReply ($in);
287     }
288   } // ref_unset_value
289

290   public void ref_add_value (org.omg.mof.Reflective.RefObject feature, org.omg.CORBA.Any JavaDoc new_element) throws org.omg.mof.Reflective.MofError
291   {
292     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
293     try {
294        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_add_value", true);
295        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature);
296        org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element);
297        $in = _invoke ($out);
298     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
299        $in = $ex.getInputStream ();
300        String JavaDoc _id = $ex.getId ();
301        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_add_value (feature, new_element);
307     } finally {
308         _releaseReply ($in);
309     }
310   } // ref_add_value
311

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

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

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

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

412   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
413   {
414     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
415     try {
416        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_remove_value", true);
417        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature);
418        org.omg.mof.Reflective._ValueTypeHelper.write ($out, existing_element);
419        $in = _invoke ($out);
420     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
421        $in = $ex.getInputStream ();
422        String JavaDoc _id = $ex.getId ();
423        if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0"))
424           throw org.omg.mof.Reflective.NotFoundHelper.read ($in);
425        else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
426           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
427        else
428             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
429     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
430        ref_remove_value (feature, existing_element);
431     } finally {
432         _releaseReply ($in);
433     }
434   } // ref_remove_value
435

436   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
437   {
438     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
439     try {
440        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_remove_value_at", true);
441        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature);
442        $out.write_ulong (position);
443        $in = _invoke ($out);
444     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
445        $in = $ex.getInputStream ();
446        String JavaDoc _id = $ex.getId ();
447        if (_id.equals ("IDL:org/omg/mof/Reflective/BadPosition:1.0"))
448           throw org.omg.mof.Reflective.BadPositionHelper.read ($in);
449        else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
450           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
451        else
452             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
453     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
454        ref_remove_value_at (feature, position);
455     } finally {
456         _releaseReply ($in);
457     }
458   } // ref_remove_value_at
459

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

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

498   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
499   {
500     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
501     try {
502        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_invoke_operation", true);
503        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, requested_operation);
504        org.omg.mof.Reflective.ValueTypeListHelper.write ($out, args.value);
505        $in = _invoke ($out);
506        org.omg.CORBA.Any JavaDoc $result = org.omg.mof.Reflective._ValueTypeHelper.read ($in);
507        args.value = org.omg.mof.Reflective.ValueTypeListHelper.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        if (_id.equals ("IDL:org/omg/mof/Reflective/OtherException:1.0"))
513           throw org.omg.mof.Reflective.OtherExceptionHelper.read ($in);
514        else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
515           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
516        else
517             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
518     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
519        return ref_invoke_operation (requested_operation, args);
520     } finally {
521         _releaseReply ($in);
522     }
523   } // ref_invoke_operation
524

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

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

563   public boolean ref_itself (org.omg.mof.Reflective.RefBaseObject other_object)
564   {
565     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
566     try {
567        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_itself", true);
568        org.omg.mof.Reflective.RefBaseObjectHelper.write ($out, other_object);
569        $in = _invoke ($out);
570        boolean $result = $in.read_boolean ();
571        return $result;
572     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
573        $in = $ex.getInputStream ();
574        String JavaDoc _id = $ex.getId ();
575        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
576     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
577        return ref_itself (other_object);
578     } finally {
579         _releaseReply ($in);
580     }
581   } // ref_itself
582

583   public org.omg.mof.Reflective._RefPackage ref_immediate_package ()
584   {
585     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
586     try {
587        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_immediate_package", true);
588        $in = _invoke ($out);
589        org.omg.mof.Reflective._RefPackage $result = org.omg.mof.Reflective._RefPackageHelper.read ($in);
590        return $result;
591     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
592        $in = $ex.getInputStream ();
593        String JavaDoc _id = $ex.getId ();
594        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
595     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
596        return ref_immediate_package ();
597     } finally {
598         _releaseReply ($in);
599     }
600   } // ref_immediate_package
601

602   public org.omg.mof.Reflective._RefPackage ref_outermost_package ()
603   {
604     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
605     try {
606        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_outermost_package", true);
607        $in = _invoke ($out);
608        org.omg.mof.Reflective._RefPackage $result = org.omg.mof.Reflective._RefPackageHelper.read ($in);
609        return $result;
610     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
611        $in = $ex.getInputStream ();
612        String JavaDoc _id = $ex.getId ();
613        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
614     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
615        return ref_outermost_package ();
616     } finally {
617         _releaseReply ($in);
618     }
619   } // ref_outermost_package
620

621   public void ref_delete () throws org.omg.mof.Reflective.MofError
622   {
623     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
624     try {
625        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_delete", true);
626        $in = _invoke ($out);
627     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
628        $in = $ex.getInputStream ();
629        String JavaDoc _id = $ex.getId ();
630        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
631           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
632        else
633             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
634     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
635        ref_delete ();
636     } finally {
637         _releaseReply ($in);
638     }
639   } // ref_delete
640

641   // Type-specific CORBA::Object operations
642
private static String JavaDoc[] __ids = {
643     "IDL:org/omg/mof/Model/DataTypeClass:1.0",
644     "IDL:org/omg/mof/Model/ClassifierClass:1.0",
645     "IDL:org/omg/mof/Model/GeneralizableElementClass:1.0",
646     "IDL:org/omg/mof/Model/NamespaceClass:1.0",
647     "IDL:org/omg/mof/Model/ModelElementClass:1.0",
648     "IDL:org/omg/mof/Reflective/RefObject:1.0",
649     "IDL:org/omg/mof/Reflective/RefBaseObject:1.0"};
650
651   public String JavaDoc[] _ids ()
652   {
653     return (String JavaDoc[])__ids.clone ();
654   }
655
656   private void readObject (java.io.ObjectInputStream JavaDoc s) throws java.io.IOException JavaDoc
657   {
658      String JavaDoc str = s.readUTF ();
659      String JavaDoc[] args = null;
660      java.util.Properties JavaDoc props = null;
661      org.omg.CORBA.Object JavaDoc obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
662      org.omg.CORBA.portable.Delegate JavaDoc delegate = ((org.omg.CORBA.portable.ObjectImpl JavaDoc) obj)._get_delegate ();
663      _set_delegate (delegate);
664   }
665
666   private void writeObject (java.io.ObjectOutputStream JavaDoc s) throws java.io.IOException JavaDoc
667   {
668      String JavaDoc[] args = null;
669      java.util.Properties JavaDoc props = null;
670      String JavaDoc str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
671      s.writeUTF (str);
672   }
673 } // class _DataTypeClassStub
674
Popular Tags