KickJava   Java API By Example, From Geeks To Geeks.

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


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

40   public void set_exposed_end (org.omg.mof.Model.AssociationEnd 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_exposed_end", true);
45        org.omg.mof.Model.AssociationEndHelper.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_exposed_end (new_value);
56     } finally {
57         _releaseReply ($in);
58     }
59   } // set_exposed_end
60

61
62   //
63
public org.omg.mof.Model.AssociationEnd referenced_end () 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 ("referenced_end", true);
68        $in = _invoke ($out);
69        org.omg.mof.Model.AssociationEnd $result = org.omg.mof.Model.AssociationEndHelper.read ($in);
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 referenced_end ();
80     } finally {
81         _releaseReply ($in);
82     }
83   } // referenced_end
84

85   public void set_referenced_end (org.omg.mof.Model.AssociationEnd 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_referenced_end", true);
90        org.omg.mof.Model.AssociationEndHelper.write ($out, 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_referenced_end (new_value);
101     } finally {
102         _releaseReply ($in);
103     }
104   } // set_referenced_end
105

106   public org.omg.mof.Model.Reference[] all_of_type_reference ()
107   {
108     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
109     try {
110        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("_get_all_of_type_reference", true);
111        $in = _invoke ($out);
112        org.omg.mof.Model.Reference $result[] = org.omg.mof.Model.ReferenceSetHelper.read ($in);
113        return $result;
114     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
115        $in = $ex.getInputStream ();
116        String JavaDoc _id = $ex.getId ();
117        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
118     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
119        return all_of_type_reference ();
120     } finally {
121         _releaseReply ($in);
122     }
123   } // all_of_type_reference
124

125   public org.omg.mof.Model.Reference[] all_of_class_reference ()
126   {
127     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
128     try {
129        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("_get_all_of_class_reference", true);
130        $in = _invoke ($out);
131        org.omg.mof.Model.Reference $result[] = org.omg.mof.Model.ReferenceSetHelper.read ($in);
132        return $result;
133     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
134        $in = $ex.getInputStream ();
135        String JavaDoc _id = $ex.getId ();
136        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
137     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
138        return all_of_class_reference ();
139     } finally {
140         _releaseReply ($in);
141     }
142   } // all_of_class_reference
143

144   public org.omg.mof.Model.Reference create_reference (String JavaDoc name, String JavaDoc annotation, org.omg.mof.Model.VisibilityKind visibility, org.omg.mof.Model.ScopeKind scope, org.omg.mof.Model.MultiplicityType multiplicity, boolean is_changeable) throws org.omg.mof.Reflective.MofError
145   {
146     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
147     try {
148        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("create_reference", true);
149        $out.write_string (name);
150        $out.write_string (annotation);
151        org.omg.mof.Model.VisibilityKindHelper.write ($out, visibility);
152        org.omg.mof.Model.ScopeKindHelper.write ($out, scope);
153        org.omg.mof.Model.MultiplicityTypeHelper.write ($out, multiplicity);
154        $out.write_boolean (is_changeable);
155        $in = _invoke ($out);
156        org.omg.mof.Model.Reference $result = org.omg.mof.Model.ReferenceHelper.read ($in);
157        return $result;
158     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
159        $in = $ex.getInputStream ();
160        String JavaDoc _id = $ex.getId ();
161        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
162           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
163        else
164             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
165     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
166        return create_reference (name, annotation, visibility, scope, multiplicity, is_changeable);
167     } finally {
168         _releaseReply ($in);
169     }
170   } // create_reference
171

172   public org.omg.mof.Model.StructuralFeature[] all_of_type_structural_feature ()
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_structural_feature", true);
177        $in = _invoke ($out);
178        org.omg.mof.Model.StructuralFeature $result[] = org.omg.mof.Model.StructuralFeatureSetHelper.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_structural_feature ();
186     } finally {
187         _releaseReply ($in);
188     }
189   } // all_of_type_structural_feature
190

