KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.omg.mof.Reflective;
2
3
4 /**
5 * org/omg/mof/Reflective/_RefBaseObjectStub.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 public class _RefBaseObjectStub extends org.omg.CORBA.portable.ObjectImpl JavaDoc implements org.omg.mof.Reflective.RefBaseObject
12 {
13
14   public String JavaDoc ref_mof_id ()
15   {
16     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
17     try {
18        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_mof_id", true);
19        $in = _invoke ($out);
20        String JavaDoc $result = $in.read_string ();
21        return $result;
22     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
23        $in = $ex.getInputStream ();
24        String JavaDoc _id = $ex.getId ();
25        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
26     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
27        return ref_mof_id ();
28     } finally {
29         _releaseReply ($in);
30     }
31   } // ref_mof_id
32

33   public org.omg.mof.Reflective.RefObject ref_meta_object ()
34   {
35     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
36     try {
37        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_meta_object", true);
38        $in = _invoke ($out);
39        org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.DesignatorTypeHelper.read ($in);
40        return $result;
41     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
42        $in = $ex.getInputStream ();
43        String JavaDoc _id = $ex.getId ();
44        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
45     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
46        return ref_meta_object ();
47     } finally {
48         _releaseReply ($in);
49     }
50   } // ref_meta_object
51

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

72   public org.omg.mof.Reflective._RefPackage ref_immediate_package ()
73   {
74     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
75     try {
76        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_immediate_package", true);
77        $in = _invoke ($out);
78        org.omg.mof.Reflective._RefPackage $result = org.omg.mof.Reflective._RefPackageHelper.read ($in);
79        return $result;
80     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
81        $in = $ex.getInputStream ();
82        String JavaDoc _id = $ex.getId ();
83        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
84     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
85        return ref_immediate_package ();
86     } finally {
87         _releaseReply ($in);
88     }
89   } // ref_immediate_package
90

91   public org.omg.mof.Reflective._RefPackage ref_outermost_package ()
92   {
93     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
94     try {
95        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_outermost_package", true);
96        $in = _invoke ($out);
97        org.omg.mof.Reflective._RefPackage $result = org.omg.mof.Reflective._RefPackageHelper.read ($in);
98        return $result;
99     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
100        $in = $ex.getInputStream ();
101        String JavaDoc _id = $ex.getId ();
102        throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
103     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
104        return ref_outermost_package ();
105     } finally {
106         _releaseReply ($in);
107     }
108   } // ref_outermost_package
109

110   public void ref_delete () throws org.omg.mof.Reflective.MofError
111   {
112     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
113     try {
114        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("ref_delete", true);
115        $in = _invoke ($out);
116     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
117        $in = $ex.getInputStream ();
118        String JavaDoc _id = $ex.getId ();
119        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
120           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
121        else
122             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
123     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
124        ref_delete ();
125     } finally {
126         _releaseReply ($in);
127     }
128   } // ref_delete
129

130   // Type-specific CORBA::Object operations
131
private static String JavaDoc[] __ids = {
132     "IDL:org/omg/mof/Reflective/RefBaseObject:1.0"};
133
134   public String JavaDoc[] _ids ()
135   {
136     return (String JavaDoc[])__ids.clone ();
137   }
138
139   private void readObject (java.io.ObjectInputStream JavaDoc s) throws java.io.IOException JavaDoc
140   {
141      String JavaDoc str = s.readUTF ();
142      String JavaDoc[] args = null;
143      java.util.Properties JavaDoc props = null;
144      org.omg.CORBA.Object JavaDoc obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
145      org.omg.CORBA.portable.Delegate JavaDoc delegate = ((org.omg.CORBA.portable.ObjectImpl JavaDoc) obj)._get_delegate ();
146      _set_delegate (delegate);
147   }
148
149   private void writeObject (java.io.ObjectOutputStream JavaDoc s) throws java.io.IOException JavaDoc
150   {
151      String JavaDoc[] args = null;
152      java.util.Properties JavaDoc props = null;
153      String JavaDoc str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
154      s.writeUTF (str);
155   }
156 } // class _RefBaseObjectStub
157
Popular Tags