KickJava   Java API By Example, From Geeks To Geeks.

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


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

35   public org.omg.mof.Model.ModelElement[] all_of_type_model_element ()
36   {
37     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
38     try {
39        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("_get_all_of_type_model_element", true);
40        $in = _invoke ($out);
41        org.omg.mof.Model.ModelElement $result[] = org.omg.mof.Model.ModelElementSetHelper.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_type_model_element ();
49     } finally {
50         _releaseReply ($in);
51     }
52   } // all_of_type_model_element
53

54   public boolean ref_is_instance_of (org.omg.mof.Reflective.RefObject some_class, boolean consider_subtypes)
55   {
56     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
57     try {
58        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_is_instance_of", true);
59        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, some_class);
60        $out.write_boolean (consider_subtypes);
61        $in = _invoke ($out);
62        boolean $result = $in.read_boolean ();
63        return $result;
64     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
65        $in = $ex.getInputStream ();
66        String JavaDoc _id = $ex.getId ();
67        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
68     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
69        return ref_is_instance_of (some_class, consider_subtypes);
70     } finally {
71         _releaseReply ($in);
72     }
73   } // ref_is_instance_of
74

75   public org.omg.mof.Reflective.RefObject ref_create_instance (org.omg.CORBA.Any JavaDoc[] args) throws org.omg.mof.Reflective.MofError
76   {
77     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
78     try {
79        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_create_instance", true);
80        org.omg.mof.Reflective.ValueTypeListHelper.write ($out, args);
81        $in = _invoke ($out);
82        org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.RefObjectHelper.read ($in);
83        return $result;
84     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
85        $in = $ex.getInputStream ();
86        String JavaDoc _id = $ex.getId ();
87        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
88           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
89        else
90             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
91     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
92        return ref_create_instance (args);
93     } finally {
94         _releaseReply ($in);
95     }
96   } // ref_create_instance
97

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

118   public void ref_set_value (org.omg.mof.Reflective.RefObject feature, org.omg.CORBA.Any JavaDoc new_value) throws org.omg.mof.Reflective.MofError
119   {
120     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
121     try {
122        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_set_value", true);
123        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature);
124        org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_value);
125        $in = _invoke ($out);
126     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
127        $in = $ex.getInputStream ();
128        String JavaDoc _id = $ex.getId ();
129        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
130           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
131        else
132             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
133     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
134        ref_set_value (feature, new_value);
135     } finally {
136         _releaseReply ($in);
137     }
138   } // ref_set_value
139

140   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
141   {
142     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
143     try {
144        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_value", true);
145        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature);
146        $in = _invoke ($out);
147        org.omg.CORBA.Any JavaDoc $result = org.omg.mof.Reflective._ValueTypeHelper.read ($in);
148        return $result;
149     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
150        $in = $ex.getInputStream ();
151        String JavaDoc _id = $ex.getId ();
152        if (_id.equals ("IDL:org/omg/mof/Reflective/NotSet:1.0"))
153           throw org.omg.mof.Reflective.NotSetHelper.read ($in);
154        else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
155           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
156        else
157             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
158     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
159        return ref_value (feature);
160     } finally {
161         _releaseReply ($in);
162     }
163   } // ref_value
164

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

185   public void ref_add_value (org.omg.mof.Reflective.RefObject feature, org.omg.CORBA.Any JavaDoc new_element) throws org.omg.mof.Reflective.MofError
186   {
187     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
188     try {
189        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_add_value", true);
190        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature);
191        org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element);
192        $in = _invoke ($out);
193     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
194        $in = $ex.getInputStream ();
195        String JavaDoc _id = $ex.getId ();
196        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
197           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
198        else
199             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
200     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
201        ref_add_value (feature, new_element);
202     } finally {
203         _releaseReply ($in);
204     }
205   } // ref_add_value
206

207   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
208   {
209     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
210     try {
211        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_add_value_before", true);
212        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature);
213        org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element);
214        org.omg.mof.Reflective._ValueTypeHelper.write ($out, before_element);
215        $in = _invoke ($out);
216     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
217        $in = $ex.getInputStream ();
218        String JavaDoc _id = $ex.getId ();
219        if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0"))
220           throw org.omg.mof.Reflective.NotFoundHelper.read ($in);
221        else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
222           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
223        else
224             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
225     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
226        ref_add_value_before (feature, new_element, before_element);
227     } finally {
228         _releaseReply ($in);
229     }
230   } // ref_add_value_before
231

232   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
233   {
234     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
235     try {
236        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_add_value_at", true);
237        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature);
238        org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element);
239        $out.write_ulong (position);
240        $in = _invoke ($out);
241     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
242        $in = $ex.getInputStream ();
243        String JavaDoc _id = $ex.getId ();
244        if (_id.equals ("IDL:org/omg/mof/Reflective/BadPosition:1.0"))
245           throw org.omg.mof.Reflective.BadPositionHelper.read ($in);
246        else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
247           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
248        else
249             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
250     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
251        ref_add_value_at (feature, new_element, position);
252     } finally {
253         _releaseReply ($in);
254     }
255   } // ref_add_value_at
256

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

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

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

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