191   public org.omg.mof.Model.TypedElement[] all_of_type_typed_element ()
192   {
193     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
194     try {
195        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("_get_all_of_type_typed_element", true);
196        $in = _invoke ($out);
197        org.omg.mof.Model.TypedElement $result[] = org.omg.mof.Model.TypedElementSetHelper.read ($in);
198        return $result;
199     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
200        $in = $ex.getInputStream ();
201        String JavaDoc _id = $ex.getId ();
202        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
203     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
204        return all_of_type_typed_element ();
205     } finally {
206         _releaseReply ($in);
207     }
208   } // all_of_type_typed_element
209

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

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

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

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

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

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

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

360   public void ref_add_value (org.omg.mof.Reflective.RefObject feature, org.omg.CORBA.Any JavaDoc new_element) throws org.omg.mof.Reflective.MofError
361   {
362     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
363     try {
364        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_add_value", true);
365        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature);
366        org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element);
367        $in = _invoke ($out);
368     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
369        $in = $ex.getInputStream ();
370        String JavaDoc _id = $ex.getId ();
371        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
372           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
373        else
374             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
375     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
376        ref_add_value (feature, new_element);
377     } finally {
378         _releaseReply ($in);
379     }
380   } // ref_add_value
381

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

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

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

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

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

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

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

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

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

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

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

633   public boolean ref_itself (org.omg.mof.Reflective.RefBaseObject other_object)
634   {
635     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
636     try {
637        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_itself", true);
638        org.omg.mof.Reflective.RefBaseObjectHelper.write ($out, other_object);
639        $in = _invoke ($out);
640        boolean $result = $in.read_boolean ();
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_itself (other_object);
648     } finally {
649         _releaseReply ($in);
650     }
651   } // ref_itself
652

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

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

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

711   public org.omg.mof.Model.Feature[] all_of_type_feature ()
712   {
713     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
714     try {
715        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("_get_all_of_type_feature", true);
716        $in = _invoke ($out);
717        org.omg.mof.Model.Feature $result[] = org.omg.mof.Model.FeatureSetHelper.read ($in);
718        return $result;
719     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
720        $in = $ex.getInputStream ();
721        String JavaDoc _id = $ex.getId ();
722        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
723     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
724        return all_of_type_feature ();
725     } finally {
726         _releaseReply ($in);
727     }
728   } // all_of_type_feature
729

730
731   //
732
public String JavaDoc name () throws org.omg.mof.Reflective.MofError
733   {
734     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
735     try {
736        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("name", true);
737        $in = _invoke ($out);
738        String JavaDoc $result = $in.read_string ();
739        return $result;
740     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
741        $in = $ex.getInputStream ();
742        String JavaDoc _id = $ex.getId ();
743        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
744           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
745        else
746             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
747     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
748        return name ();
749     } finally {
750         _releaseReply ($in);
751     }
752   } // name
753

754   public void set_name (String JavaDoc new_value) throws org.omg.mof.Reflective.MofError
755   {
756     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
757     try {
758        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("set_name", true);
759        $out.write_string (new_value);
760        $in = _invoke ($out);
761     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
762        $in = $ex.getInputStream ();
763        String JavaDoc _id = $ex.getId ();
764        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
765           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
766        else
767             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
768     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
769        set_name (new_value);
770     } finally {
771         _releaseReply ($in);
772     }
773   } // set_name
774

775
776   //
777
public String JavaDoc annotation () throws org.omg.mof.Reflective.MofError
778   {
779     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
780     try {
781        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("annotation", true);
782        $in = _invoke ($out);
783        String JavaDoc $result = $in.read_string ();
784        return $result;
785     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
786        $in = $ex.getInputStream ();
787        String JavaDoc _id = $ex.getId ();
788        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
789           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
790        else
791             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
792     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
793        return annotation ();
794     } finally {
795         _releaseReply ($in);
796     }
797   } // annotation
798

