KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.omg.mof.Model;
2
3
4 /**
5 * org/omg/mof/Model/_MofAttributeClassStub.java .
6 * Generated by the IDL-to-Java compiler (portable), version "3.1"
7 * from mof1.idl
8 * lundi 17 mars 2003 15 h 01 CET
9 */

10
11
12 //
13
public class _MofAttributeClassStub extends org.omg.CORBA.portable.ObjectImpl JavaDoc implements org.omg.mof.Model.MofAttributeClass
14 {
15
16   public org.omg.mof.Model.MofAttribute[] all_of_type_mof_attribute ()
17   {
18     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
19     try {
20        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("_get_all_of_type_mof_attribute", true);
21        $in = _invoke ($out);
22        org.omg.mof.Model.MofAttribute $result[] = org.omg.mof.Model.MofAttributeSetHelper.read ($in);
23        return $result;
24     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
25        $in = $ex.getInputStream ();
26        String JavaDoc _id = $ex.getId ();
27        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
28     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
29        return all_of_type_mof_attribute ();
30     } finally {
31         _releaseReply ($in);
32     }
33   } // all_of_type_mof_attribute
34

35   public org.omg.mof.Model.MofAttribute[] all_of_class_mof_attribute ()
36   {
37     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
38     try {
39        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("_get_all_of_class_mof_attribute", true);
40        $in = _invoke ($out);
41        org.omg.mof.Model.MofAttribute $result[] = org.omg.mof.Model.MofAttributeSetHelper.read ($in);
42        return $result;
43     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
44        $in = $ex.getInputStream ();
45        String JavaDoc _id = $ex.getId ();
46        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
47     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
48        return all_of_class_mof_attribute ();
49     } finally {
50         _releaseReply ($in);
51     }
52   } // all_of_class_mof_attribute
53

54   public org.omg.mof.Model.MofAttribute create_mof_attribute (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, boolean is_derived) throws org.omg.mof.Reflective.MofError
55   {
56     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
57     try {
58        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("create_mof_attribute", true);
59        $out.write_string (name);
60        $out.write_string (annotation);
61        org.omg.mof.Model.VisibilityKindHelper.write ($out, visibility);
62        org.omg.mof.Model.ScopeKindHelper.write ($out, scope);
63        org.omg.mof.Model.MultiplicityTypeHelper.write ($out, multiplicity);
64        $out.write_boolean (is_changeable);
65        $out.write_boolean (is_derived);
66        $in = _invoke ($out);
67        org.omg.mof.Model.MofAttribute $result = org.omg.mof.Model.MofAttributeHelper.read ($in);
68        return $result;
69     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
70        $in = $ex.getInputStream ();
71        String JavaDoc _id = $ex.getId ();
72        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
73           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
74        else
75             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
76     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
77        return create_mof_attribute (name, annotation, visibility, scope, multiplicity, is_changeable, is_derived);
78     } finally {
79         _releaseReply ($in);
80     }
81   } // create_mof_attribute
82

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

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

121   public org.omg.mof.Model.ModelElement[] all_of_type_model_element ()
122   {
123     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
124     try {
125        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("_get_all_of_type_model_element", true);
126        $in = _invoke ($out);
127        org.omg.mof.Model.ModelElement $result[] = org.omg.mof.Model.ModelElementSetHelper.read ($in);
128        return $result;
129     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
130        $in = $ex.getInputStream ();
131        String JavaDoc _id = $ex.getId ();
132        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
133     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
134        return all_of_type_model_element ();
135     } finally {
136         _releaseReply ($in);
137     }
138   } // all_of_type_model_element
139

140   public boolean ref_is_instance_of (org.omg.mof.Reflective.RefObject some_class, boolean consider_subtypes)
141   {
142     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
143     try {
144        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_is_instance_of", true);
145        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, some_class);
146        $out.write_boolean (consider_subtypes);
147        $in = _invoke ($out);
148        boolean $result = $in.read_boolean ();
149        return $result;
150     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
151        $in = $ex.getInputStream ();
152        String JavaDoc _id = $ex.getId ();
153        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
154     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
155        return ref_is_instance_of (some_class, consider_subtypes);
156     } finally {
157         _releaseReply ($in);
158     }
159   } // ref_is_instance_of
160

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

184   public org.omg.mof.Reflective.RefObject[] ref_all_objects (boolean include_subtypes)
185   {
186     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
187     try {
188        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_all_objects", true);
189        $out.write_boolean (include_subtypes);
190        $in = _invoke ($out);
191        org.omg.mof.Reflective.RefObject $result[] = org.omg.mof.Reflective.RefObjectSetHelper.read ($in);
192        return $result;
193     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
194        $in = $ex.getInputStream ();
195        String JavaDoc _id = $ex.getId ();
196        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
197     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
198        return ref_all_objects (include_subtypes);
199     } finally {
200         _releaseReply ($in);
201     }
202   } // ref_all_objects
203

