KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.omg.mof.Model;
2
3
4 /**
5 * org/omg/mof/Model/_NamespaceStub.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 NamespaceClass
13
public class _NamespaceStub extends org.omg.CORBA.portable.ObjectImpl JavaDoc implements org.omg.mof.Model.Namespace
14 {
15
16
17   //
18
public org.omg.mof.Model.ModelElement[] contents () 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 ("contents", true);
23        $in = _invoke ($out);
24        org.omg.mof.Model.ModelElement $result[] = org.omg.mof.Model.ModelElementListHelper.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 contents ();
35     } finally {
36         _releaseReply ($in);
37     }
38   } // contents
39

40   public void set_contents (org.omg.mof.Model.ModelElement[] 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_contents", true);
45        org.omg.mof.Model.ModelElementListHelper.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_contents (new_value);
56     } finally {
57         _releaseReply ($in);
58     }
59   } // set_contents
60

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

82   public void add_contents_before (org.omg.mof.Model.ModelElement new_element, org.omg.mof.Model.ModelElement before_element) throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError
83   {
84     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
85     try {
86        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("add_contents_before", true);
87        org.omg.mof.Model.ModelElementHelper.write ($out, new_element);
88        org.omg.mof.Model.ModelElementHelper.write ($out, before_element);
89        $in = _invoke ($out);
90     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
91        $in = $ex.getInputStream ();
92        String JavaDoc _id = $ex.getId ();
93        if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0"))
94           throw org.omg.mof.Reflective.NotFoundHelper.read ($in);
95        else 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        add_contents_before (new_element, before_element);
101     } finally {
102         _releaseReply ($in);
103     }
104   } // add_contents_before
105

106   public void modify_contents (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
107   {
108     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
109     try {
110        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("modify_contents", true);
111        org.omg.mof.Model.ModelElementHelper.write ($out, old_element);
112        org.omg.mof.Model.ModelElementHelper.write ($out, new_element);
113        $in = _invoke ($out);
114     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
115        $in = $ex.getInputStream ();
116        String JavaDoc _id = $ex.getId ();
117        if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0"))
118           throw org.omg.mof.Reflective.NotFoundHelper.read ($in);
119        else 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        modify_contents (old_element, new_element);
125     } finally {
126         _releaseReply ($in);
127     }
128   } // modify_contents
129

130   public void remove_contents (org.omg.mof.Model.ModelElement old_element) throws org.omg.mof.Reflective.NotFound, 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 ("remove_contents", true);
135        org.omg.mof.Model.ModelElementHelper.write ($out, old_element);
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/NotFound:1.0"))
141           throw org.omg.mof.Reflective.NotFoundHelper.read ($in);
142        else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
143           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
144        else
145             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
146     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
147        remove_contents (old_element);
148     } finally {
149         _releaseReply ($in);
150     }
151   } // remove_contents
152

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

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

191   public boolean ref_is_instance_of (org.omg.mof.Reflective.RefObject some_class, boolean consider_subtypes)
192   {
193     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
194     try {
195        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_is_instance_of", true);
196        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, some_class);
197        $out.write_boolean (consider_subtypes);
198        $in = _invoke ($out);
199        boolean $result = $in.read_boolean ();
200        return $result;
201     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
202        $in = $ex.getInputStream ();
203        String JavaDoc _id = $ex.getId ();
204        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
205     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
206        return ref_is_instance_of (some_class, consider_subtypes);
207     } finally {
208         _releaseReply ($in);
209     }
210   } // ref_is_instance_of
211

212   public org.omg.mof.Reflective.RefObject ref_create_instance (org.omg.CORBA.Any JavaDoc[] args) throws org.omg.mof.Reflective.MofError
213   {
214     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
215     try {
216        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_create_instance", true);
217        org.omg.mof.Reflective.ValueTypeListHelper.write ($out, args);
218        $in = _invoke ($out);
219        org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.RefObjectHelper.read ($in);
220        return $result;
221     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
222        $in = $ex.getInputStream ();
223        String JavaDoc _id = $ex.getId ();
224        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
225           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
226        else
227             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
228     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
229        return ref_create_instance (args);
230     } finally {
231         _releaseReply ($in);
232     }
233   } // ref_create_instance
234

235   public org.omg.mof.Reflective.RefObject[] ref_all_objects (boolean include_subtypes)
236   {
237     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
238     try {
239        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_all_objects", true);
240        $out.write_boolean (include_subtypes);
241        $in = _invoke ($out);
242        org.omg.mof.Reflective.RefObject $result[] = org.omg.mof.Reflective.RefObjectSetHelper.read ($in);
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_all_objects (include_subtypes);
250     } finally {
251         _releaseReply ($in);
252     }
253   } // ref_all_objects
254

255   public void ref_set_value (org.omg.mof.Reflective.RefObject feature, org.omg.CORBA.Any JavaDoc new_value) 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_set_value", true);
260        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature);
261        org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_value);
262        $in = _invoke ($out);
263     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
264        $in = $ex.getInputStream ();
265        String JavaDoc _id = $ex.getId ();
266        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_set_value (feature, new_value);
272     } finally {
273         _releaseReply ($in);
274     }
275   } // ref_set_value
276

277   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
278   {
279     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
280     try {
281        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_value", true);
282        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature);
283        $in = _invoke ($out);
284        org.omg.CORBA.Any JavaDoc $result = org.omg.mof.Reflective._ValueTypeHelper.read ($in);
285        return $result;
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/NotSet:1.0"))
290           throw org.omg.mof.Reflective.NotSetHelper.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        return ref_value (feature);
297     } finally {
298         _releaseReply ($in);
299     }
300   } // ref_value
301

302   public void ref_unset_value () throws 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_unset_value", true);
307        $in = _invoke ($out);
308     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
309        $in = $ex.getInputStream ();
310        String JavaDoc _id = $ex.getId ();
311        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
312           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
313        else
314             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
315     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
316        ref_unset_value ();
317     } finally {
318         _releaseReply ($in);
319     }
320   } // ref_unset_value
321

322   public void ref_add_value (org.omg.mof.Reflective.RefObject feature, org.omg.CORBA.Any JavaDoc new_element) throws org.omg.mof.Reflective.MofError
323   {
324     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
325     try {
326        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_add_value", true);
327        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature);
328        org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element);
329        $in = _invoke ($out);
330     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
331        $in = $ex.getInputStream ();
332        String JavaDoc _id = $ex.getId ();
333        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
334           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
335        else
336             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
337     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
338        ref_add_value (feature, new_element);
339     } finally {
340         _releaseReply ($in);
341     }
342   } // ref_add_value
343

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

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

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

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

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

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

492   public org.omg.mof.Reflective.RefObject ref_immediate_composite ()
493   {
494     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
495     try {
496        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_immediate_composite", true);
497        $in = _invoke ($out);
498        org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.RefObjectHelper.read ($in);
499        return $result;
500     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
501        $in = $ex.getInputStream ();
502        String JavaDoc _id = $ex.getId ();
503        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
504     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
505        return ref_immediate_composite ();
506     } finally {
507         _releaseReply ($in);
508     }
509   } // ref_immediate_composite
510

511   public org.omg.mof.Reflective.RefObject ref_outermost_composite ()
512   {
513     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
514     try {
515        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_outermost_composite", true);
516        $in = _invoke ($out);
517        org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.RefObjectHelper.read ($in);
518        return $result;
519     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
520        $in = $ex.getInputStream ();
521        String JavaDoc _id = $ex.getId ();
522        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
523     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
524        return ref_outermost_composite ();
525     } finally {
526         _releaseReply ($in);
527     }
528   } // ref_outermost_composite
529

530   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
531   {
532     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
533     try {
534        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_invoke_operation", true);
535        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, requested_operation);
536        org.omg.mof.Reflective.ValueTypeListHelper.write ($out, args.value);
537        $in = _invoke ($out);
538        org.omg.CORBA.Any JavaDoc $result = org.omg.mof.Reflective._ValueTypeHelper.read ($in);
539        args.value = org.omg.mof.Reflective.ValueTypeListHelper.read ($in);
540        return $result;
541     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
542        $in = $ex.getInputStream ();
543        String JavaDoc _id = $ex.getId ();
544        if (_id.equals ("IDL:org/omg/mof/Reflective/OtherException:1.0"))
545           throw org.omg.mof.Reflective.OtherExceptionHelper.read ($in);
546        else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
547           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
548        else
549             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
550     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
551        return ref_invoke_operation (requested_operation, args);
552     } finally {
553         _releaseReply ($in);
554     }
555   } // ref_invoke_operation
556

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

576   public org.omg.mof.Reflective.RefObject ref_meta_object ()
577   {
578     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
579     try {
580        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_meta_object", true);
581        $in = _invoke ($out);
582        org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.DesignatorTypeHelper.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        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
588     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
589        return ref_meta_object ();
590     } finally {
591         _releaseReply ($in);
592     }
593   } // ref_meta_object
594

595   public boolean ref_itself (org.omg.mof.Reflective.RefBaseObject other_object)
596   {
597     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
598     try {
599        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_itself", true);
600        org.omg.mof.Reflective.RefBaseObjectHelper.write ($out, other_object);
601        $in = _invoke ($out);
602        boolean $result = $in.read_boolean ();
603        return $result;
604     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
605        $in = $ex.getInputStream ();
606        String JavaDoc _id = $ex.getId ();
607        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
608     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
609        return ref_itself (other_object);
610     } finally {
611         _releaseReply ($in);
612     }
613   } // ref_itself
614

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

634   public org.omg.mof.Reflective._RefPackage ref_outermost_package ()
635   {
636     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
637     try {
638        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_outermost_package", true);
639        $in = _invoke ($out);
640        org.omg.mof.Reflective._RefPackage $result = org.omg.mof.Reflective._RefPackageHelper.read ($in);
641        return $result;
642     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
643        $in = $ex.getInputStream ();
644        String JavaDoc _id = $ex.getId ();
645        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
646     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
647        return ref_outermost_package ();
648     } finally {
649         _releaseReply ($in);
650     }
651   } // ref_outermost_package
652

653   public void ref_delete () throws org.omg.mof.Reflective.MofError
654   {
655     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
656     try {
657        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_delete", true);
658        $in = _invoke ($out);
659     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
660        $in = $ex.getInputStream ();
661        String JavaDoc _id = $ex.getId ();
662        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
663           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
664        else
665             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
666     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
667        ref_delete ();
668     } finally {
669         _releaseReply ($in);
670     }
671   } // ref_delete
672

673
674   //
675
public String JavaDoc name () throws org.omg.mof.Reflective.MofError
676   {
677     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
678     try {
679        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("name", true);
680        $in = _invoke ($out);
681        String JavaDoc $result = $in.read_string ();
682        return $result;
683     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
684        $in = $ex.getInputStream ();
685        String JavaDoc _id = $ex.getId ();
686        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
687           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
688        else
689             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
690     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
691        return name ();
692     } finally {
693         _releaseReply ($in);
694     }
695   } // name
696

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

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

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

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

787
788   //
789
public org.omg.mof.Model.Namespace container () throws org.omg.mof.Reflective.NotSet, org.omg.mof.Reflective.MofError
790   {
791     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
792     try {
793        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("container", true);
794        $in = _invoke ($out);
795        org.omg.mof.Model.Namespace $result = org.omg.mof.Model.NamespaceHelper.read ($in);
796        return $result;
797     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
798        $in = $ex.getInputStream ();
799        String JavaDoc _id = $ex.getId ();
800        if (_id.equals ("IDL:org/omg/mof/Reflective/NotSet:1.0"))
801           throw org.omg.mof.Reflective.NotSetHelper.read ($in);
802        else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
803           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
804        else
805             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
806     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
807        return container ();
808     } finally {
809         _releaseReply ($in);
810     }
811   } // container
812

813   public void set_container (org.omg.mof.Model.Namespace new_value) throws org.omg.mof.Reflective.MofError
814   {
815     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
816     try {
817        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("set_container", true);
818        org.omg.mof.Model.NamespaceHelper.write ($out, new_value);
819        $in = _invoke ($out);
820     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
821        $in = $ex.getInputStream ();
822        String JavaDoc _id = $ex.getId ();
823        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
824           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
825        else
826             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
827     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
828        set_container (new_value);
829     } finally {
830         _releaseReply ($in);
831     }
832   } // set_container
833

834   public void unset_container () throws org.omg.mof.Reflective.MofError
835   {
836     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
837     try {
838        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("unset_container", true);
839        $in = _invoke ($out);
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/MofError:1.0"))
844           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
845        else
846             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
847     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
848        unset_container ();
849     } finally {
850         _releaseReply ($in);
851     }
852   } // unset_container
853

854
855   //
856
public org.omg.mof.Model.ModelElement[] required_elements () 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 ("required_elements", true);
861        $in = _invoke ($out);
862        org.omg.mof.Model.ModelElement $result[] = org.omg.mof.Model.ModelElementBagHelper.read ($in);
863        return $result;
864     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
865        $in = $ex.getInputStream ();
866        String JavaDoc _id = $ex.getId ();
867        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
868           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
869        else
870             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
871     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
872        return required_elements ();
873     } finally {
874         _releaseReply ($in);
875     }
876   } // required_elements
877

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

899   public void add_required_elements (org.omg.mof.Model.ModelElement new_element) 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 ("add_required_elements", true);
904        org.omg.mof.Model.ModelElementHelper.write ($out, new_element);
905        $in = _invoke ($out);
906     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
907        $in = $ex.getInputStream ();
908        String JavaDoc _id = $ex.getId ();
909        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
910           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
911        else
912             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
913     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
914        add_required_elements (new_element);
915     } finally {
916         _releaseReply ($in);
917     }
918   } // add_required_elements
919

920   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
921   {
922     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
923     try {
924        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("modify_required_elements", true);
925        org.omg.mof.Model.ModelElementHelper.write ($out, old_element);
926        org.omg.mof.Model.ModelElementHelper.write ($out, new_element);
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/NotFound:1.0"))
932           throw org.omg.mof.Reflective.NotFoundHelper.read ($in);
933        else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
934           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
935        else
936             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
937     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
938        modify_required_elements (old_element, new_element);
939     } finally {
940         _releaseReply ($in);
941     }
942   } // modify_required_elements
943

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

967
968   //
969
public org.omg.mof.Model.Constraint[] constraints () throws org.omg.mof.Reflective.MofError
970   {
971     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
972     try {
973        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("constraints", true);
974        $in = _invoke ($out);
975        org.omg.mof.Model.Constraint $result[] = org.omg.mof.Model.ConstraintBagHelper.read ($in);
976        return $result;
977     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
978        $in = $ex.getInputStream ();
979        String JavaDoc _id = $ex.getId ();
980        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
981           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
982        else
983             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
984     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
985        return constraints ();
986     } finally {
987         _releaseReply ($in);
988     }
989   } // constraints
990

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

1012  public void add_constraints (org.omg.mof.Model.Constraint new_element) 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 ("add_constraints", true);
1017       org.omg.mof.Model.ConstraintHelper.write ($out, new_element);
1018       $in = _invoke ($out);
1019    } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
1020       $in = $ex.getInputStream ();
1021       String JavaDoc _id = $ex.getId ();
1022       if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
1023          throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
1024       else
1025            throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
1026    } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
1027       add_constraints (new_element);
1028    } finally {
1029        _releaseReply ($in);
1030    }
1031  } // add_constraints
1032

1033  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
1034  {
1035    org.omg.CORBA.portable.InputStream JavaDoc $in = null;
1036    try {
1037       org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("modify_constraints", true);
1038       org.omg.mof.Model.ConstraintHelper.write ($out, old_element);
1039       org.omg.mof.Model.ConstraintHelper.write ($out, new_element);
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/NotFound:1.0"))
1045          throw org.omg.mof.Reflective.NotFoundHelper.read ($in);
1046       else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
1047          throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
1048       else
1049            throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
1050    } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
1051       modify_constraints (old_element, new_element);
1052    } finally {
1053        _releaseReply ($in);
1054    }
1055  } // modify_constraints
1056

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

1080  // Type-specific CORBA::Object operations
1081
private static String JavaDoc[] __ids = {
1082    "IDL:org/omg/mof/Model/Namespace:1.0",
1083    "IDL:org/omg/mof/Model/NamespaceClass:1.0",
1084    "IDL:org/omg/mof/Model/ModelElementClass:1.0",
1085    "IDL:org/omg/mof/Reflective/RefObject:1.0",
1086    "IDL:org/omg/mof/Reflective/RefBaseObject:1.0",
1087    "IDL:org/omg/mof/Model/ModelElement:1.0"};
1088
1089  public String JavaDoc[] _ids ()
1090  {
1091    return (String JavaDoc[])__ids.clone ();
1092  }
1093
1094  private void readObject (java.io.ObjectInputStream JavaDoc s) throws java.io.IOException JavaDoc
1095  {
1096     String JavaDoc str = s.readUTF ();
1097     String JavaDoc[] args = null;
1098     java.util.Properties JavaDoc props = null;
1099     org.omg.CORBA.Object JavaDoc obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
1100     org.omg.CORBA.portable.Delegate JavaDoc delegate = ((org.omg.CORBA.portable.ObjectImpl JavaDoc) obj)._get_delegate ();
1101     _set_delegate (delegate);
1102  }
1103
1104  private void writeObject (java.io.ObjectOutputStream JavaDoc s) throws java.io.IOException JavaDoc
1105  {
1106     String JavaDoc[] args = null;
1107     java.util.Properties JavaDoc props = null;
1108     String JavaDoc str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
1109     s.writeUTF (str);
1110  }
1111} // class _NamespaceStub
1112
Popular Tags