799   public void set_annotation (String JavaDoc new_value) throws org.omg.mof.Reflective.MofError
800   {
801     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
802     try {
803        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("set_annotation", true);
804        $out.write_string (new_value);
805        $in = _invoke ($out);
806     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
807        $in = $ex.getInputStream ();
808        String JavaDoc _id = $ex.getId ();
809        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
810           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
811        else
812             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
813     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
814        set_annotation (new_value);
815     } finally {
816         _releaseReply ($in);
817     }
818   } // set_annotation
819

820
821   //
822
public String JavaDoc[] qualified_name () throws org.omg.mof.Reflective.MofError
823   {
824     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
825     try {
826        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("qualified_name", true);
827        $in = _invoke ($out);
828        String JavaDoc $result[] = org.omg.mof.Model.StringListHelper.read ($in);
829        return $result;
830     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
831        $in = $ex.getInputStream ();
832        String JavaDoc _id = $ex.getId ();
833        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
834           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
835        else
836             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
837     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
838        return qualified_name ();
839     } finally {
840         _releaseReply ($in);
841     }
842   } // qualified_name
843

844
845   //
846
public org.omg.mof.Model.Namespace container () throws org.omg.mof.Reflective.NotSet, org.omg.mof.Reflective.MofError
847   {
848     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
849     try {
850        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("container", true);
851        $in = _invoke ($out);
852        org.omg.mof.Model.Namespace $result = org.omg.mof.Model.NamespaceHelper.read ($in);
853        return $result;
854     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
855        $in = $ex.getInputStream ();
856        String JavaDoc _id = $ex.getId ();
857        if (_id.equals ("IDL:org/omg/mof/Reflective/NotSet:1.0"))
858           throw org.omg.mof.Reflective.NotSetHelper.read ($in);
859        else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
860           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
861        else
862             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
863     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
864        return container ();
865     } finally {
866         _releaseReply ($in);
867     }
868   } // container
869

870   public void set_container (org.omg.mof.Model.Namespace new_value) throws org.omg.mof.Reflective.MofError
871   {
872     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
873     try {
874        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("set_container", true);
875        org.omg.mof.Model.NamespaceHelper.write ($out, new_value);
876        $in = _invoke ($out);
877     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
878        $in = $ex.getInputStream ();
879        String JavaDoc _id = $ex.getId ();
880        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
881           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
882        else
883             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
884     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
885        set_container (new_value);
886     } finally {
887         _releaseReply ($in);
888     }
889   } // set_container
890

891   public void unset_container () throws org.omg.mof.Reflective.MofError
892   {
893     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
894     try {
895        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("unset_container", true);
896        $in = _invoke ($out);
897     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
898        $in = $ex.getInputStream ();
899        String JavaDoc _id = $ex.getId ();
900        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
901           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
902        else
903             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
904     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
905        unset_container ();
906     } finally {
907         _releaseReply ($in);
908     }
909   } // unset_container
910

911
912   //
913
public org.omg.mof.Model.ModelElement[] required_elements () throws org.omg.mof.Reflective.MofError
914   {
915     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
916     try {
917        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("required_elements", true);
918        $in = _invoke ($out);
919        org.omg.mof.Model.ModelElement $result[] = org.omg.mof.Model.ModelElementBagHelper.read ($in);
920        return $result;
921     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
922        $in = $ex.getInputStream ();
923        String JavaDoc _id = $ex.getId ();
924        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
925           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
926        else
927             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
928     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
929        return required_elements ();
930     } finally {
931         _releaseReply ($in);
932     }
933   } // required_elements
934

935   public void set_required_elements (org.omg.mof.Model.ModelElement[] new_value) throws org.omg.mof.Reflective.MofError
936   {
937     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
938     try {
939        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("set_required_elements", true);
940        org.omg.mof.Model.ModelElementBagHelper.write ($out, new_value);
941        $in = _invoke ($out);
942     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
943        $in = $ex.getInputStream ();
944        String JavaDoc _id = $ex.getId ();
945        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
946           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
947        else
948             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
949     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
950        set_required_elements (new_value);
951     } finally {
952         _releaseReply ($in);
953     }
954   } // set_required_elements
955

