KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.omg.mof.Model;
2
3
4 /**
5 * org/omg/mof/Model/_DependsOnStub.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 _DependsOnStub extends org.omg.CORBA.portable.ObjectImpl JavaDoc implements org.omg.mof.Model.DependsOn
14 {
15
16   public org.omg.mof.Model.DependsOnLink[] all_depends_on_Links () throws org.omg.mof.Reflective.MofError
17   {
18     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
19     try {
20        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("all_depends_on_Links", true);
21        $in = _invoke ($out);
22        org.omg.mof.Model.DependsOnLink $result[] = org.omg.mof.Model.DependsOnLinkSetHelper.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        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
28           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
29        else
30             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
31     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
32        return all_depends_on_Links ();
33     } finally {
34         _releaseReply ($in);
35     }
36   } // all_depends_on_Links
37

38   public boolean exists (org.omg.mof.Model.ModelElement dependent, org.omg.mof.Model.ModelElement provider) throws org.omg.mof.Reflective.MofError
39   {
40     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
41     try {
42        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("exists", true);
43        org.omg.mof.Model.ModelElementHelper.write ($out, dependent);
44        org.omg.mof.Model.ModelElementHelper.write ($out, provider);
45        $in = _invoke ($out);
46        boolean $result = $in.read_boolean ();
47        return $result;
48     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
49        $in = $ex.getInputStream ();
50        String JavaDoc _id = $ex.getId ();
51        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
52           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
53        else
54             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
55     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
56        return exists (dependent, provider);
57     } finally {
58         _releaseReply ($in);
59     }
60   } // exists
61

62   public org.omg.mof.Model.ModelElement[] dependent (org.omg.mof.Model.ModelElement provider) throws org.omg.mof.Reflective.MofError
63   {
64     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
65     try {
66        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("dependent", true);
67        org.omg.mof.Model.ModelElementHelper.write ($out, provider);
68        $in = _invoke ($out);
69        org.omg.mof.Model.ModelElement $result[] = org.omg.mof.Model.ModelElementBagHelper.read ($in);
70        return $result;
71     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
72        $in = $ex.getInputStream ();
73        String JavaDoc _id = $ex.getId ();
74        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
75           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
76        else
77             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
78     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
79        return dependent (provider);
80     } finally {
81         _releaseReply ($in);
82     }
83   } // dependent
84

85   public org.omg.mof.Model.ModelElement[] provider (org.omg.mof.Model.ModelElement dependent) throws org.omg.mof.Reflective.MofError
86   {
87     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
88     try {
89        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("provider", true);
90        org.omg.mof.Model.ModelElementHelper.write ($out, dependent);
91        $in = _invoke ($out);
92        org.omg.mof.Model.ModelElement $result[] = org.omg.mof.Model.ModelElementBagHelper.read ($in);
93        return $result;
94     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
95        $in = $ex.getInputStream ();
96        String JavaDoc _id = $ex.getId ();
97        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
98           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
99        else
100             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
101     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
102        return provider (dependent);
103     } finally {
104         _releaseReply ($in);
105     }
106   } // provider
107

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

127   public boolean ref_link_exists (org.omg.mof.Reflective.RefObject[] some_link) throws org.omg.mof.Reflective.MofError
128   {
129     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
130     try {
131        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_link_exists", true);
132        org.omg.mof.Reflective.LinkHelper.write ($out, some_link);
133        $in = _invoke ($out);
134        boolean $result = $in.read_boolean ();
135        return $result;
136     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
137        $in = $ex.getInputStream ();
138        String JavaDoc _id = $ex.getId ();
139        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
140           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
141        else
142             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
143     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
144        return ref_link_exists (some_link);
145     } finally {
146         _releaseReply ($in);
147     }
148   } // ref_link_exists
149

150   public org.omg.mof.Reflective.RefObject[] ref_query (org.omg.mof.Reflective.RefObject query_end, org.omg.mof.Reflective.RefObject query_object) throws org.omg.mof.Reflective.MofError
151   {
152     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
153     try {
154        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_query", true);
155        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, query_end);
156        org.omg.mof.Reflective.RefObjectHelper.write ($out, query_object);
157        $in = _invoke ($out);
158        org.omg.mof.Reflective.RefObject $result[] = org.omg.mof.Reflective.RefObjectUListHelper.read ($in);
159        return $result;
160     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
161        $in = $ex.getInputStream ();
162        String JavaDoc _id = $ex.getId ();
163        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
164           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
165        else
166             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
167     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
168        return ref_query (query_end, query_object);
169     } finally {
170         _releaseReply ($in);
171     }
172   } // ref_query
173

174   public void ref_add_link (org.omg.mof.Reflective.RefObject[] new_link) throws org.omg.mof.Reflective.MofError
175   {
176     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
177     try {
178        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_add_link", true);
179        org.omg.mof.Reflective.LinkHelper.write ($out, new_link);
180        $in = _invoke ($out);
181     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
182        $in = $ex.getInputStream ();
183        String JavaDoc _id = $ex.getId ();
184        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
185           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
186        else
187             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
188     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
189        ref_add_link (new_link);
190     } finally {
191         _releaseReply ($in);
192     }
193   } // ref_add_link
194

195   public void ref_add_link_before (org.omg.mof.Reflective.RefObject[] new_link, org.omg.mof.Reflective.RefObject position_end, org.omg.mof.Reflective.RefObject before) throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError
196   {
197     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
198     try {
199        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_add_link_before", true);
200        org.omg.mof.Reflective.LinkHelper.write ($out, new_link);
201        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, position_end);
202        org.omg.mof.Reflective.RefObjectHelper.write ($out, before);
203        $in = _invoke ($out);
204     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
205        $in = $ex.getInputStream ();
206        String JavaDoc _id = $ex.getId ();
207        if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0"))
208           throw org.omg.mof.Reflective.NotFoundHelper.read ($in);
209        else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
210           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
211        else
212             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
213     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
214        ref_add_link_before (new_link, position_end, before);
215     } finally {
216         _releaseReply ($in);
217     }
218   } // ref_add_link_before
219

220   public void ref_modify_link (org.omg.mof.Reflective.RefObject[] old_link, org.omg.mof.Reflective.RefObject position_end, org.omg.mof.Reflective.RefObject new_object) throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError
221   {
222     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
223     try {
224        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_modify_link", true);
225        org.omg.mof.Reflective.LinkHelper.write ($out, old_link);
226        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, position_end);
227        org.omg.mof.Reflective.RefObjectHelper.write ($out, new_object);
228        $in = _invoke ($out);
229     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
230        $in = $ex.getInputStream ();
231        String JavaDoc _id = $ex.getId ();
232        if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0"))
233           throw org.omg.mof.Reflective.NotFoundHelper.read ($in);
234        else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
235           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
236        else
237             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
238     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
239        ref_modify_link (old_link, position_end, new_object);
240     } finally {
241         _releaseReply ($in);
242     }
243   } // ref_modify_link
244

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

268   public String JavaDoc ref_mof_id ()
269   {
270     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
271     try {
272        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_mof_id", true);
273        $in = _invoke ($out);
274        String JavaDoc $result = $in.read_string ();
275        return $result;
276     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
277        $in = $ex.getInputStream ();
278        String JavaDoc _id = $ex.getId ();
279        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
280     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
281        return ref_mof_id ();
282     } finally {
283         _releaseReply ($in);
284     }
285   } // ref_mof_id
286

287   public org.omg.mof.Reflective.RefObject ref_meta_object ()
288   {
289     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
290     try {
291        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_meta_object", true);
292        $in = _invoke ($out);
293        org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.DesignatorTypeHelper.read ($in);
294        return $result;
295     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
296        $in = $ex.getInputStream ();
297        String JavaDoc _id = $ex.getId ();
298        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
299     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
300        return ref_meta_object ();
301     } finally {
302         _releaseReply ($in);
303     }
304   } // ref_meta_object
305

306   public boolean ref_itself (org.omg.mof.Reflective.RefBaseObject other_object)
307   {
308     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
309     try {
310        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_itself", true);
311        org.omg.mof.Reflective.RefBaseObjectHelper.write ($out, other_object);
312        $in = _invoke ($out);
313        boolean $result = $in.read_boolean ();
314        return $result;
315     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
316        $in = $ex.getInputStream ();
317        String JavaDoc _id = $ex.getId ();
318        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
319     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
320        return ref_itself (other_object);
321     } finally {
322         _releaseReply ($in);
323     }
324   } // ref_itself
325

326   public org.omg.mof.Reflective._RefPackage ref_immediate_package ()
327   {
328     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
329     try {
330        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_immediate_package", true);
331        $in = _invoke ($out);
332        org.omg.mof.Reflective._RefPackage $result = org.omg.mof.Reflective._RefPackageHelper.read ($in);
333        return $result;
334     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
335        $in = $ex.getInputStream ();
336        String JavaDoc _id = $ex.getId ();
337        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
338     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
339        return ref_immediate_package ();
340     } finally {
341         _releaseReply ($in);
342     }
343   } // ref_immediate_package
344

345   public org.omg.mof.Reflective._RefPackage ref_outermost_package ()
346   {
347     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
348     try {
349        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_outermost_package", true);
350        $in = _invoke ($out);
351        org.omg.mof.Reflective._RefPackage $result = org.omg.mof.Reflective._RefPackageHelper.read ($in);
352        return $result;
353     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
354        $in = $ex.getInputStream ();
355        String JavaDoc _id = $ex.getId ();
356        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
357     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
358        return ref_outermost_package ();
359     } finally {
360         _releaseReply ($in);
361     }
362   } // ref_outermost_package
363

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

384   // Type-specific CORBA::Object operations
385
private static String JavaDoc[] __ids = {
386     "IDL:org/omg/mof/Model/DependsOn:1.0",
387     "IDL:org/omg/mof/Reflective/RefAssociation:1.0",
388     "IDL:org/omg/mof/Reflective/RefBaseObject:1.0"};
389
390   public String JavaDoc[] _ids ()
391   {
392     return (String JavaDoc[])__ids.clone ();
393   }
394
395   private void readObject (java.io.ObjectInputStream JavaDoc s) throws java.io.IOException JavaDoc
396   {
397      String JavaDoc str = s.readUTF ();
398      String JavaDoc[] args = null;
399      java.util.Properties JavaDoc props = null;
400      org.omg.CORBA.Object JavaDoc obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
401      org.omg.CORBA.portable.Delegate JavaDoc delegate = ((org.omg.CORBA.portable.ObjectImpl JavaDoc) obj)._get_delegate ();
402      _set_delegate (delegate);
403   }
404
405   private void writeObject (java.io.ObjectOutputStream JavaDoc s) throws java.io.IOException JavaDoc
406   {
407      String JavaDoc[] args = null;
408      java.util.Properties JavaDoc props = null;
409      String JavaDoc str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
410      s.writeUTF (str);
411   }
412 } // class _DependsOnStub
413
Popular Tags