KickJava   Java API By Example, From Geeks To Geeks.

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


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

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

54   public org.omg.mof.Model.Constraint create_constraint (String JavaDoc name, String JavaDoc annotation, org.omg.mof.Model.ConstraintClassPackage.EvaluationKind evaluation_policy, org.omg.CORBA.Any JavaDoc expression, String JavaDoc language) 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_constraint", true);
59        $out.write_string (name);
60        $out.write_string (annotation);
61        org.omg.mof.Model.ConstraintClassPackage.EvaluationKindHelper.write ($out, evaluation_policy);
62        $out.write_any (expression);
63        $out.write_string (language);
64        $in = _invoke ($out);
65        org.omg.mof.Model.Constraint $result = org.omg.mof.Model.ConstraintHelper.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_constraint (name, annotation, evaluation_policy, expression, language);
76     } finally {
77         _releaseReply ($in);
78     }
79   } // create_constraint
80

81   public org.omg.mof.Model.ModelElement[] all_of_type_model_element ()
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_model_element", true);
86        $in = _invoke ($out);
87        org.omg.mof.Model.ModelElement $result[] = org.omg.mof.Model.ModelElementSetHelper.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_model_element ();
95     } finally {
96         _releaseReply ($in);
97     }
98   } // all_of_type_model_element
99

100   public boolean ref_is_instance_of (org.omg.mof.Reflective.RefObject some_class, boolean consider_subtypes)
101   {
102     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
103     try {
104        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_is_instance_of", true);
105        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, some_class);
106        $out.write_boolean (consider_subtypes);
107        $in = _invoke ($out);
108        boolean $result = $in.read_boolean ();
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 ref_is_instance_of (some_class, consider_subtypes);
116     } finally {
117         _releaseReply ($in);
118     }
119   } // ref_is_instance_of
120

121   public org.omg.mof.Reflective.RefObject ref_create_instance (org.omg.CORBA.Any JavaDoc[] args) throws org.omg.mof.Reflective.MofError
122   {
123     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
124     try {
125        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_create_instance", true);
126        org.omg.mof.Reflective.ValueTypeListHelper.write ($out, args);
127        $in = _invoke ($out);
128        org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.RefObjectHelper.read ($in);
129        return $result;
130     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
131        $in = $ex.getInputStream ();
132        String JavaDoc _id = $ex.getId ();
133        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
134           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
135        else
136             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
137     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
138        return ref_create_instance (args);
139     } finally {
140         _releaseReply ($in);
141     }
142   } // ref_create_instance
143

144   public org.omg.mof.Reflective.RefObject[] ref_all_objects (boolean include_subtypes)
145   {
146     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
147     try {
148        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_all_objects", true);
149        $out.write_boolean (include_subtypes);
150        $in = _invoke ($out);
151        org.omg.mof.Reflective.RefObject $result[] = org.omg.mof.Reflective.RefObjectSetHelper.read ($in);
152        return $result;
153     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
154        $in = $ex.getInputStream ();
155        String JavaDoc _id = $ex.getId ();
156        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
157     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
158        return ref_all_objects (include_subtypes);
159     } finally {
160         _releaseReply ($in);
161     }
162   } // ref_all_objects
163

164   public void ref_set_value (org.omg.mof.Reflective.RefObject feature, org.omg.CORBA.Any JavaDoc new_value) throws org.omg.mof.Reflective.MofError
165   {
166     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
167     try {
168        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_set_value", true);
169        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature);
170        org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_value);
171        $in = _invoke ($out);
172     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
173        $in = $ex.getInputStream ();
174        String JavaDoc _id = $ex.getId ();
175        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
176           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
177        else
178             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
179     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
180        ref_set_value (feature, new_value);
181     } finally {
182         _releaseReply ($in);
183     }
184   } // ref_set_value
185

186   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
187   {
188     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
189     try {
190        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_value", true);
191        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature);
192        $in = _invoke ($out);
193        org.omg.CORBA.Any JavaDoc $result = org.omg.mof.Reflective._ValueTypeHelper.read ($in);
194        return $result;
195     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
196        $in = $ex.getInputStream ();
197        String JavaDoc _id = $ex.getId ();
198        if (_id.equals ("IDL:org/omg/mof/Reflective/NotSet:1.0"))
199           throw org.omg.mof.Reflective.NotSetHelper.read ($in);
200        else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
201           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
202        else
203             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
204     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
205        return ref_value (feature);
206     } finally {
207         _releaseReply ($in);
208     }
209   } // ref_value
210