956   public void add_required_elements (org.omg.mof.Model.ModelElement new_element) throws org.omg.mof.Reflective.MofError
957   {
958     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
959     try {
960        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("add_required_elements", true);
961        org.omg.mof.Model.ModelElementHelper.write ($out, new_element);
962        $in = _invoke ($out);
963     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
964        $in = $ex.getInputStream ();
965        String JavaDoc _id = $ex.getId ();
966        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
967           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
968        else
969             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
970     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
971        add_required_elements (new_element);
972     } finally {
973         _releaseReply ($in);
974     }
975   } // add_required_elements
976

977   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
978   {
979     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
980     try {
981        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("modify_required_elements", true);
982        org.omg.mof.Model.ModelElementHelper.write ($out, old_element);
983        org.omg.mof.Model.ModelElementHelper.write ($out, new_element);
984        $in = _invoke ($out);
985     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
986        $in = $ex.getInputStream ();
987        String JavaDoc _id = $ex.getId ();
988        if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0"))
989           throw org.omg.mof.Reflective.NotFoundHelper.read ($in);
990        else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
991           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
992        else
993             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
994     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
995        modify_required_elements (old_element, new_element);
996     } finally {
997         _releaseReply ($in);
998     }
999   } // modify_required_elements
1000

1001  public void remove_required_elements (org.omg.mof.Model.ModelElement old_element) throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError
1002  {
1003    org.omg.CORBA.portable.InputStream JavaDoc $in = null;
1004    try {
1005       org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("remove_required_elements", true);
1006       org.omg.mof.Model.ModelElementHelper.write ($out, old_element);
1007       $in = _invoke ($out);
1008    } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
1009       $in = $ex.getInputStream ();
1010       String JavaDoc _id = $ex.getId ();
1011       if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0"))
1012          throw org.omg.mof.Reflective.NotFoundHelper.read ($in);
1013       else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
1014          throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
1015       else
1016            throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
1017    } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
1018       remove_required_elements (old_element);
1019    } finally {
1020        _releaseReply ($in);
1021    }
1022  } // remove_required_elements
1023

1024
1025  //
1026
public org.omg.mof.Model.Constraint[] constraints () throws org.omg.mof.Reflective.MofError
1027  {
1028    org.omg.CORBA.portable.InputStream JavaDoc $in = null;
1029    try {
1030       org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("constraints", true);
1031       $in = _invoke ($out);
1032       org.omg.mof.Model.Constraint $result[] = org.omg.mof.Model.ConstraintBagHelper.read ($in);
1033       return $result;
1034    } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
1035       $in = $ex.getInputStream ();
1036       String JavaDoc _id = $ex.getId ();
1037       if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
1038          throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
1039       else
1040            throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
1041    } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
1042       return constraints ();
1043    } finally {
1044        _releaseReply ($in);
1045    }
1046  } // constraints
1047

1048  public void set_constraints (org.omg.mof.Model.Constraint[] new_value) throws org.omg.mof.Reflective.MofError
1049  {
1050    org.omg.CORBA.portable.InputStream JavaDoc $in = null;
1051    try {
1052       org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("set_constraints", true);
1053       org.omg.mof.Model.ConstraintBagHelper.write ($out, new_value);
1054       $in = _invoke ($out);
1055    } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
1056       $in = $ex.getInputStream ();
1057       String JavaDoc _id = $ex.getId ();
1058       if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
1059          throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
1060       else
1061            throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
1062    } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
1063       set_constraints (new_value);
1064    } finally {
1065        _releaseReply ($in);
1066    }
1067  } // set_constraints
1068

