KickJava   Java API By Example, From Geeks To Geeks.

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


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

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

54   public org.omg.mof.Model.Operation create_operation (String JavaDoc name, String JavaDoc annotation, org.omg.mof.Model.VisibilityKind visibility, org.omg.mof.Model.ScopeKind scope, boolean is_query) 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_operation", 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        $out.write_boolean (is_query);
64        $in = _invoke ($out);
65        org.omg.mof.Model.Operation $result = org.omg.mof.Model.OperationHelper.read ($in);
66        return $result;
67     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
68        $in = $ex.getInputStream ();
69        String JavaDoc _id = $ex.getId ();
70        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
71           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
72        else
73             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
74     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
75        return create_operation (name, annotation, visibility, scope, is_query);
76     } finally {
77         _releaseReply ($in);
78     }
79   } // create_operation
80

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

477   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
478   {
479     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
480     try {
481        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_invoke_operation", true);
482        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, requested_operation);
483        org.omg.mof.Reflective.ValueTypeListHelper.write ($out, args.value);
484        $in = _invoke ($out);
485        org.omg.CORBA.Any JavaDoc $result = org.omg.mof.Reflective._ValueTypeHelper.read ($in);
486        args.value = org.omg.mof.Reflective.ValueTypeListHelper.read ($in);
487        return $result;
488     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
489        $in = $ex.getInputStream ();
490        String JavaDoc _id = $ex.getId ();
491        if (_id.equals ("IDL:org/omg/mof/Reflective/OtherException:1.0"))
492           throw org.omg.mof.Reflective.OtherExceptionHelper.read ($in);
493        else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
494           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
495        else
496             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
497     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
498        return ref_invoke_operation (requested_operation, args);
499     } finally {
500         _releaseReply ($in);
501     }
502   } // ref_invoke_operation
503

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

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

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

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

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

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

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

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