1 package org.omg.mof.Model; 2 3 4 10 11 12 public abstract class AliasesPOA extends org.omg.PortableServer.Servant 14 implements org.omg.mof.Model.AliasesOperations, 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_aliases_Links", new java.lang.Integer (0)); 23 _methods.put ("exists", new java.lang.Integer (1)); 24 _methods.put ("importer", new java.lang.Integer (2)); 25 _methods.put ("imported", new java.lang.Integer (3)); 26 _methods.put ("add", new java.lang.Integer (4)); 27 _methods.put ("modify_importer", new java.lang.Integer (5)); 28 _methods.put ("modify_imported", new java.lang.Integer (6)); 29 _methods.put ("remove", new java.lang.Integer (7)); 30 _methods.put ("ref_all_links", new java.lang.Integer (8)); 31 _methods.put ("ref_link_exists", new java.lang.Integer (9)); 32 _methods.put ("ref_query", new java.lang.Integer (10)); 33 _methods.put ("ref_add_link", new java.lang.Integer (11)); 34 _methods.put ("ref_add_link_before", new java.lang.Integer (12)); 35 _methods.put ("ref_modify_link", new java.lang.Integer (13)); 36 _methods.put ("ref_remove_link", new java.lang.Integer (14)); 37 _methods.put ("ref_mof_id", new java.lang.Integer (15)); 38 _methods.put ("ref_meta_object", new java.lang.Integer (16)); 39 _methods.put ("ref_itself", new java.lang.Integer (17)); 40 _methods.put ("ref_immediate_package", new java.lang.Integer (18)); 41 _methods.put ("ref_outermost_package", new java.lang.Integer (19)); 42 _methods.put ("ref_delete", new java.lang.Integer (20)); 43 } 44 45 public org.omg.CORBA.portable.OutputStream _invoke (String $method, 46 org.omg.CORBA.portable.InputStream in, 47 org.omg.CORBA.portable.ResponseHandler $rh) 48 { 49 org.omg.CORBA.portable.OutputStream out = null; 50 java.lang.Integer __method = (java.lang.Integer )_methods.get ($method); 51 if (__method == null) 52 throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE); 53 54 switch (__method.intValue ()) 55 { 56 case 0: { 58 try { 59 org.omg.mof.Model.AliasesLink $result[] = null; 60 $result = this.all_aliases_Links (); 61 out = $rh.createReply(); 62 org.omg.mof.Model.AliasesLinkSetHelper.write (out, $result); 63 } catch (org.omg.mof.Reflective.MofError $ex) { 64 out = $rh.createExceptionReply (); 65 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 66 } 67 break; 68 } 69 70 case 1: { 72 try { 73 org.omg.mof.Model.Import importer = org.omg.mof.Model.ImportHelper.read (in); 74 org.omg.mof.Model.Namespace imported = org.omg.mof.Model.NamespaceHelper.read (in); 75 boolean $result = false; 76 $result = this.exists (importer, imported); 77 out = $rh.createReply(); 78 out.write_boolean ($result); 79 } catch (org.omg.mof.Reflective.MofError $ex) { 80 out = $rh.createExceptionReply (); 81 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 82 } 83 break; 84 } 85 86 case 2: { 88 try { 89 org.omg.mof.Model.Namespace imported = org.omg.mof.Model.NamespaceHelper.read (in); 90 org.omg.mof.Model.Import $result[] = null; 91 $result = this.importer (imported); 92 out = $rh.createReply(); 93 org.omg.mof.Model.ImportBagHelper.write (out, $result); 94 } catch (org.omg.mof.Reflective.MofError $ex) { 95 out = $rh.createExceptionReply (); 96 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 97 } 98 break; 99 } 100 101 case 3: { 103 try { 104 org.omg.mof.Model.Import importer = org.omg.mof.Model.ImportHelper.read (in); 105 org.omg.mof.Model.Namespace $result = null; 106 $result = this.imported (importer); 107 out = $rh.createReply(); 108 org.omg.mof.Model.NamespaceHelper.write (out, $result); 109 } catch (org.omg.mof.Reflective.MofError $ex) { 110 out = $rh.createExceptionReply (); 111 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 112 } 113 break; 114 } 115 116 case 4: { 118 try { 119 org.omg.mof.Model.Import importer = org.omg.mof.Model.ImportHelper.read (in); 120 org.omg.mof.Model.Namespace imported = org.omg.mof.Model.NamespaceHelper.read (in); 121 this.add (importer, imported); 122 out = $rh.createReply(); 123 } catch (org.omg.mof.Reflective.MofError $ex) { 124 out = $rh.createExceptionReply (); 125 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 126 } 127 break; 128 } 129 130 case 5: { 132 try { 133 org.omg.mof.Model.Import importer = org.omg.mof.Model.ImportHelper.read (in); 134 org.omg.mof.Model.Namespace imported = org.omg.mof.Model.NamespaceHelper.read (in); 135 org.omg.mof.Model.Import new_importer = org.omg.mof.Model.ImportHelper.read (in); 136 this.modify_importer (importer, imported, new_importer); 137 out = $rh.createReply(); 138 } catch (org.omg.mof.Reflective.NotFound $ex) { 139 out = $rh.createExceptionReply (); 140 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 141 } catch (org.omg.mof.Reflective.MofError $ex) { 142 out = $rh.createExceptionReply (); 143 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 144 } 145 break; 146 } 147 148 case 6: { 150 try { 151 org.omg.mof.Model.Import importer = org.omg.mof.Model.ImportHelper.read (in); 152 org.omg.mof.Model.Namespace imported = org.omg.mof.Model.NamespaceHelper.read (in); 153 org.omg.mof.Model.Namespace new_imported = org.omg.mof.Model.NamespaceHelper.read (in); 154 this.modify_imported (importer, imported, new_imported); 155 out = $rh.createReply(); 156 } catch (org.omg.mof.Reflective.NotFound $ex) { 157 out = $rh.createExceptionReply (); 158 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 159 } catch (org.omg.mof.Reflective.MofError $ex) { 160 out = $rh.createExceptionReply (); 161 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 162 } 163 break; 164 } 165 166 case 7: { 168 try { 169 org.omg.mof.Model.Import importer = org.omg.mof.Model.ImportHelper.read (in); 170 org.omg.mof.Model.Namespace imported = org.omg.mof.Model.NamespaceHelper.read (in); 171 this.remove (importer, imported); 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 8: { 185 org.omg.mof.Reflective.RefObject $result[][] = null; 186 $result = this.ref_all_links (); 187 out = $rh.createReply(); 188 org.omg.mof.Reflective.LinkSetHelper.write (out, $result); 189 break; 190 } 191 192 case 9: { 194 try { 195 org.omg.mof.Reflective.RefObject some_link[] = org.omg.mof.Reflective.LinkHelper.read (in); 196 boolean $result = false; 197 $result = this.ref_link_exists (some_link); 198 out = $rh.createReply(); 199 out.write_boolean ($result); 200 } catch (org.omg.mof.Reflective.MofError $ex) { 201 out = $rh.createExceptionReply (); 202 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 203 } 204 break; 205 } 206 207 case 10: { 209 try { 210 org.omg.mof.Reflective.RefObject query_end = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 211 org.omg.mof.Reflective.RefObject query_object = org.omg.mof.Reflective.RefObjectHelper.read (in); 212 org.omg.mof.Reflective.RefObject $result[] = null; 213 $result = this.ref_query (query_end, query_object); 214 out = $rh.createReply(); 215 org.omg.mof.Reflective.RefObjectUListHelper.write (out, $result); 216 } catch (org.omg.mof.Reflective.MofError $ex) { 217 out = $rh.createExceptionReply (); 218 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 219 } 220 break; 221 } 222 223 case 11: { 225 try { 226 org.omg.mof.Reflective.RefObject new_link[] = org.omg.mof.Reflective.LinkHelper.read (in); 227 this.ref_add_link (new_link); 228 out = $rh.createReply(); 229 } catch (org.omg.mof.Reflective.MofError $ex) { 230 out = $rh.createExceptionReply (); 231 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 232 } 233 break; 234 } 235 236 case 12: { 238 try { 239 org.omg.mof.Reflective.RefObject new_link[] = org.omg.mof.Reflective.LinkHelper.read (in); 240 org.omg.mof.Reflective.RefObject position_end = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 241 org.omg.mof.Reflective.RefObject before = org.omg.mof.Reflective.RefObjectHelper.read (in); 242 this.ref_add_link_before (new_link, position_end, before); 243 out = $rh.createReply(); 244 } catch (org.omg.mof.Reflective.NotFound $ex) { 245 out = $rh.createExceptionReply (); 246 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 247 } catch (org.omg.mof.Reflective.MofError $ex) { 248 out = $rh.createExceptionReply (); 249 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 250 } 251 break; 252 } 253 254 case 13: { 256 try { 257 org.omg.mof.Reflective.RefObject old_link[] = org.omg.mof.Reflective.LinkHelper.read (in); 258 org.omg.mof.Reflective.RefObject position_end = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 259 org.omg.mof.Reflective.RefObject new_object = org.omg.mof.Reflective.RefObjectHelper.read (in); 260 this.ref_modify_link (old_link, position_end, new_object); 261 out = $rh.createReply(); 262 } catch (org.omg.mof.Reflective.NotFound $ex) { 263 out = $rh.createExceptionReply (); 264 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 265 } catch (org.omg.mof.Reflective.MofError $ex) { 266 out = $rh.createExceptionReply (); 267 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 268 } 269 break; 270 } 271 272 case 14: { 274 try { 275 org.omg.mof.Reflective.RefObject old_link[] = org.omg.mof.Reflective.LinkHelper.read (in); 276 this.ref_remove_link (old_link); 277 out = $rh.createReply(); 278 } catch (org.omg.mof.Reflective.NotFound $ex) { 279 out = $rh.createExceptionReply (); 280 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 281 } catch (org.omg.mof.Reflective.MofError $ex) { 282 out = $rh.createExceptionReply (); 283 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 284 } 285 break; 286 } 287 288 case 15: { 290 String $result = null; 291 $result = this.ref_mof_id (); 292 out = $rh.createReply(); 293 out.write_string ($result); 294 break; 295 } 296 297 case 16: { 299 org.omg.mof.Reflective.RefObject $result = null; 300 $result = this.ref_meta_object (); 301 out = $rh.createReply(); 302 org.omg.mof.Reflective.RefObjectHelper.write (out, $result); 303 break; 304 } 305 306 case 17: { 308 org.omg.mof.Reflective.RefBaseObject other_object = org.omg.mof.Reflective.RefBaseObjectHelper.read (in); 309 boolean $result = false; 310 $result = this.ref_itself (other_object); 311 out = $rh.createReply(); 312 out.write_boolean ($result); 313 break; 314 } 315 316 case 18: { 318 org.omg.mof.Reflective._RefPackage $result = null; 319 $result = this.ref_immediate_package (); 320 out = $rh.createReply(); 321 org.omg.mof.Reflective._RefPackageHelper.write (out, $result); 322 break; 323 } 324 325 case 19: { 327 org.omg.mof.Reflective._RefPackage $result = null; 328 $result = this.ref_outermost_package (); 329 out = $rh.createReply(); 330 org.omg.mof.Reflective._RefPackageHelper.write (out, $result); 331 break; 332 } 333 334 case 20: { 336 try { 337 this.ref_delete (); 338 out = $rh.createReply(); 339 } catch (org.omg.mof.Reflective.MofError $ex) { 340 out = $rh.createExceptionReply (); 341 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 342 } 343 break; 344 } 345 346 default: 347 throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE); 348 } 349 350 return out; 351 } 353 private static String [] __ids = { 355 "IDL:org/omg/mof/Model/Aliases:1.0", 356 "IDL:org/omg/mof/Reflective/RefAssociation:1.0", 357 "IDL:org/omg/mof/Reflective/RefBaseObject:1.0"}; 358 359 public String [] _all_interfaces (org.omg.PortableServer.POA poa, byte[] objectId) 360 { 361 return (String [])__ids.clone (); 362 } 363 364 public Aliases _this() 365 { 366 return AliasesHelper.narrow( 367 super._this_object()); 368 } 369 370 public Aliases _this(org.omg.CORBA.ORB orb) 371 { 372 return AliasesHelper.narrow( 373 super._this_object(orb)); 374 } 375 376 377 } | Popular Tags |