1069  public void add_constraints (org.omg.mof.Model.Constraint new_element) throws org.omg.mof.Reflective.MofError
1070  {
1071    org.omg.CORBA.portable.InputStream JavaDoc $in = null;
1072    try {
1073       org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("add_constraints", true);
1074       org.omg.mof.Model.ConstraintHelper.write ($out, new_element);
1075       $in = _invoke ($out);
1076    } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
1077       $in = $ex.getInputStream ();
1078       String JavaDoc _id = $ex.getId ();
1079       if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
1080          throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
1081       else
1082            throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
1083    } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
1084       add_constraints (new_element);
1085    } finally {
1086        _releaseReply ($in);
1087    }
1088  } // add_constraints
1089

1090  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
1091  {
1092    org.omg.CORBA.portable.InputStream JavaDoc $in = null;
1093    try {
1094       org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("modify_constraints", true);
1095       org.omg.mof.Model.ConstraintHelper.write ($out, old_element);
1096       org.omg.mof.Model.ConstraintHelper.write ($out, new_element);
1097       $in = _invoke ($out);
1098    } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
1099       $in = $ex.getInputStream ();
1100       String JavaDoc _id = $ex.getId ();
1101       if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0"))
1102          throw org.omg.mof.Reflective.NotFoundHelper.read ($in);
1103       else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
1104          throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
1105       else
1106            throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
1107    } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
1108       modify_constraints (old_element, new_element);
1109    } finally {
1110        _releaseReply ($in);
1111    }
1112  } // modify_constraints
1113

1114  public void remove_constraints (org.omg.mof.Model.Constraint old_element) throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError
1115  {
1116    org.omg.CORBA.portable.InputStream JavaDoc $in = null;
1117    try {
1118       org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("remove_constraints", true);
1119       org.omg.mof.Model.ConstraintHelper.write ($out, old_element);
1120       $in = _invoke ($out);
1121    } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
1122       $in = $ex.getInputStream ();
1123       String JavaDoc _id = $ex.getId ();
1124       if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0"))
1125          throw org.omg.mof.Reflective.NotFoundHelper.read ($in);
1126       else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
1127          throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
1128       else
1129            throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
1130    } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
1131       remove_constraints (old_element);
1132    } finally {
1133        _releaseReply ($in);
1134    }
1135  } // remove_constraints
1136

1137
1138  //
1139
public org.omg.mof.Model.Classifier type () throws org.omg.mof.Reflective.MofError
1140  {
1141    org.omg.CORBA.portable.InputStream JavaDoc $in = null;
1142    try {
1143       org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("type", true);
1144       $in = _invoke ($out);
1145       org.omg.mof.Model.Classifier $result = org.omg.mof.Model.ClassifierHelper.read ($in);
1146       return $result;
1147    } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
1148       $in = $ex.getInputStream ();
1149       String JavaDoc _id = $ex.getId ();
1150       if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
1151          throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
1152       else
1153            throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
1154    } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
1155       return type ();
1156    } finally {
1157        _releaseReply ($in);
1158    }
1159  } // type
1160

1161  public void set_type (org.omg.mof.Model.Classifier new_value) throws org.omg.mof.Reflective.MofError
1162  {
1163    org.omg.CORBA.portable.InputStream JavaDoc $in = null;
1164    try {
1165       org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("set_type", true);
1166       org.omg.mof.Model.ClassifierHelper.write ($out, new_value);
1167       $in = _invoke ($out);
1168    } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
1169       $in = $ex.getInputStream ();
1170       String JavaDoc _id = $ex.getId ();
1171       if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
1172          throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
1173       else
1174            throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
1175    } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
1176       set_type (new_value);
1177    } finally {
1178        _releaseReply ($in);
1179    }
1180  } // set_type
1181

