1 package org.omg.mof.Reflective; 2 3 4 10 11 12 public abstract class _RefPackagePOA extends org.omg.PortableServer.Servant 14 implements org.omg.mof.Reflective._RefPackageOperations, org.omg.CORBA.portable.InvokeHandler 15 { 16 17 19 private static java.util.Hashtable _methods = new java.util.Hashtable (); 20 static 21 { 22 _methods.put ("ref_class_ref", new java.lang.Integer (0)); 23 _methods.put ("ref_association_ref", new java.lang.Integer (1)); 24 _methods.put ("ref_package_ref", new java.lang.Integer (2)); 25 _methods.put ("ref_mof_id", new java.lang.Integer (3)); 26 _methods.put ("ref_meta_object", new java.lang.Integer (4)); 27 _methods.put ("ref_itself", new java.lang.Integer (5)); 28 _methods.put ("ref_immediate_package", new java.lang.Integer (6)); 29 _methods.put ("ref_outermost_package", new java.lang.Integer (7)); 30 _methods.put ("ref_delete", new java.lang.Integer (8)); 31 } 32 33 public org.omg.CORBA.portable.OutputStream _invoke (String $method, 34 org.omg.CORBA.portable.InputStream in, 35 org.omg.CORBA.portable.ResponseHandler $rh) 36 { 37 org.omg.CORBA.portable.OutputStream out = null; 38 java.lang.Integer __method = (java.lang.Integer )_methods.get ($method); 39 if (__method == null) 40 throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE); 41 42 switch (__method.intValue ()) 43 { 44 case 0: { 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: { 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: { 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: { 91 String $result = null; 92 $result = this.ref_mof_id (); 93 out = $rh.createReply(); 94 out.write_string ($result); 95 break; 96 } 97 98 case 4: { 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: { 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: { 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: { 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: { 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 (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE); 149 } 150 151 return out; 152 } 154 private static String [] __ids = { 156 "IDL:org/omg/mof/Reflective/RefPackage:1.0", 157 "IDL:org/omg/mof/Reflective/RefBaseObject:1.0"}; 158 159 public String [] _all_interfaces (org.omg.PortableServer.POA poa, byte[] objectId) 160 { 161 return (String [])__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 orb) 171 { 172 return _RefPackageHelper.narrow( 173 super._this_object(orb)); 174 } 175 176 177 } | Popular Tags |