211   public void ref_unset_value () throws org.omg.mof.Reflective.MofError
212   {
213     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
214     try {
215        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_unset_value", true);
216        $in = _invoke ($out);
217     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
218        $in = $ex.getInputStream ();
219        String JavaDoc _id = $ex.getId ();
220        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
221           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
222        else
223             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
224     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
225        ref_unset_value ();
226     } finally {
227         _releaseReply ($in);
228     }
229   } // ref_unset_value
230

231   public void ref_add_value (org.omg.mof.Reflective.RefObject feature, org.omg.CORBA.Any JavaDoc new_element) throws org.omg.mof.Reflective.MofError
232   {
233     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
234     try {
235        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_add_value", true);
236        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature);
237        org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element);
238        $in = _invoke ($out);
239     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
240        $in = $ex.getInputStream ();
241        String JavaDoc _id = $ex.getId ();
242        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
243           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
244        else
245             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
246     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
247        ref_add_value (feature, new_element);
248     } finally {
249         _releaseReply ($in);
250     }
251   } // ref_add_value
252

253   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
254   {
255     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
256     try {
257        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_add_value_before", true);
258        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature);
259        org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element);
260        org.omg.mof.Reflective._ValueTypeHelper.write ($out, before_element);
261        $in = _invoke ($out);
262     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
263        $in = $ex.getInputStream ();
264        String JavaDoc _id = $ex.getId ();
265        if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0"))
266           throw org.omg.mof.Reflective.NotFoundHelper.read ($in);
267        else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
268           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
269        else
270             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
271     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
272        ref_add_value_before (feature, new_element, before_element);
273     } finally {
274         _releaseReply ($in);
275     }
276   } // ref_add_value_before
277

278   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
279   {
280     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
281     try {
282        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_add_value_at", true);
283        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature);
284        org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element);
285        $out.write_ulong (position);
286        $in = _invoke ($out);
287     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
288        $in = $ex.getInputStream ();
289        String JavaDoc _id = $ex.getId ();
290        if (_id.equals ("IDL:org/omg/mof/Reflective/BadPosition:1.0"))
291           throw org.omg.mof.Reflective.BadPositionHelper.read ($in);
292        else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
293           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
294        else
295             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
296     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
297        ref_add_value_at (feature, new_element, position);
298     } finally {
299         _releaseReply ($in);
300     }
301   } // ref_add_value_at
302

303   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
304   {
305     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
306     try {
307        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_modify_value", true);
308        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature);
309        org.omg.mof.Reflective._ValueTypeHelper.write ($out, old_element);
310        org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element);
311        $in = _invoke ($out);
312     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
313        $in = $ex.getInputStream ();
314        String JavaDoc _id = $ex.getId ();
315        if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0"))
316           throw org.omg.mof.Reflective.NotFoundHelper.read ($in);
317        else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
318           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
319        else
320             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
321     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
322        ref_modify_value (feature, old_element, new_element);
323     } finally {
324         _releaseReply ($in);
325     }
326   } // ref_modify_value
327

328   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
329   {
330     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
331     try {
332        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_modify_value_at", true);
333        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature);
334        org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element);
335        $out.write_ulong (position);
336        $in = _invoke ($out);
337     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
338        $in = $ex.getInputStream ();
339        String JavaDoc _id = $ex.getId ();
340        if (_id.equals ("IDL:org/omg/mof/Reflective/BadPosition:1.0"))
341           throw org.omg.mof.Reflective.BadPositionHelper.read ($in);
342        else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
343           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
344        else
345             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
346     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
347        ref_modify_value_at (feature, new_element, position);
348     } finally {
349         _releaseReply ($in);
350     }
351   } // ref_modify_value_at
352

353   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
354   {
355     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
356     try {
357        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_remove_value", true);
358        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature);
359        org.omg.mof.Reflective._ValueTypeHelper.write ($out, existing_element);
360        $in = _invoke ($out);
361     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
362        $in = $ex.getInputStream ();
363        String JavaDoc _id = $ex.getId ();
364        if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0"))
365           throw org.omg.mof.Reflective.NotFoundHelper.read ($in);
366        else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
367           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
368        else
369             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
370     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
371        ref_remove_value (feature, existing_element);
372     } finally {
373         _releaseReply ($in);
374     }
375   } // ref_remove_value
376

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

401   public org.omg.mof.Reflective.RefObject ref_immediate_composite ()
402   {
403     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
404     try {
405        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_immediate_composite", true);
406        $in = _invoke ($out);
407        org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.RefObjectHelper.read ($in);
408        return $result;
409     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
410        $in = $ex.getInputStream ();
411        String JavaDoc _id = $ex.getId ();
412        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
413     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
414        return ref_immediate_composite ();
415     } finally {
416         _releaseReply ($in);
417     }
418   } // ref_immediate_composite
419

