KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > omg > mof > Reflective > __RefPackageStub


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

10
11
12 // end of RefAssociation interface
13
public class __RefPackageStub extends org.omg.CORBA.portable.ObjectImpl JavaDoc implements org.omg.mof.Reflective._RefPackage
14 {
15
16   public org.omg.mof.Reflective.RefObject ref_class_ref (org.omg.mof.Reflective.RefObject _class) 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 ("ref_class_ref", true);
21        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, _class);
22        $in = _invoke ($out);
23        org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.RefObjectHelper.read ($in);
24        return $result;
25     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
26        $in = $ex.getInputStream ();
27        String JavaDoc _id = $ex.getId ();
28        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
29           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
30        else
31             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
32     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
33        return ref_class_ref (_class);
34     } finally {
35         _releaseReply ($in);
36     }
37   } // ref_class_ref
38

39   public org.omg.mof.Reflective.RefAssociation ref_association_ref (org.omg.mof.Reflective.RefObject association) throws org.omg.mof.Reflective.MofError
40   {
41     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
42     try {
43        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_association_ref", true);
44        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, association);
45        $in = _invoke ($out);
46        org.omg.mof.Reflective.RefAssociation $result = org.omg.mof.Reflective.RefAssociationHelper.read ($in);
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 ref_association_ref (association);
57     } finally {
58         _releaseReply ($in);
59     }
60   } // ref_association_ref
61

62   public org.omg.mof.Reflective._RefPackage ref_package_ref (org.omg.mof.Reflective.RefObject _package) 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 ("ref_package_ref", true);
67        org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, _package);
68        $in = _invoke ($out);
69        org.omg.mof.Reflective._RefPackage $result = org.omg.mof.Reflective._RefPackageHelper.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 ref_package_ref (_package);
80     } finally {
81         _releaseReply ($in);
82     }
83   } // ref_package_ref
84

85   public String JavaDoc ref_mof_id ()
86   {
87     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
88     try {
89        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_mof_id", true);
90        $in = _invoke ($out);
91        String JavaDoc $result = $in.read_string ();
92        return $result;
93     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
94        $in = $ex.getInputStream ();
95        String JavaDoc _id = $ex.getId ();
96        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
97     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
98        return ref_mof_id ();
99     } finally {
100         _releaseReply ($in);
101     }
102   } // ref_mof_id
103

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

123   public boolean ref_itself (org.omg.mof.Reflective.RefBaseObject other_object)
124   {
125     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
126     try {
127        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_itself", true);
128        org.omg.mof.Reflective.RefBaseObjectHelper.write ($out, other_object);
129        $in = _invoke ($out);
130        boolean $result = $in.read_boolean ();
131        return $result;
132     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
133        $in = $ex.getInputStream ();
134        String JavaDoc _id = $ex.getId ();
135        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
136     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
137        return ref_itself (other_object);
138     } finally {
139         _releaseReply ($in);
140     }
141   } // ref_itself
142

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

162   public org.omg.mof.Reflective._RefPackage ref_outermost_package ()
163   {
164     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
165     try {
166        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_outermost_package", true);
167        $in = _invoke ($out);
168        org.omg.mof.Reflective._RefPackage $result = org.omg.mof.Reflective._RefPackageHelper.read ($in);
169        return $result;
170     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
171        $in = $ex.getInputStream ();
172        String JavaDoc _id = $ex.getId ();
173        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
174     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
175        return ref_outermost_package ();
176     } finally {
177         _releaseReply ($in);
178     }
179   } // ref_outermost_package
180

181   public void ref_delete () throws org.omg.mof.Reflective.MofError
182   {
183     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
184     try {
185        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_delete", true);
186        $in = _invoke ($out);
187     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
188        $in = $ex.getInputStream ();
189        String JavaDoc _id = $ex.getId ();
190        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
191           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
192        else
193             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
194     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
195        ref_delete ();
196     } finally {
197         _releaseReply ($in);
198     }
199   } // ref_delete
200

201   // Type-specific CORBA::Object operations
202
private static String JavaDoc[] __ids = {
203     "IDL:org/omg/mof/Reflective/RefPackage:1.0",
204     "IDL:org/omg/mof/Reflective/RefBaseObject:1.0"};
205
206   public String JavaDoc[] _ids ()
207   {
208     return (String JavaDoc[])__ids.clone ();
209   }
210
211   private void readObject (java.io.ObjectInputStream JavaDoc s) throws java.io.IOException JavaDoc
212   {
213      String JavaDoc str = s.readUTF ();
214      String JavaDoc[] args = null;
215      java.util.Properties JavaDoc props = null;
216      org.omg.CORBA.Object JavaDoc obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
217      org.omg.CORBA.portable.Delegate JavaDoc delegate = ((org.omg.CORBA.portable.ObjectImpl JavaDoc) obj)._get_delegate ();
218      _set_delegate (delegate);
219   }
220
221   private void writeObject (java.io.ObjectOutputStream JavaDoc s) throws java.io.IOException JavaDoc
222   {
223      String JavaDoc[] args = null;
224      java.util.Properties JavaDoc props = null;
225      String JavaDoc str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
226      s.writeUTF (str);
227   }
228 } // class __RefPackageStub
229
Popular Tags