1182
1183  //
1184
public org.omg.mof.Model.VisibilityKind visibility () throws org.omg.mof.Reflective.MofError
1185  {
1186    org.omg.CORBA.portable.InputStream JavaDoc $in = null;
1187    try {
1188       org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("visibility", true);
1189       $in = _invoke ($out);
1190       org.omg.mof.Model.VisibilityKind $result = org.omg.mof.Model.VisibilityKindHelper.read ($in);
1191       return $result;
1192    } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
1193       $in = $ex.getInputStream ();
1194       String JavaDoc _id = $ex.getId ();
1195       if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
1196          throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
1197       else
1198            throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
1199    } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
1200       return visibility ();
1201    } finally {
1202        _releaseReply ($in);
1203    }
1204  } // visibility
1205

1206  public void set_visibility (org.omg.mof.Model.VisibilityKind new_value) throws org.omg.mof.Reflective.MofError
1207  {
1208    org.omg.CORBA.portable.InputStream JavaDoc $in = null;
1209    try {
1210       org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("set_visibility", true);
1211       org.omg.mof.Model.VisibilityKindHelper.write ($out, new_value);
1212       $in = _invoke ($out);
1213    } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
1214       $in = $ex.getInputStream ();
1215       String JavaDoc _id = $ex.getId ();
1216       if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
1217          throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
1218       else
1219            throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
1220    } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
1221       set_visibility (new_value);
1222    } finally {
1223        _releaseReply ($in);
1224    }
1225  } // set_visibility
1226

1227
1228  //
1229
public org.omg.mof.Model.ScopeKind scope () throws org.omg.mof.Reflective.MofError
1230  {
1231    org.omg.CORBA.portable.InputStream JavaDoc $in = null;
1232    try {
1233       org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("scope", true);
1234       $in = _invoke ($out);
1235       org.omg.mof.Model.ScopeKind $result = org.omg.mof.Model.ScopeKindHelper.read ($in);
1236       return $result;
1237    } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
1238       $in = $ex.getInputStream ();
1239       String JavaDoc _id = $ex.getId ();
1240       if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
1241          throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
1242       else
1243            throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
1244    } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
1245       return scope ();
1246    } finally {
1247        _releaseReply ($in);
1248    }
1249  } // scope
1250

1251  public void set_scope (org.omg.mof.Model.ScopeKind new_value) throws org.omg.mof.Reflective.MofError
1252  {
1253    org.omg.CORBA.portable.InputStream JavaDoc $in = null;
1254    try {
1255       org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("set_scope", true);
1256       org.omg.mof.Model.ScopeKindHelper.write ($out, new_value);
1257       $in = _invoke ($out);
1258    } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
1259       $in = $ex.getInputStream ();
1260       String JavaDoc _id = $ex.getId ();
1261       if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
1262          throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
1263       else
1264            throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
1265    } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
1266       set_scope (new_value);
1267    } finally {
1268        _releaseReply ($in);
1269    }
1270  } // set_scope
1271

1272
1273  //
1274
public org.omg.mof.Model.MultiplicityType multiplicity () throws org.omg.mof.Reflective.MofError
1275  {
1276    org.omg.CORBA.portable.InputStream JavaDoc $in = null;
1277    try {
1278       org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("multiplicity", true);
1279       $in = _invoke ($out);
1280       org.omg.mof.Model.MultiplicityType $result = org.omg.mof.Model.MultiplicityTypeHelper.read ($in);
1281       return $result;
1282    } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
1283       $in = $ex.getInputStream ();
1284       String JavaDoc _id = $ex.getId ();
1285       if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
1286          throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
1287       else
1288            throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
1289    } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
1290       return multiplicity ();
1291    } finally {
1292        _releaseReply ($in);
1293    }
1294  } // multiplicity
1295

