KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.omg.mof.Reflective;
2
3
4 /**
5 * org/omg/mof/Reflective/_RefPackagePOA.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 abstract class _RefPackagePOA extends org.omg.PortableServer.Servant JavaDoc
14  implements org.omg.mof.Reflective._RefPackageOperations, org.omg.CORBA.portable.InvokeHandler JavaDoc
15 {
16
17   // Constructors
18

19   private static java.util.Hashtable JavaDoc _methods = new java.util.Hashtable JavaDoc ();
20   static
21   {
22     _methods.put ("ref_class_ref", new java.lang.Integer JavaDoc (0));
23     _methods.put ("ref_association_ref", new java.lang.Integer JavaDoc (1));
24     _methods.put ("ref_package_ref", new java.lang.Integer JavaDoc (2));
25     _methods.put ("ref_mof_id", new java.lang.Integer JavaDoc (3));
26     _methods.put ("ref_meta_object", new java.lang.Integer JavaDoc (4));
27     _methods.put ("ref_itself", new java.lang.Integer JavaDoc (5));
28     _methods.put ("ref_immediate_package", new java.lang.Integer JavaDoc (6));
29     _methods.put ("ref_outermost_package", new java.lang.Integer JavaDoc (7));
30     _methods.put ("ref_delete", new java.lang.Integer JavaDoc (8));
31   }
32
33   public org.omg.CORBA.portable.OutputStream JavaDoc _invoke (String JavaDoc $method,
34                                 org.omg.CORBA.portable.InputStream JavaDoc in,
35                                 org.omg.CORBA.portable.ResponseHandler JavaDoc $rh)
36   {
37     org.omg.CORBA.portable.OutputStream JavaDoc out = null;
38     java.lang.Integer JavaDoc __method = (java.lang.Integer JavaDoc)_methods.get ($method);
39     if (__method == null)
40       throw new org.omg.CORBA.BAD_OPERATION JavaDoc (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
41
42     switch (__method.intValue ())
43     {
44        case 0: // org/omg/mof/Reflective/_RefPackage/ref_class_ref
45
{
46          try {
47            org.omg.mof.Reflective.RefObject _class = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
48            org.omg.mof.Reflective.RefObject $result = null;
49            $result = this.ref_class_ref (_class);
50            out = $rh.createReply();
51            org.omg.mof.Reflective.RefObjectHelper.write (out, $result);
52          } catch (org.omg.mof.Reflective.MofError $ex) {
53            out = $rh.createExceptionReply ();
54            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
55          }
56          break;
57        }
58
59        case 1: // org/omg/mof/Reflective/_RefPackage/ref_association_ref
60
{
61          try {
62            org.omg.mof.Reflective.RefObject association = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
63            org.omg.mof.Reflective.RefAssociation $result = null;
64            $result = this.ref_association_ref (association);
65            out = $rh.createReply();
66            org.omg.mof.Reflective.RefAssociationHelper.write (out, $result);
67          } catch (org.omg.mof.Reflective.MofError $ex) {
68            out = $rh.createExceptionReply ();
69            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
70          }
71          break;
72        }
73
74        case 2: // org/omg/mof/Reflective/_RefPackage/ref_package_ref
75
{
76          try {
77            org.omg.mof.Reflective.RefObject _package = org.omg.mof.Reflective.DesignatorTypeHelper.read (in);
78            org.omg.mof.Reflective._RefPackage $result = null;
79            $result = this.ref_package_ref (_package);
80            out = $rh.createReply();
81            org.omg.mof.Reflective._RefPackageHelper.write (out, $result);
82          } catch (org.omg.mof.Reflective.MofError $ex) {
83            out = $rh.createExceptionReply ();
84            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
85          }
86          break;
87        }
88
89        case 3: // org/omg/mof/Reflective/RefBaseObject/ref_mof_id
90
{
91          String JavaDoc $result = null;
92          $result = this.ref_mof_id ();
93          out = $rh.createReply();
94          out.write_string ($result);
95          break;
96        }
97
98        case 4: // org/omg/mof/Reflective/RefBaseObject/ref_meta_object
99
{
100          org.omg.mof.Reflective.RefObject $result = null;
101          $result = this.ref_meta_object ();
102          out = $rh.createReply();
103          org.omg.mof.Reflective.RefObjectHelper.write (out, $result);
104          break;
105        }
106
107        case 5: // org/omg/mof/Reflective/RefBaseObject/ref_itself
108
{
109          org.omg.mof.Reflective.RefBaseObject other_object = org.omg.mof.Reflective.RefBaseObjectHelper.read (in);
110          boolean $result = false;
111          $result = this.ref_itself (other_object);
112          out = $rh.createReply();
113          out.write_boolean ($result);
114          break;
115        }
116
117        case 6: // org/omg/mof/Reflective/RefBaseObject/ref_immediate_package
118
{
119          org.omg.mof.Reflective._RefPackage $result = null;
120          $result = this.ref_immediate_package ();
121          out = $rh.createReply();
122          org.omg.mof.Reflective._RefPackageHelper.write (out, $result);
123          break;
124        }
125
126        case 7: // org/omg/mof/Reflective/RefBaseObject/ref_outermost_package
127
{
128          org.omg.mof.Reflective._RefPackage $result = null;
129          $result = this.ref_outermost_package ();
130          out = $rh.createReply();
131          org.omg.mof.Reflective._RefPackageHelper.write (out, $result);
132          break;
133        }
134
135        case 8: // org/omg/mof/Reflective/RefBaseObject/ref_delete
136
{
137          try {
138            this.ref_delete ();
139            out = $rh.createReply();
140          } catch (org.omg.mof.Reflective.MofError $ex) {
141            out = $rh.createExceptionReply ();
142            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
143          }
144          break;
145        }
146
147        default:
148          throw new org.omg.CORBA.BAD_OPERATION JavaDoc (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
149     }
150
151     return out;
152   } // _invoke
153

154   // Type-specific CORBA::Object operations
155
private static String JavaDoc[] __ids = {
156     "IDL:org/omg/mof/Reflective/RefPackage:1.0",
157     "IDL:org/omg/mof/Reflective/RefBaseObject:1.0"};
158
159   public String JavaDoc[] _all_interfaces (org.omg.PortableServer.POA JavaDoc poa, byte[] objectId)
160   {
161     return (String JavaDoc[])__ids.clone ();
162   }
163
164   public _RefPackage _this()
165   {
166     return _RefPackageHelper.narrow(
167     super._this_object());
168   }
169
170   public _RefPackage _this(org.omg.CORBA.ORB JavaDoc orb)
171   {
172     return _RefPackageHelper.narrow(
173     super._this_object(orb));
174   }
175
176
177 } // class _RefPackagePOA
178
Popular Tags