355   public org.omg.mof.Reflective.RefObject ref_immediate_composite ()
356   {
357     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
358     try {
359        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_immediate_composite", true);
360        $in = _invoke ($out);
361        org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.RefObjectHelper.read ($in);
362        return $result;
363     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
364        $in = $ex.getInputStream ();
365        String JavaDoc _id = $ex.getId ();
366        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
367     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
368        return ref_immediate_composite ();
369     } finally {
370         _releaseReply ($in);
371     }
372   } // ref_immediate_composite
373

374   public org.omg.mof.Reflective.RefObject ref_outermost_composite ()
375   {
376     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
377     try {
378        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_outermost_composite", true);
379        $in = _invoke ($out);
380        org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.RefObjectHelper.read ($in);
381        return $result;
382     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
383        $in = $ex.getInputStream ();
384        String JavaDoc _id = $ex.getId ();
385        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
386     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
387        return ref_outermost_composite ();
388     } finally {
389         _releaseReply ($in);
390     }
391   } // ref_outermost_composite
392

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

420   public String JavaDoc ref_mof_id ()
421   {
422     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
423     try {
424        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_mof_id", true);
425        $in = _invoke ($out);
426        String JavaDoc $result = $in.read_string ();
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_mof_id ();
434     } finally {
435         _releaseReply ($in);
436     }
437   } // ref_mof_id
438

439   public org.omg.mof.Reflective.RefObject ref_meta_object ()
440   {
441     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
442     try {
443        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_meta_object", true);
444        $in = _invoke ($out);
445        org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.DesignatorTypeHelper.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_meta_object ();
453     } finally {
454         _releaseReply ($in);
455     }
456   } // ref_meta_object
457

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

478   public org.omg.mof.Reflective._RefPackage ref_immediate_package ()
479   {
480     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
481     try {
482        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_immediate_package", true);
483        $in = _invoke ($out);
484        org.omg.mof.Reflective._RefPackage $result = org.omg.mof.Reflective._RefPackageHelper.read ($in);
485        return $result;
486     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
487        $in = $ex.getInputStream ();
488        String JavaDoc _id = $ex.getId ();
489        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
490     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
491        return ref_immediate_package ();
492     } finally {
493         _releaseReply ($in);
494     }
495   } // ref_immediate_package
496

497   public org.omg.mof.Reflective._RefPackage ref_outermost_package ()
498   {
499     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
500     try {
501        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_outermost_package", true);
502        $in = _invoke ($out);
503        org.omg.mof.Reflective._RefPackage $result = org.omg.mof.Reflective._RefPackageHelper.read ($in);
504        return $result;
505     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
506        $in = $ex.getInputStream ();
507        String JavaDoc _id = $ex.getId ();
508        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
509     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
510        return ref_outermost_package ();
511     } finally {
512         _releaseReply ($in);
513     }
514   } // ref_outermost_package
515

516   public void ref_delete () throws org.omg.mof.Reflective.MofError
517   {
518     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
519     try {
520        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_delete", true);
521        $in = _invoke ($out);
522     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
523        $in = $ex.getInputStream ();
524        String JavaDoc _id = $ex.getId ();
525        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
526           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
527        else
528             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
529     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
530        ref_delete ();
531     } finally {
532         _releaseReply ($in);
533     }
534   } // ref_delete
535

536   // Type-specific CORBA::Object operations
537
private static String JavaDoc[] __ids = {
538     "IDL:org/omg/mof/Model/NamespaceClass:1.0",
539     "IDL:org/omg/mof/Model/ModelElementClass:1.0",
540     "IDL:org/omg/mof/Reflective/RefObject:1.0",
541     "IDL:org/omg/mof/Reflective/RefBaseObject:1.0"};
542
543   public String JavaDoc[] _ids ()
544   {
545     return (String JavaDoc[])__ids.clone ();
546   }
547
548   private void readObject (java.io.ObjectInputStream JavaDoc s) throws java.io.IOException JavaDoc
549   {
550      String JavaDoc str = s.readUTF ();
551      String JavaDoc[] args = null;
552      java.util.Properties JavaDoc props = null;
553      org.omg.CORBA.Object JavaDoc obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
554      org.omg.CORBA.portable.Delegate JavaDoc delegate = ((org.omg.CORBA.portable.ObjectImpl JavaDoc) obj)._get_delegate ();
555      _set_delegate (delegate);
556   }
557
558   private void writeObject (java.io.ObjectOutputStream JavaDoc s) throws java.io.IOException JavaDoc
559   {
560      String JavaDoc[] args = null;
561      java.util.Properties JavaDoc props = null;
562      String JavaDoc str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
563      s.writeUTF (str);
564   }
565 } // class _NamespaceClassStub
566
Popular Tags