1296  public void set_multiplicity (org.omg.mof.Model.MultiplicityType new_value) throws org.omg.mof.Reflective.MofError
1297  {
1298    org.omg.CORBA.portable.InputStream JavaDoc $in = null;
1299    try {
1300       org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("set_multiplicity", true);
1301       org.omg.mof.Model.MultiplicityTypeHelper.write ($out, new_value);
1302       $in = _invoke ($out);
1303    } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
1304       $in = $ex.getInputStream ();
1305       String JavaDoc _id = $ex.getId ();
1306       if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
1307          throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
1308       else
1309            throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
1310    } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
1311       set_multiplicity (new_value);
1312    } finally {
1313        _releaseReply ($in);
1314    }
1315  } // set_multiplicity
1316

1317
1318  //
1319
public boolean is_changeable () throws org.omg.mof.Reflective.MofError
1320  {
1321    org.omg.CORBA.portable.InputStream JavaDoc $in = null;
1322    try {
1323       org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("is_changeable", true);
1324       $in = _invoke ($out);
1325       boolean $result = $in.read_boolean ();
1326       return $result;
1327    } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
1328       $in = $ex.getInputStream ();
1329       String JavaDoc _id = $ex.getId ();
1330       if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
1331          throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
1332       else
1333            throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
1334    } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
1335       return is_changeable ();
1336    } finally {
1337        _releaseReply ($in);
1338    }
1339  } // is_changeable
1340

1341  public void set_is_changeable (boolean new_value) throws org.omg.mof.Reflective.MofError
1342  {
1343    org.omg.CORBA.portable.InputStream JavaDoc $in = null;
1344    try {
1345       org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("set_is_changeable", true);
1346       $out.write_boolean (new_value);
1347       $in = _invoke ($out);
1348    } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
1349       $in = $ex.getInputStream ();
1350       String JavaDoc _id = $ex.getId ();
1351       if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
1352          throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
1353       else
1354            throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
1355    } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
1356       set_is_changeable (new_value);
1357    } finally {
1358        _releaseReply ($in);
1359    }
1360  } // set_is_changeable
1361

1362  // Type-specific CORBA::Object operations
1363
private static String JavaDoc[] __ids = {
1364    "IDL:org/omg/mof/Model/Reference:1.0",
1365    "IDL:org/omg/mof/Model/ReferenceClass:1.0",
1366    "IDL:org/omg/mof/Model/StructuralFeatureClass:1.0",
1367    "IDL:org/omg/mof/Model/TypedElementClass:1.0",
1368    "IDL:org/omg/mof/Model/ModelElementClass:1.0",
1369    "IDL:org/omg/mof/Reflective/RefObject:1.0",
1370    "IDL:org/omg/mof/Reflective/RefBaseObject:1.0",
1371    "IDL:org/omg/mof/Model/FeatureClass:1.0",
1372    "IDL:org/omg/mof/Model/ModelElement:1.0",
1373    "IDL:org/omg/mof/Model/TypedElement:1.0",
1374    "IDL:org/omg/mof/Model/Feature:1.0",
1375    "IDL:org/omg/mof/Model/StructuralFeature:1.0"};
1376
1377  public String JavaDoc[] _ids ()
1378  {
1379    return (String JavaDoc[])__ids.clone ();
1380  }
1381
1382  private void readObject (java.io.ObjectInputStream JavaDoc s) throws java.io.IOException JavaDoc
1383  {
1384     String JavaDoc str = s.readUTF ();
1385     String JavaDoc[] args = null;
1386     java.util.Properties JavaDoc props = null;
1387     org.omg.CORBA.Object JavaDoc obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
1388     org.omg.CORBA.portable.Delegate JavaDoc delegate = ((org.omg.CORBA.portable.ObjectImpl JavaDoc) obj)._get_delegate ();
1389     _set_delegate (delegate);
1390  }
1391
1392  private void writeObject (java.io.ObjectOutputStream JavaDoc s) throws java.io.IOException JavaDoc
1393  {
1394     String JavaDoc[] args = null;
1395     java.util.Properties JavaDoc props = null;
1396     String JavaDoc str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
1397     s.writeUTF (str);
1398  }
1399} // class _ReferenceStub
1400
Popular Tags