204   public void ref_set_value (org.omg.mof.Reflective.RefObject feature, org.omg.CORBA.Any JavaDoc new_value) throws org.omg.mof.Reflective.MofError
205   {
206     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
207     try {
208        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_set_value", true);
209        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature);
210        org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_value);
211        $in = _invoke ($out);
212     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
213        $in = $ex.getInputStream ();
214        String JavaDoc _id = $ex.getId ();
215        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
216           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
217        else
218             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
219     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
220        ref_set_value (feature, new_value);
221     } finally {
222         _releaseReply ($in);
223     }
224   } // ref_set_value
225

226   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
227   {
228     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
229     try {
230        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_value", true);
231        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature);
232        $in = _invoke ($out);
233        org.omg.CORBA.Any JavaDoc $result = org.omg.mof.Reflective._ValueTypeHelper.read ($in);
234        return $result;
235     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
236        $in = $ex.getInputStream ();
237        String JavaDoc _id = $ex.getId ();
238        if (_id.equals ("IDL:org/omg/mof/Reflective/NotSet:1.0"))
239           throw org.omg.mof.Reflective.NotSetHelper.read ($in);
240        else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
241           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
242        else
243             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
244     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
245        return ref_value (feature);
246     } finally {
247         _releaseReply ($in);
248     }
249   } // ref_value
250

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

271   public void ref_add_value (org.omg.mof.Reflective.RefObject feature, org.omg.CORBA.Any JavaDoc new_element) throws org.omg.mof.Reflective.MofError
272   {
273     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
274     try {
275        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_add_value", true);
276        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature);
277        org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element);
278        $in = _invoke ($out);
279     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
280        $in = $ex.getInputStream ();
281        String JavaDoc _id = $ex.getId ();
282        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
283           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
284        else
285             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
286     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
287        ref_add_value (feature, new_element);
288     } finally {
289         _releaseReply ($in);
290     }
291   } // ref_add_value
292

293   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
294   {
295     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
296     try {
297        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_add_value_before", true);
298        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature);
299        org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element);
300        org.omg.mof.Reflective._ValueTypeHelper.write ($out, before_element);
301        $in = _invoke ($out);
302     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
303        $in = $ex.getInputStream ();
304        String JavaDoc _id = $ex.getId ();
305        if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0"))
306           throw org.omg.mof.Reflective.NotFoundHelper.read ($in);
307        else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
308           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
309        else
310             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
311     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
312        ref_add_value_before (feature, new_element, before_element);
313     } finally {
314         _releaseReply ($in);
315     }
316   } // ref_add_value_before
317

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

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

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

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

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

441   public org.omg.mof.Reflective.RefObject ref_immediate_composite ()
442   {
443     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
444     try {
445        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_immediate_composite", true);
446        $in = _invoke ($out);
447        org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.RefObjectHelper.read ($in);
448        return $result;
449     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
450        $in = $ex.getInputStream ();
451        String JavaDoc _id = $ex.getId ();
452        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
453     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
454        return ref_immediate_composite ();
455     } finally {
456         _releaseReply ($in);
457     }
458   } // ref_immediate_composite
459

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

479   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
480   {
481     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
482     try {
483        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_invoke_operation", true);
484        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, requested_operation);
485        org.omg.mof.Reflective.ValueTypeListHelper.write ($out, args.value);
486        $in = _invoke ($out);
487        org.omg.CORBA.Any JavaDoc $result = org.omg.mof.Reflective._ValueTypeHelper.read ($in);
488        args.value = org.omg.mof.Reflective.ValueTypeListHelper.read ($in);
489        return $result;
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/OtherException:1.0"))
494           throw org.omg.mof.Reflective.OtherExceptionHelper.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        return ref_invoke_operation (requested_operation, args);
501     } finally {
502         _releaseReply ($in);
503     }
504   } // ref_invoke_operation
505

506   public String JavaDoc ref_mof_id ()
507   {
508     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
509     try {
510        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_mof_id", true);
511        $in = _invoke ($out);
512        String JavaDoc $result = $in.read_string ();
513        return $result;
514     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
515        $in = $ex.getInputStream ();
516        String JavaDoc _id = $ex.getId ();
517        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
518     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
519        return ref_mof_id ();
520     } finally {
521         _releaseReply ($in);
522     }
523   } // ref_mof_id
524

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

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

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

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

602   public void ref_delete () throws org.omg.mof.Reflective.MofError
603   {
604     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
605     try {
606        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_delete", true);
607        $in = _invoke ($out);
608     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
609        $in = $ex.getInputStream ();
610        String JavaDoc _id = $ex.getId ();
611        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
612           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
613        else
614             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
615     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
616        ref_delete ();
617     } finally {
618         _releaseReply ($in);
619     }
620   } // ref_delete
621

622   public org.omg.mof.Model.Feature[] all_of_type_feature ()
623   {
624     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
625     try {
626        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("_get_all_of_type_feature", true);
627        $in = _invoke ($out);
628        org.omg.mof.Model.Feature $result[] = org.omg.mof.Model.FeatureSetHelper.read ($in);
629        return $result;
630     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
631        $in = $ex.getInputStream ();
632        String JavaDoc _id = $ex.getId ();
633        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
634     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
635        return all_of_type_feature ();
636     } finally {
637         _releaseReply ($in);
638     }
639   } // all_of_type_feature
640

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