KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.omg.mof.Model;
2
3
4 /**
5 * org/omg/mof/Model/_ImportStub.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 // end of interface ImportClass
13
public class _ImportStub extends org.omg.CORBA.portable.ObjectImpl JavaDoc implements org.omg.mof.Model.Import
14 {
15
16
17   //
18
public org.omg.mof.Model.VisibilityKind visibility () throws org.omg.mof.Reflective.MofError
19   {
20     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
21     try {
22        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("visibility", true);
23        $in = _invoke ($out);
24        org.omg.mof.Model.VisibilityKind $result = org.omg.mof.Model.VisibilityKindHelper.read ($in);
25        return $result;
26     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
27        $in = $ex.getInputStream ();
28        String JavaDoc _id = $ex.getId ();
29        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
30           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
31        else
32             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
33     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
34        return visibility ();
35     } finally {
36         _releaseReply ($in);
37     }
38   } // visibility
39

40   public void set_visibility (org.omg.mof.Model.VisibilityKind new_value) throws org.omg.mof.Reflective.MofError
41   {
42     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
43     try {
44        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("set_visibility", true);
45        org.omg.mof.Model.VisibilityKindHelper.write ($out, new_value);
46        $in = _invoke ($out);
47     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
48        $in = $ex.getInputStream ();
49        String JavaDoc _id = $ex.getId ();
50        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
51           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
52        else
53             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
54     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
55        set_visibility (new_value);
56     } finally {
57         _releaseReply ($in);
58     }
59   } // set_visibility
60

61
62   //
63
public boolean is_clustered () throws org.omg.mof.Reflective.MofError
64   {
65     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
66     try {
67        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("is_clustered", true);
68        $in = _invoke ($out);
69        boolean $result = $in.read_boolean ();
70        return $result;
71     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
72        $in = $ex.getInputStream ();
73        String JavaDoc _id = $ex.getId ();
74        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
75           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
76        else
77             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
78     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
79        return is_clustered ();
80     } finally {
81         _releaseReply ($in);
82     }
83   } // is_clustered
84

85   public void set_is_clustered (boolean new_value) throws org.omg.mof.Reflective.MofError
86   {
87     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
88     try {
89        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("set_is_clustered", true);
90        $out.write_boolean (new_value);
91        $in = _invoke ($out);
92     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
93        $in = $ex.getInputStream ();
94        String JavaDoc _id = $ex.getId ();
95        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
96           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
97        else
98             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
99     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
100        set_is_clustered (new_value);
101     } finally {
102         _releaseReply ($in);
103     }
104   } // set_is_clustered
105

106
107   //
108
public org.omg.mof.Model.Namespace imported_namespace () throws org.omg.mof.Reflective.MofError
109   {
110     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
111     try {
112        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("imported_namespace", true);
113        $in = _invoke ($out);
114        org.omg.mof.Model.Namespace $result = org.omg.mof.Model.NamespaceHelper.read ($in);
115        return $result;
116     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
117        $in = $ex.getInputStream ();
118        String JavaDoc _id = $ex.getId ();
119        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
120           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
121        else
122             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
123     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
124        return imported_namespace ();
125     } finally {
126         _releaseReply ($in);
127     }
128   } // imported_namespace
129

130   public void set_imported_namespace (org.omg.mof.Model.Namespace new_value) throws org.omg.mof.Reflective.MofError
131   {
132     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
133     try {
134        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("set_imported_namespace", true);
135        org.omg.mof.Model.NamespaceHelper.write ($out, new_value);
136        $in = _invoke ($out);
137     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
138        $in = $ex.getInputStream ();
139        String JavaDoc _id = $ex.getId ();
140        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
141           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
142        else
143             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
144     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
145        set_imported_namespace (new_value);
146     } finally {
147         _releaseReply ($in);
148     }
149   } // set_imported_namespace
150

151   public org.omg.mof.Model.Import[] all_of_type_import ()
152   {
153     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
154     try {
155        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("_get_all_of_type_import", true);
156        $in = _invoke ($out);
157        org.omg.mof.Model.Import $result[] = org.omg.mof.Model.ImportSetHelper.read ($in);
158        return $result;
159     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
160        $in = $ex.getInputStream ();
161        String JavaDoc _id = $ex.getId ();
162        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
163     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
164        return all_of_type_import ();
165     } finally {
166         _releaseReply ($in);
167     }
168   } // all_of_type_import
169

170   public org.omg.mof.Model.Import[] all_of_class_import ()
171   {
172     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
173     try {
174        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("_get_all_of_class_import", true);
175        $in = _invoke ($out);
176        org.omg.mof.Model.Import $result[] = org.omg.mof.Model.ImportSetHelper.read ($in);
177        return $result;
178     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
179        $in = $ex.getInputStream ();
180        String JavaDoc _id = $ex.getId ();
181        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
182     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
183        return all_of_class_import ();
184     } finally {
185         _releaseReply ($in);
186     }
187   } // all_of_class_import
188

189   public org.omg.mof.Model.Import create_import (String JavaDoc name, String JavaDoc annotation, org.omg.mof.Model.VisibilityKind visibility, boolean is_clustered) throws org.omg.mof.Reflective.MofError
190   {
191     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
192     try {
193        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("create_import", true);
194        $out.write_string (name);
195        $out.write_string (annotation);
196        org.omg.mof.Model.VisibilityKindHelper.write ($out, visibility);
197        $out.write_boolean (is_clustered);
198        $in = _invoke ($out);
199        org.omg.mof.Model.Import $result = org.omg.mof.Model.ImportHelper.read ($in);
200        return $result;
201     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
202        $in = $ex.getInputStream ();
203        String JavaDoc _id = $ex.getId ();
204        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
205           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
206        else
207             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
208     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
209        return create_import (name, annotation, visibility, is_clustered);
210     } finally {
211         _releaseReply ($in);
212     }
213   } // create_import
214

215   public org.omg.mof.Model.ModelElement[] all_of_type_model_element ()
216   {
217     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
218     try {
219        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("_get_all_of_type_model_element", true);
220        $in = _invoke ($out);
221        org.omg.mof.Model.ModelElement $result[] = org.omg.mof.Model.ModelElementSetHelper.read ($in);
222        return $result;
223     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
224        $in = $ex.getInputStream ();
225        String JavaDoc _id = $ex.getId ();
226        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
227     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
228        return all_of_type_model_element ();
229     } finally {
230         _releaseReply ($in);
231     }
232   } // all_of_type_model_element
233

234   public boolean ref_is_instance_of (org.omg.mof.Reflective.RefObject some_class, boolean consider_subtypes)
235   {
236     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
237     try {
238        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_is_instance_of", true);
239        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, some_class);
240        $out.write_boolean (consider_subtypes);
241        $in = _invoke ($out);
242        boolean $result = $in.read_boolean ();
243        return $result;
244     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
245        $in = $ex.getInputStream ();
246        String JavaDoc _id = $ex.getId ();
247        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
248     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
249        return ref_is_instance_of (some_class, consider_subtypes);
250     } finally {
251         _releaseReply ($in);
252     }
253   } // ref_is_instance_of
254

255   public org.omg.mof.Reflective.RefObject ref_create_instance (org.omg.CORBA.Any JavaDoc[] args) throws org.omg.mof.Reflective.MofError
256   {
257     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
258     try {
259        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_create_instance", true);
260        org.omg.mof.Reflective.ValueTypeListHelper.write ($out, args);
261        $in = _invoke ($out);
262        org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.RefObjectHelper.read ($in);
263        return $result;
264     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
265        $in = $ex.getInputStream ();
266        String JavaDoc _id = $ex.getId ();
267        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
268           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
269        else
270             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
271     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
272        return ref_create_instance (args);
273     } finally {
274         _releaseReply ($in);
275     }
276   } // ref_create_instance
277

278   public org.omg.mof.Reflective.RefObject[] ref_all_objects (boolean include_subtypes)
279   {
280     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
281     try {
282        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_all_objects", true);
283        $out.write_boolean (include_subtypes);
284        $in = _invoke ($out);
285        org.omg.mof.Reflective.RefObject $result[] = org.omg.mof.Reflective.RefObjectSetHelper.read ($in);
286        return $result;
287     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
288        $in = $ex.getInputStream ();
289        String JavaDoc _id = $ex.getId ();
290        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
291     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
292        return ref_all_objects (include_subtypes);
293     } finally {
294         _releaseReply ($in);
295     }
296   } // ref_all_objects
297

298   public void ref_set_value (org.omg.mof.Reflective.RefObject feature, org.omg.CORBA.Any JavaDoc new_value) throws org.omg.mof.Reflective.MofError
299   {
300     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
301     try {
302        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_set_value", true);
303        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature);
304        org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_value);
305        $in = _invoke ($out);
306     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
307        $in = $ex.getInputStream ();
308        String JavaDoc _id = $ex.getId ();
309        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
310           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
311        else
312             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
313     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
314        ref_set_value (feature, new_value);
315     } finally {
316         _releaseReply ($in);
317     }
318   } // ref_set_value
319

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

345   public void ref_unset_value () throws org.omg.mof.Reflective.MofError
346   {
347     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
348     try {
349        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_unset_value", true);
350        $in = _invoke ($out);
351     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
352        $in = $ex.getInputStream ();
353        String JavaDoc _id = $ex.getId ();
354        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
355           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
356        else
357             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
358     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
359        ref_unset_value ();
360     } finally {
361         _releaseReply ($in);
362     }
363   } // ref_unset_value
364

365   public void ref_add_value (org.omg.mof.Reflective.RefObject feature, org.omg.CORBA.Any JavaDoc new_element) throws org.omg.mof.Reflective.MofError
366   {
367     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
368     try {
369        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_add_value", true);
370        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature);
371        org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element);
372        $in = _invoke ($out);
373     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
374        $in = $ex.getInputStream ();
375        String JavaDoc _id = $ex.getId ();
376        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_add_value (feature, new_element);
382     } finally {
383         _releaseReply ($in);
384     }
385   } // ref_add_value
386

387   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
388   {
389     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
390     try {
391        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_add_value_before", true);
392        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature);
393        org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element);
394        org.omg.mof.Reflective._ValueTypeHelper.write ($out, before_element);
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/NotFound:1.0"))
400           throw org.omg.mof.Reflective.NotFoundHelper.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_add_value_before (feature, new_element, before_element);
407     } finally {
408         _releaseReply ($in);
409     }
410   } // ref_add_value_before
411

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

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

462   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
463   {
464     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
465     try {
466        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_modify_value_at", true);
467        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature);
468        org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element);
469        $out.write_ulong (position);
470        $in = _invoke ($out);
471     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
472        $in = $ex.getInputStream ();
473        String JavaDoc _id = $ex.getId ();
474        if (_id.equals ("IDL:org/omg/mof/Reflective/BadPosition:1.0"))
475           throw org.omg.mof.Reflective.BadPositionHelper.read ($in);
476        else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
477           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
478        else
479             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
480     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
481        ref_modify_value_at (feature, new_element, position);
482     } finally {
483         _releaseReply ($in);
484     }
485   } // ref_modify_value_at
486

487   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
488   {
489     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
490     try {
491        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_remove_value", true);
492        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature);
493        org.omg.mof.Reflective._ValueTypeHelper.write ($out, existing_element);
494        $in = _invoke ($out);
495     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
496        $in = $ex.getInputStream ();
497        String JavaDoc _id = $ex.getId ();
498        if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0"))
499           throw org.omg.mof.Reflective.NotFoundHelper.read ($in);
500        else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
501           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
502        else
503             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
504     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
505        ref_remove_value (feature, existing_element);
506     } finally {
507         _releaseReply ($in);
508     }
509   } // ref_remove_value
510

511   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
512   {
513     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
514     try {
515        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_remove_value_at", true);
516        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature);
517        $out.write_ulong (position);
518        $in = _invoke ($out);
519     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
520        $in = $ex.getInputStream ();
521        String JavaDoc _id = $ex.getId ();
522        if (_id.equals ("IDL:org/omg/mof/Reflective/BadPosition:1.0"))
523           throw org.omg.mof.Reflective.BadPositionHelper.read ($in);
524        else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
525           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
526        else
527             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
528     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
529        ref_remove_value_at (feature, position);
530     } finally {
531         _releaseReply ($in);
532     }
533   } // ref_remove_value_at
534

535   public org.omg.mof.Reflective.RefObject ref_immediate_composite ()
536   {
537     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
538     try {
539        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_immediate_composite", true);
540        $in = _invoke ($out);
541        org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.RefObjectHelper.read ($in);
542        return $result;
543     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
544        $in = $ex.getInputStream ();
545        String JavaDoc _id = $ex.getId ();
546        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
547     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
548        return ref_immediate_composite ();
549     } finally {
550         _releaseReply ($in);
551     }
552   } // ref_immediate_composite
553

554   public org.omg.mof.Reflective.RefObject ref_outermost_composite ()
555   {
556     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
557     try {
558        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_outermost_composite", true);
559        $in = _invoke ($out);
560        org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.RefObjectHelper.read ($in);
561        return $result;
562     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
563        $in = $ex.getInputStream ();
564        String JavaDoc _id = $ex.getId ();
565        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
566     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
567        return ref_outermost_composite ();
568     } finally {
569         _releaseReply ($in);
570     }
571   } // ref_outermost_composite
572

573   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
574   {
575     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
576     try {
577        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_invoke_operation", true);
578        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, requested_operation);
579        org.omg.mof.Reflective.ValueTypeListHelper.write ($out, args.value);
580        $in = _invoke ($out);
581        org.omg.CORBA.Any JavaDoc $result = org.omg.mof.Reflective._ValueTypeHelper.read ($in);
582        args.value = org.omg.mof.Reflective.ValueTypeListHelper.read ($in);
583        return $result;
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/OtherException:1.0"))
588           throw org.omg.mof.Reflective.OtherExceptionHelper.read ($in);
589        else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
590           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
591        else
592             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
593     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
594        return ref_invoke_operation (requested_operation, args);
595     } finally {
596         _releaseReply ($in);
597     }
598   } // ref_invoke_operation
599

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

619   public org.omg.mof.Reflective.RefObject ref_meta_object ()
620   {
621     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
622     try {
623        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_meta_object", true);
624        $in = _invoke ($out);
625        org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.DesignatorTypeHelper.read ($in);
626        return $result;
627     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
628        $in = $ex.getInputStream ();
629        String JavaDoc _id = $ex.getId ();
630        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
631     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
632        return ref_meta_object ();
633     } finally {
634         _releaseReply ($in);
635     }
636   } // ref_meta_object
637

638   public boolean ref_itself (org.omg.mof.Reflective.RefBaseObject other_object)
639   {
640     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
641     try {
642        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_itself", true);
643        org.omg.mof.Reflective.RefBaseObjectHelper.write ($out, other_object);
644        $in = _invoke ($out);
645        boolean $result = $in.read_boolean ();
646        return $result;
647     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
648        $in = $ex.getInputStream ();
649        String JavaDoc _id = $ex.getId ();
650        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
651     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
652        return ref_itself (other_object);
653     } finally {
654         _releaseReply ($in);
655     }
656   } // ref_itself
657

658   public org.omg.mof.Reflective._RefPackage ref_immediate_package ()
659   {
660     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
661     try {
662        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_immediate_package", true);
663        $in = _invoke ($out);
664        org.omg.mof.Reflective._RefPackage $result = org.omg.mof.Reflective._RefPackageHelper.read ($in);
665        return $result;
666     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
667        $in = $ex.getInputStream ();
668        String JavaDoc _id = $ex.getId ();
669        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
670     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
671        return ref_immediate_package ();
672     } finally {
673         _releaseReply ($in);
674     }
675   } // ref_immediate_package
676

677   public org.omg.mof.Reflective._RefPackage ref_outermost_package ()
678   {
679     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
680     try {
681        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_outermost_package", true);
682        $in = _invoke ($out);
683        org.omg.mof.Reflective._RefPackage $result = org.omg.mof.Reflective._RefPackageHelper.read ($in);
684        return $result;
685     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
686        $in = $ex.getInputStream ();
687        String JavaDoc _id = $ex.getId ();
688        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
689     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
690        return ref_outermost_package ();
691     } finally {
692         _releaseReply ($in);
693     }
694   } // ref_outermost_package
695

696   public void ref_delete () throws org.omg.mof.Reflective.MofError
697   {
698     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
699     try {
700        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_delete", true);
701        $in = _invoke ($out);
702     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
703        $in = $ex.getInputStream ();
704        String JavaDoc _id = $ex.getId ();
705        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
706           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
707        else
708             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
709     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
710        ref_delete ();
711     } finally {
712         _releaseReply ($in);
713     }
714   } // ref_delete
715

716
717   //
718
public String JavaDoc name () throws org.omg.mof.Reflective.MofError
719   {
720     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
721     try {
722        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("name", true);
723        $in = _invoke ($out);
724        String JavaDoc $result = $in.read_string ();
725        return $result;
726     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
727        $in = $ex.getInputStream ();
728        String JavaDoc _id = $ex.getId ();
729        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
730           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
731        else
732             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
733     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
734        return name ();
735     } finally {
736         _releaseReply ($in);
737     }
738   } // name
739

740   public void set_name (String JavaDoc new_value) throws org.omg.mof.Reflective.MofError
741   {
742     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
743     try {
744        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("set_name", true);
745        $out.write_string (new_value);
746        $in = _invoke ($out);
747     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
748        $in = $ex.getInputStream ();
749        String JavaDoc _id = $ex.getId ();
750        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
751           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
752        else
753             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
754     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
755        set_name (new_value);
756     } finally {
757         _releaseReply ($in);
758     }
759   } // set_name
760

761
762   //
763
public String JavaDoc annotation () throws org.omg.mof.Reflective.MofError
764   {
765     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
766     try {
767        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("annotation", true);
768        $in = _invoke ($out);
769        String JavaDoc $result = $in.read_string ();
770        return $result;
771     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
772        $in = $ex.getInputStream ();
773        String JavaDoc _id = $ex.getId ();
774        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
775           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
776        else
777             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
778     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
779        return annotation ();
780     } finally {
781         _releaseReply ($in);
782     }
783   } // annotation
784

785   public void set_annotation (String JavaDoc new_value) throws org.omg.mof.Reflective.MofError
786   {
787     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
788     try {
789        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("set_annotation", true);
790        $out.write_string (new_value);
791        $in = _invoke ($out);
792     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
793        $in = $ex.getInputStream ();
794        String JavaDoc _id = $ex.getId ();
795        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
796           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
797        else
798             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
799     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
800        set_annotation (new_value);
801     } finally {
802         _releaseReply ($in);
803     }
804   } // set_annotation
805

806
807   //
808
public String JavaDoc[] qualified_name () throws org.omg.mof.Reflective.MofError
809   {
810     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
811     try {
812        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("qualified_name", true);
813        $in = _invoke ($out);
814        String JavaDoc $result[] = org.omg.mof.Model.StringListHelper.read ($in);
815        return $result;
816     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
817        $in = $ex.getInputStream ();
818        String JavaDoc _id = $ex.getId ();
819        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
820           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
821        else
822             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
823     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
824        return qualified_name ();
825     } finally {
826         _releaseReply ($in);
827     }
828   } // qualified_name
829

830
831   //
832
public org.omg.mof.Model.Namespace container () throws org.omg.mof.Reflective.NotSet, org.omg.mof.Reflective.MofError
833   {
834     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
835     try {
836        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("container", true);
837        $in = _invoke ($out);
838        org.omg.mof.Model.Namespace $result = org.omg.mof.Model.NamespaceHelper.read ($in);
839        return $result;
840     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
841        $in = $ex.getInputStream ();
842        String JavaDoc _id = $ex.getId ();
843        if (_id.equals ("IDL:org/omg/mof/Reflective/NotSet:1.0"))
844           throw org.omg.mof.Reflective.NotSetHelper.read ($in);
845        else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
846           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
847        else
848             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
849     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
850        return container ();
851     } finally {
852         _releaseReply ($in);
853     }
854   } // container
855

856   public void set_container (org.omg.mof.Model.Namespace new_value) throws org.omg.mof.Reflective.MofError
857   {
858     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
859     try {
860        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("set_container", true);
861        org.omg.mof.Model.NamespaceHelper.write ($out, new_value);
862        $in = _invoke ($out);
863     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
864        $in = $ex.getInputStream ();
865        String JavaDoc _id = $ex.getId ();
866        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
867           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
868        else
869             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
870     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
871        set_container (new_value);
872     } finally {
873         _releaseReply ($in);
874     }
875   } // set_container
876

877   public void unset_container () throws org.omg.mof.Reflective.MofError
878   {
879     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
880     try {
881        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("unset_container", true);
882        $in = _invoke ($out);
883     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
884        $in = $ex.getInputStream ();
885        String JavaDoc _id = $ex.getId ();
886        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
887           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
888        else
889             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
890     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
891        unset_container ();
892     } finally {
893         _releaseReply ($in);
894     }
895   } // unset_container
896

897
898   //
899
public org.omg.mof.Model.ModelElement[] required_elements () throws org.omg.mof.Reflective.MofError
900   {
901     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
902     try {
903        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("required_elements", true);
904        $in = _invoke ($out);
905        org.omg.mof.Model.ModelElement $result[] = org.omg.mof.Model.ModelElementBagHelper.read ($in);
906        return $result;
907     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
908        $in = $ex.getInputStream ();
909        String JavaDoc _id = $ex.getId ();
910        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
911           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
912        else
913             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
914     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
915        return required_elements ();
916     } finally {
917         _releaseReply ($in);
918     }
919   } // required_elements
920

921   public void set_required_elements (org.omg.mof.Model.ModelElement[] new_value) throws org.omg.mof.Reflective.MofError
922   {
923     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
924     try {
925        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("set_required_elements", true);
926        org.omg.mof.Model.ModelElementBagHelper.write ($out, new_value);
927        $in = _invoke ($out);
928     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
929        $in = $ex.getInputStream ();
930        String JavaDoc _id = $ex.getId ();
931        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
932           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
933        else
934             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
935     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
936        set_required_elements (new_value);
937     } finally {
938         _releaseReply ($in);
939     }
940   } // set_required_elements
941

942   public void add_required_elements (org.omg.mof.Model.ModelElement new_element) throws org.omg.mof.Reflective.MofError
943   {
944     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
945     try {
946        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("add_required_elements", true);
947        org.omg.mof.Model.ModelElementHelper.write ($out, new_element);
948        $in = _invoke ($out);
949     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
950        $in = $ex.getInputStream ();
951        String JavaDoc _id = $ex.getId ();
952        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
953           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
954        else
955             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
956     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
957        add_required_elements (new_element);
958     } finally {
959         _releaseReply ($in);
960     }
961   } // add_required_elements
962

963   public void modify_required_elements (org.omg.mof.Model.ModelElement old_element, org.omg.mof.Model.ModelElement new_element) throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError
964   {
965     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
966     try {
967        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("modify_required_elements", true);
968        org.omg.mof.Model.ModelElementHelper.write ($out, old_element);
969        org.omg.mof.Model.ModelElementHelper.write ($out, new_element);
970        $in = _invoke ($out);
971     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
972        $in = $ex.getInputStream ();
973        String JavaDoc _id = $ex.getId ();
974        if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0"))
975           throw org.omg.mof.Reflective.NotFoundHelper.read ($in);
976        else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
977           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
978        else
979             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
980     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
981        modify_required_elements (old_element, new_element);
982     } finally {
983         _releaseReply ($in);
984     }
985   } // modify_required_elements
986

987   public void remove_required_elements (org.omg.mof.Model.ModelElement old_element) throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError
988   {
989     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
990     try {
991        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("remove_required_elements", true);
992        org.omg.mof.Model.ModelElementHelper.write ($out, old_element);
993        $in = _invoke ($out);
994     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
995        $in = $ex.getInputStream ();
996        String JavaDoc _id = $ex.getId ();
997        if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0"))
998           throw org.omg.mof.Reflective.NotFoundHelper.read ($in);
999        else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
1000          throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
1001       else
1002            throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
1003    } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
1004       remove_required_elements (old_element);
1005    } finally {
1006        _releaseReply ($in);
1007    }
1008  } // remove_required_elements
1009

1010
1011  //
1012
public org.omg.mof.Model.Constraint[] constraints () throws org.omg.mof.Reflective.MofError
1013  {
1014    org.omg.CORBA.portable.InputStream JavaDoc $in = null;
1015    try {
1016       org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("constraints", true);
1017       $in = _invoke ($out);
1018       org.omg.mof.Model.Constraint $result[] = org.omg.mof.Model.ConstraintBagHelper.read ($in);
1019       return $result;
1020    } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
1021       $in = $ex.getInputStream ();
1022       String JavaDoc _id = $ex.getId ();
1023       if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
1024          throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
1025       else
1026            throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
1027    } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
1028       return constraints ();
1029    } finally {
1030        _releaseReply ($in);
1031    }
1032  } // constraints
1033

1034  public void set_constraints (org.omg.mof.Model.Constraint[] new_value) throws org.omg.mof.Reflective.MofError
1035  {
1036    org.omg.CORBA.portable.InputStream JavaDoc $in = null;
1037    try {
1038       org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("set_constraints", true);
1039       org.omg.mof.Model.ConstraintBagHelper.write ($out, new_value);
1040       $in = _invoke ($out);
1041    } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
1042       $in = $ex.getInputStream ();
1043       String JavaDoc _id = $ex.getId ();
1044       if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
1045          throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
1046       else
1047            throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
1048    } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
1049       set_constraints (new_value);
1050    } finally {
1051        _releaseReply ($in);
1052    }
1053  } // set_constraints
1054

1055  public void add_constraints (org.omg.mof.Model.Constraint new_element) throws org.omg.mof.Reflective.MofError
1056  {
1057    org.omg.CORBA.portable.InputStream JavaDoc $in = null;
1058    try {
1059       org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("add_constraints", true);
1060       org.omg.mof.Model.ConstraintHelper.write ($out, new_element);
1061       $in = _invoke ($out);
1062    } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
1063       $in = $ex.getInputStream ();
1064       String JavaDoc _id = $ex.getId ();
1065       if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
1066          throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
1067       else
1068            throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
1069    } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
1070       add_constraints (new_element);
1071    } finally {
1072        _releaseReply ($in);
1073    }
1074  } // add_constraints
1075

1076  public void modify_constraints (org.omg.mof.Model.Constraint old_element, org.omg.mof.Model.Constraint new_element) throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError
1077  {
1078    org.omg.CORBA.portable.InputStream JavaDoc $in = null;
1079    try {
1080       org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("modify_constraints", true);
1081       org.omg.mof.Model.ConstraintHelper.write ($out, old_element);
1082       org.omg.mof.Model.ConstraintHelper.write ($out, new_element);
1083       $in = _invoke ($out);
1084    } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
1085       $in = $ex.getInputStream ();
1086       String JavaDoc _id = $ex.getId ();
1087       if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0"))
1088          throw org.omg.mof.Reflective.NotFoundHelper.read ($in);
1089       else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
1090          throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
1091       else
1092            throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
1093    } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
1094       modify_constraints (old_element, new_element);
1095    } finally {
1096        _releaseReply ($in);
1097    }
1098  } // modify_constraints
1099

1100  public void remove_constraints (org.omg.mof.Model.Constraint old_element) throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError
1101  {
1102    org.omg.CORBA.portable.InputStream JavaDoc $in = null;
1103    try {
1104       org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("remove_constraints", true);
1105       org.omg.mof.Model.ConstraintHelper.write ($out, old_element);
1106       $in = _invoke ($out);
1107    } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
1108       $in = $ex.getInputStream ();
1109       String JavaDoc _id = $ex.getId ();
1110       if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0"))
1111          throw org.omg.mof.Reflective.NotFoundHelper.read ($in);
1112       else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
1113          throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
1114       else
1115            throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
1116    } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
1117       remove_constraints (old_element);
1118    } finally {
1119        _releaseReply ($in);
1120    }
1121  } // remove_constraints
1122

1123  // Type-specific CORBA::Object operations
1124
private static String JavaDoc[] __ids = {
1125    "IDL:org/omg/mof/Model/Import:1.0",
1126    "IDL:org/omg/mof/Model/ImportClass:1.0",
1127    "IDL:org/omg/mof/Model/ModelElementClass:1.0",
1128    "IDL:org/omg/mof/Reflective/RefObject:1.0",
1129    "IDL:org/omg/mof/Reflective/RefBaseObject:1.0",
1130    "IDL:org/omg/mof/Model/ModelElement:1.0"};
1131
1132  public String JavaDoc[] _ids ()
1133  {
1134    return (String JavaDoc[])__ids.clone ();
1135  }
1136
1137  private void readObject (java.io.ObjectInputStream JavaDoc s) throws java.io.IOException JavaDoc
1138  {
1139     String JavaDoc str = s.readUTF ();
1140     String JavaDoc[] args = null;
1141     java.util.Properties JavaDoc props = null;
1142     org.omg.CORBA.Object JavaDoc obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
1143     org.omg.CORBA.portable.Delegate JavaDoc delegate = ((org.omg.CORBA.portable.ObjectImpl JavaDoc) obj)._get_delegate ();
1144     _set_delegate (delegate);
1145  }
1146
1147  private void writeObject (java.io.ObjectOutputStream JavaDoc s) throws java.io.IOException JavaDoc
1148  {
1149     String JavaDoc[] args = null;
1150     java.util.Properties JavaDoc props = null;
1151     String JavaDoc str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
1152     s.writeUTF (str);
1153  }
1154} // class _ImportStub
1155
Popular Tags