1 package org.omg.mof.Model; 2 3 4 10 11 12 public abstract class DependsOnPOA extends org.omg.PortableServer.Servant 14 implements org.omg.mof.Model.DependsOnOperations, 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 ("all_depends_on_Links", new java.lang.Integer (0)); 23 _methods.put ("exists", new java.lang.Integer (1)); 24 _methods.put ("dependent", new java.lang.Integer (2)); 25 _methods.put ("provider", new java.lang.Integer (3)); 26 _methods.put ("ref_all_links", new java.lang.Integer (4)); 27 _methods.put ("ref_link_exists", new java.lang.Integer (5)); 28 _methods.put ("ref_query", new java.lang.Integer (6)); 29 _methods.put ("ref_add_link", new java.lang.Integer (7)); 30 _methods.put ("ref_add_link_before", new java.lang.Integer (8)); 31 _methods.put ("ref_modify_link", new java.lang.Integer (9)); 32 _methods.put ("ref_remove_link", new java.lang.Integer (10)); 33 _methods.put ("ref_mof_id", new java.lang.Integer (11)); 34 _methods.put ("ref_meta_object", new java.lang.Integer (12)); 35 _methods.put ("ref_itself", new java.lang.Integer (13)); 36 _methods.put ("ref_immediate_package", new java.lang.Integer (14)); 37 _methods.put ("ref_outermost_package", new java.lang.Integer (15)); 38 _methods.put ("ref_delete", new java.lang.Integer (16)); 39 } 40 41 public org.omg.CORBA.portable.OutputStream _invoke (String $method, 42 org.omg.CORBA.portable.InputStream in, 43 org.omg.CORBA.portable.ResponseHandler $rh) 44 { 45 org.omg.CORBA.portable.OutputStream out = null; 46 java.lang.Integer __method = (java.lang.Integer )_methods.get ($method); 47 if (__method == null) 48 throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE); 49 50 switch (__method.intValue ()) 51 { 52 case 0: { 54 try { 55 org.omg.mof.Model.DependsOnLink $result[] = null; 56 $result = this.all_depends_on_Links (); 57 out = $rh.createReply(); 58 org.omg.mof.Model.DependsOnLinkSetHelper.write (out, $result); 59 } catch (org.omg.mof.Reflective.MofError $ex) { 60 out = $rh.createExceptionReply (); 61 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 62 } 63 break; 64 } 65 66 case 1: { 68 try { 69 org.omg.mof.Model.ModelElement dependent = org.omg.mof.Model.ModelElementHelper.read (in); 70 org.omg.mof.Model.ModelElement provider = org.omg.mof.Model.ModelElementHelper.read (in); 71 boolean $result = false; 72 $result = this.exists (dependent, provider); 73 out = $rh.createReply(); 74 out.write_boolean ($result); 75 } catch (org.omg.mof.Reflective.MofError $ex) { 76 out = $rh.createExceptionReply (); 77 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 78 } 79 break; 80 } 81 82 case 2: { 84 try { 85 org.omg.mof.Model.ModelElement provider = org.omg.mof.Model.ModelElementHelper.read (in); 86 org.omg.mof.Model.ModelElement $result[] = null; 87 $result = this.dependent (provider); 88 out = $rh.createReply(); 89 org.omg.mof.Model.ModelElementBagHelper.write (out, $result); 90 } catch (org.omg.mof.Reflective.MofError $ex) { 91 out = $rh.createExceptionReply (); 92 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 93 } 94 break; 95 } 96 97 case 3: { 99 try { 100 org.omg.mof.Model.ModelElement dependent = org.omg.mof.Model.ModelElementHelper.read (in); 101 org.omg.mof.Model.ModelElement $result[] = null; 102 $result = this.provider (dependent); 103 out = $rh.createReply(); 104 org.omg.mof.Model.ModelElementBagHelper.write (out, $result); 105 } catch (org.omg.mof.Reflective.MofError $ex) { 106 out = $rh.createExceptionReply (); 107 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 108 } 109 break; 110 } 111 112 case 4: { 114 org.omg.mof.Reflective.RefObject $result[][] = null; 115 $result = this.ref_all_links (); 116 out = $rh.createReply(); 117 org.omg.mof.Reflective.LinkSetHelper.write (out, $result); 118 break; 119 } 120 121 case 5: { 123 try { 124 org.omg.mof.Reflective.RefObject some_link[] = org.omg.mof.Reflective.LinkHelper.read (in); 125 boolean $result = false; 126 $result = this.ref_link_exists (some_link); 127 out = $rh.createReply(); 128 out.write_boolean ($result); 129 } catch (org.omg.mof.Reflective.MofError $ex) { 130 out = $rh.createExceptionReply (); 131 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 132 } 133 break; 134 } 135 136 case 6: { 138 try { 139 org.omg.mof.Reflective.RefObject query_end = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 140 org.omg.mof.Reflective.RefObject query_object = org.omg.mof.Reflective.RefObjectHelper.read (in); 141 org.omg.mof.Reflective.RefObject $result[] = null; 142 $result = this.ref_query (query_end, query_object); 143 out = $rh.createReply(); 144 org.omg.mof.Reflective.RefObjectUListHelper.write (out, $result); 145 } catch (org.omg.mof.Reflective.MofError $ex) { 146 out = $rh.createExceptionReply (); 147 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 148 } 149 break; 150 } 151 152 case 7: { 154 try { 155 org.omg.mof.Reflective.RefObject new_link[] = org.omg.mof.Reflective.LinkHelper.read (in); 156 this.ref_add_link (new_link); 157 out = $rh.createReply(); 158 } catch (org.omg.mof.Reflective.MofError $ex) { 159 out = $rh.createExceptionReply (); 160 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 161 } 162 break; 163 } 164 165 case 8: { 167 try { 168 org.omg.mof.Reflective.RefObject new_link[] = org.omg.mof.Reflective.LinkHelper.read (in); 169 org.omg.mof.Reflective.RefObject position_end = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 170 org.omg.mof.Reflective.RefObject before = org.omg.mof.Reflective.RefObjectHelper.read (in); 171 this.ref_add_link_before (new_link, position_end, before); 172 out = $rh.createReply(); 173 } catch (org.omg.mof.Reflective.NotFound $ex) { 174 out = $rh.createExceptionReply (); 175 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 176 } catch (org.omg.mof.Reflective.MofError $ex) { 177 out = $rh.createExceptionReply (); 178 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 179 } 180 break; 181 } 182 183 case 9: { 185 try { 186 org.omg.mof.Reflective.RefObject old_link[] = org.omg.mof.Reflective.LinkHelper.read (in); 187 org.omg.mof.Reflective.RefObject position_end = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 188 org.omg.mof.Reflective.RefObject new_object = org.omg.mof.Reflective.RefObjectHelper.read (in); 189 this.ref_modify_link (old_link, position_end, new_object); 190 out = $rh.createReply(); 191 } catch (org.omg.mof.Reflective.NotFound $ex) { 192 out = $rh.createExceptionReply (); 193 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 194 } catch (org.omg.mof.Reflective.MofError $ex) { 195 out = $rh.createExceptionReply (); 196 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 197 } 198 break; 199 } 200 201 case 10: { 203 try { 204 org.omg.mof.Reflective.RefObject old_link[] = org.omg.mof.Reflective.LinkHelper.read (in); 205 this.ref_remove_link (old_link); 206 out = $rh.createReply(); 207 } catch (org.omg.mof.Reflective.NotFound $ex) { 208 out = $rh.createExceptionReply (); 209 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 210 } catch (org.omg.mof.Reflective.MofError $ex) { 211 out = $rh.createExceptionReply (); 212 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 213 } 214 break; 215 } 216 217 case 11: { 219 String $result = null; 220 $result = this.ref_mof_id (); 221 out = $rh.createReply(); 222 out.write_string ($result); 223 break; 224 } 225 226 case 12: { 228 org.omg.mof.Reflective.RefObject $result = null; 229 $result = this.ref_meta_object (); 230 out = $rh.createReply(); 231 org.omg.mof.Reflective.RefObjectHelper.write (out, $result); 232 break; 233 } 234 235 case 13: { 237 org.omg.mof.Reflective.RefBaseObject other_object = org.omg.mof.Reflective.RefBaseObjectHelper.read (in); 238 boolean $result = false; 239 $result = this.ref_itself (other_object); 240 out = $rh.createReply(); 241 out.write_boolean ($result); 242 break; 243 } 244 245 case 14: { 247 org.omg.mof.Reflective._RefPackage $result = null; 248 $result = this.ref_immediate_package (); 249 out = $rh.createReply(); 250 org.omg.mof.Reflective._RefPackageHelper.write (out, $result); 251 break; 252 } 253 254 case 15: { 256 org.omg.mof.Reflective._RefPackage $result = null; 257 $result = this.ref_outermost_package (); 258 out = $rh.createReply(); 259 org.omg.mof.Reflective._RefPackageHelper.write (out, $result); 260 break; 261 } 262 263 case 16: { 265 try { 266 this.ref_delete (); 267 out = $rh.createReply(); 268 } catch (org.omg.mof.Reflective.MofError $ex) { 269 out = $rh.createExceptionReply (); 270 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 271 } 272 break; 273 } 274 275 default: 276 throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE); 277 } 278 279 return out; 280 } 282 private static String [] __ids = { 284 "IDL:org/omg/mof/Model/DependsOn:1.0", 285 "IDL:org/omg/mof/Reflective/RefAssociation:1.0", 286 "IDL:org/omg/mof/Reflective/RefBaseObject:1.0"}; 287 288 public String [] _all_interfaces (org.omg.PortableServer.POA poa, byte[] objectId) 289 { 290 return (String [])__ids.clone (); 291 } 292 293 public DependsOn _this() 294 { 295 return DependsOnHelper.narrow( 296 super._this_object()); 297 } 298 299 public DependsOn _this(org.omg.CORBA.ORB orb) 300 { 301 return DependsOnHelper.narrow( 302 super._this_object(orb)); 303 } 304 305 306 } | Popular Tags |