420   public org.omg.mof.Reflective.RefObject ref_outermost_composite ()
421   {
422     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
423     try {
424        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_outermost_composite", true);
425        $in = _invoke ($out);
426        org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.RefObjectHelper.read ($in);
427        return $result;
428     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
429        $in = $ex.getInputStream ();
430        String JavaDoc _id = $ex.getId ();
431        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
432     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
433        return ref_outermost_composite ();
434     } finally {
435         _releaseReply ($in);
436     }
437   } // ref_outermost_composite
438

439   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
440   {
441     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
442     try {
443        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_invoke_operation", true);
444        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, requested_operation);
445        org.omg.mof.Reflective.ValueTypeListHelper.write ($out, args.value);
446        $in = _invoke ($out);
447        org.omg.CORBA.Any JavaDoc $result = org.omg.mof.Reflective._ValueTypeHelper.read ($in);
448        args.value = org.omg.mof.Reflective.ValueTypeListHelper.read ($in);
449        return $result;
450     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
451        $in = $ex.getInputStream ();
452        String JavaDoc _id = $ex.getId ();
453        if (_id.equals ("IDL:org/omg/mof/Reflective/OtherException:1.0"))
454           throw org.omg.mof.Reflective.OtherExceptionHelper.read ($in);
455        else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
456           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
457        else
458             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
459     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
460        return ref_invoke_operation (requested_operation, args);
461     } finally {
462         _releaseReply ($in);
463     }
464   } // ref_invoke_operation
465

466   public String JavaDoc ref_mof_id ()
467   {
468     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
469     try {
470        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_mof_id", true);
471        $in = _invoke ($out);
472        String JavaDoc $result = $in.read_string ();
473        return $result;
474     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
475        $in = $ex.getInputStream ();
476        String JavaDoc _id = $ex.getId ();
477        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
478     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
479        return ref_mof_id ();
480     } finally {
481         _releaseReply ($in);
482     }
483   } // ref_mof_id
484

485   public org.omg.mof.Reflective.RefObject ref_meta_object ()
486   {
487     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
488     try {
489        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_meta_object", true);
490        $in = _invoke ($out);
491        org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.DesignatorTypeHelper.read ($in);
492        return $result;
493     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
494        $in = $ex.getInputStream ();
495        String JavaDoc _id = $ex.getId ();
496        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
497     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
498        return ref_meta_object ();
499     } finally {
500         _releaseReply ($in);
501     }
502   } // ref_meta_object
503

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

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

543   public org.omg.mof.Reflective._RefPackage ref_outermost_package ()
544   {
545     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
546     try {
547        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_outermost_package", true);
548        $in = _invoke ($out);
549        org.omg.mof.Reflective._RefPackage $result = org.omg.mof.Reflective._RefPackageHelper.read ($in);
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_outermost_package ();
557     } finally {
558         _releaseReply ($in);
559     }
560   } // ref_outermost_package
561

562   public void ref_delete () throws org.omg.mof.Reflective.MofError
563   {
564     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
565     try {
566        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_delete", true);
567        $in = _invoke ($out);
568     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
569        $in = $ex.getInputStream ();
570        String JavaDoc _id = $ex.getId ();
571        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
572           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
573        else
574             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
575     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
576        ref_delete ();
577     } finally {
578         _releaseReply ($in);
579     }
580   } // ref_delete
581

582   // Type-specific CORBA::Object operations
583
private static String JavaDoc[] __ids = {
584     "IDL:org/omg/mof/Model/ConstraintClass:1.0",
585     "IDL:org/omg/mof/Model/ModelElementClass:1.0",
586     "IDL:org/omg/mof/Reflective/RefObject:1.0",
587     "IDL:org/omg/mof/Reflective/RefBaseObject:1.0"};
588
589   public String JavaDoc[] _ids ()
590   {
591     return (String JavaDoc[])__ids.clone ();
592   }
593
594   private void readObject (java.io.ObjectInputStream JavaDoc s) throws java.io.IOException JavaDoc
595   {
596      String JavaDoc str = s.readUTF ();
597      String JavaDoc[] args = null;
598      java.util.Properties JavaDoc props = null;
599      org.omg.CORBA.Object JavaDoc obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
600      org.omg.CORBA.portable.Delegate JavaDoc delegate = ((org.omg.CORBA.portable.ObjectImpl JavaDoc) obj)._get_delegate ();
601      _set_delegate (delegate);
602   }
603
604   private void writeObject (java.io.ObjectOutputStream JavaDoc s) throws java.io.IOException JavaDoc
605   {
606      String JavaDoc[] args = null;
607      java.util.Properties JavaDoc props = null;
608      String JavaDoc str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
609      s.writeUTF (str);
610   }
611 } // class _ConstraintClassStub
612
Popular Tags