1 package org.omg.mof.Model; 2 3 4 10 11 12 public abstract class AssociationClassPOA extends org.omg.PortableServer.Servant 14 implements org.omg.mof.Model.AssociationClassOperations, 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 ("_get_all_of_type_association", new java.lang.Integer (0)); 23 _methods.put ("_get_all_of_class_association", new java.lang.Integer (1)); 24 _methods.put ("create_association", new java.lang.Integer (2)); 25 _methods.put ("_get_all_of_type_classifier", new java.lang.Integer (3)); 26 _methods.put ("_get_all_of_type_generalizable_element", new java.lang.Integer (4)); 27 _methods.put ("_get_all_of_type_namespace", new java.lang.Integer (5)); 28 _methods.put ("_get_all_of_type_model_element", new java.lang.Integer (6)); 29 _methods.put ("ref_is_instance_of", new java.lang.Integer (7)); 30 _methods.put ("ref_create_instance", new java.lang.Integer (8)); 31 _methods.put ("ref_all_objects", new java.lang.Integer (9)); 32 _methods.put ("ref_set_value", new java.lang.Integer (10)); 33 _methods.put ("ref_value", new java.lang.Integer (11)); 34 _methods.put ("ref_unset_value", new java.lang.Integer (12)); 35 _methods.put ("ref_add_value", new java.lang.Integer (13)); 36 _methods.put ("ref_add_value_before", new java.lang.Integer (14)); 37 _methods.put ("ref_add_value_at", new java.lang.Integer (15)); 38 _methods.put ("ref_modify_value", new java.lang.Integer (16)); 39 _methods.put ("ref_modify_value_at", new java.lang.Integer (17)); 40 _methods.put ("ref_remove_value", new java.lang.Integer (18)); 41 _methods.put ("ref_remove_value_at", new java.lang.Integer (19)); 42 _methods.put ("ref_immediate_composite", new java.lang.Integer (20)); 43 _methods.put ("ref_outermost_composite", new java.lang.Integer (21)); 44 _methods.put ("ref_invoke_operation", new java.lang.Integer (22)); 45 _methods.put ("ref_mof_id", new java.lang.Integer (23)); 46 _methods.put ("ref_meta_object", new java.lang.Integer (24)); 47 _methods.put ("ref_itself", new java.lang.Integer (25)); 48 _methods.put ("ref_immediate_package", new java.lang.Integer (26)); 49 _methods.put ("ref_outermost_package", new java.lang.Integer (27)); 50 _methods.put ("ref_delete", new java.lang.Integer (28)); 51 } 52 53 public org.omg.CORBA.portable.OutputStream _invoke (String $method, 54 org.omg.CORBA.portable.InputStream in, 55 org.omg.CORBA.portable.ResponseHandler $rh) 56 { 57 org.omg.CORBA.portable.OutputStream out = null; 58 java.lang.Integer __method = (java.lang.Integer )_methods.get ($method); 59 if (__method == null) 60 throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE); 61 62 switch (__method.intValue ()) 63 { 64 case 0: { 66 org.omg.mof.Model.Association $result[] = null; 67 $result = this.all_of_type_association (); 68 out = $rh.createReply(); 69 org.omg.mof.Model.AssociationSetHelper.write (out, $result); 70 break; 71 } 72 73 case 1: { 75 org.omg.mof.Model.Association $result[] = null; 76 $result = this.all_of_class_association (); 77 out = $rh.createReply(); 78 org.omg.mof.Model.AssociationSetHelper.write (out, $result); 79 break; 80 } 81 82 case 2: { 84 try { 85 String name = in.read_string (); 86 String annotation = in.read_string (); 87 org.omg.mof.Model.VisibilityKind visibility = org.omg.mof.Model.VisibilityKindHelper.read (in); 88 boolean is_leaf = in.read_boolean (); 89 boolean is_root = in.read_boolean (); 90 boolean is_abstract = in.read_boolean (); 91 boolean is_derived = in.read_boolean (); 92 org.omg.mof.Model.Association $result = null; 93 $result = this.create_association (name, annotation, visibility, is_leaf, is_root, is_abstract, is_derived); 94 out = $rh.createReply(); 95 org.omg.mof.Model.AssociationHelper.write (out, $result); 96 } catch (org.omg.mof.Reflective.MofError $ex) { 97 out = $rh.createExceptionReply (); 98 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 99 } 100 break; 101 } 102 103 case 3: { 105 org.omg.mof.Model.Classifier $result[] = null; 106 $result = this.all_of_type_classifier (); 107 out = $rh.createReply(); 108 org.omg.mof.Model.ClassifierSetHelper.write (out, $result); 109 break; 110 } 111 112 case 4: { 114 org.omg.mof.Model.GeneralizableElement $result[] = null; 115 $result = this.all_of_type_generalizable_element (); 116 out = $rh.createReply(); 117 org.omg.mof.Model.GeneralizableElementSetHelper.write (out, $result); 118 break; 119 } 120 121 case 5: { 123 org.omg.mof.Model.Namespace $result[] = null; 124 $result = this.all_of_type_namespace (); 125 out = $rh.createReply(); 126 org.omg.mof.Model.NamespaceSetHelper.write (out, $result); 127 break; 128 } 129 130 case 6: { 132 org.omg.mof.Model.ModelElement $result[] = null; 133 $result = this.all_of_type_model_element (); 134 out = $rh.createReply(); 135 org.omg.mof.Model.ModelElementSetHelper.write (out, $result); 136 break; 137 } 138 139 case 7: { 141 org.omg.mof.Reflective.RefObject some_class = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 142 boolean consider_subtypes = in.read_boolean (); 143 boolean $result = false; 144 $result = this.ref_is_instance_of (some_class, consider_subtypes); 145 out = $rh.createReply(); 146 out.write_boolean ($result); 147 break; 148 } 149 150 case 8: { 152 try { 153 org.omg.CORBA.Any args[] = org.omg.mof.Reflective.ValueTypeListHelper.read (in); 154 org.omg.mof.Reflective.RefObject $result = null; 155 $result = this.ref_create_instance (args); 156 out = $rh.createReply(); 157 org.omg.mof.Reflective.RefObjectHelper.write (out, $result); 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 9: { 167 boolean include_subtypes = in.read_boolean (); 168 org.omg.mof.Reflective.RefObject $result[] = null; 169 $result = this.ref_all_objects (include_subtypes); 170 out = $rh.createReply(); 171 org.omg.mof.Reflective.RefObjectSetHelper.write (out, $result); 172 break; 173 } 174 175 case 10: { 177 try { 178 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 179 org.omg.CORBA.Any new_value = org.omg.mof.Reflective._ValueTypeHelper.read (in); 180 this.ref_set_value (feature, new_value); 181 out = $rh.createReply(); 182 } catch (org.omg.mof.Reflective.MofError $ex) { 183 out = $rh.createExceptionReply (); 184 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 185 } 186 break; 187 } 188 189 case 11: { 191 try { 192 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 193 org.omg.CORBA.Any $result = null; 194 $result = this.ref_value (feature); 195 out = $rh.createReply(); 196 out.write_any ($result); 197 } catch (org.omg.mof.Reflective.NotSet $ex) { 198 out = $rh.createExceptionReply (); 199 org.omg.mof.Reflective.NotSetHelper.write (out, $ex); 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 12: { 209 try { 210 this.ref_unset_value (); 211 out = $rh.createReply(); 212 } catch (org.omg.mof.Reflective.MofError $ex) { 213 out = $rh.createExceptionReply (); 214 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 215 } 216 break; 217 } 218 219 case 13: { 221 try { 222 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 223 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 224 this.ref_add_value (feature, new_element); 225 out = $rh.createReply(); 226 } catch (org.omg.mof.Reflective.MofError $ex) { 227 out = $rh.createExceptionReply (); 228 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 229 } 230 break; 231 } 232 233 case 14: { 235 try { 236 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 237 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 238 org.omg.CORBA.Any before_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 239 this.ref_add_value_before (feature, new_element, before_element); 240 out = $rh.createReply(); 241 } catch (org.omg.mof.Reflective.NotFound $ex) { 242 out = $rh.createExceptionReply (); 243 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 244 } catch (org.omg.mof.Reflective.MofError $ex) { 245 out = $rh.createExceptionReply (); 246 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 247 } 248 break; 249 } 250 251 case 15: { 253 try { 254 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 255 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 256 int position = in.read_ulong (); 257 this.ref_add_value_at (feature, new_element, position); 258 out = $rh.createReply(); 259 } catch (org.omg.mof.Reflective.BadPosition $ex) { 260 out = $rh.createExceptionReply (); 261 org.omg.mof.Reflective.BadPositionHelper.write (out, $ex); 262 } catch (org.omg.mof.Reflective.MofError $ex) { 263 out = $rh.createExceptionReply (); 264 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 265 } 266 break; 267 } 268 269 case 16: { 271 try { 272 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 273 org.omg.CORBA.Any old_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 274 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 275 this.ref_modify_value (feature, old_element, new_element); 276 out = $rh.createReply(); 277 } catch (org.omg.mof.Reflective.NotFound $ex) { 278 out = $rh.createExceptionReply (); 279 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 280 } catch (org.omg.mof.Reflective.MofError $ex) { 281 out = $rh.createExceptionReply (); 282 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 283 } 284 break; 285 } 286 287 case 17: { 289 try { 290 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 291 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 292 int position = in.read_ulong (); 293 this.ref_modify_value_at (feature, new_element, position); 294 out = $rh.createReply(); 295 } catch (org.omg.mof.Reflective.BadPosition $ex) { 296 out = $rh.createExceptionReply (); 297 org.omg.mof.Reflective.BadPositionHelper.write (out, $ex); 298 } catch (org.omg.mof.Reflective.MofError $ex) { 299 out = $rh.createExceptionReply (); 300 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 301 } 302 break; 303 } 304 305 case 18: { 307 try { 308 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 309 org.omg.CORBA.Any existing_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 310 this.ref_remove_value (feature, existing_element); 311 out = $rh.createReply(); 312 } catch (org.omg.mof.Reflective.NotFound $ex) { 313 out = $rh.createExceptionReply (); 314 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 315 } catch (org.omg.mof.Reflective.MofError $ex) { 316 out = $rh.createExceptionReply (); 317 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 318 } 319 break; 320 } 321 322 case 19: { 324 try { 325 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 326 int position = in.read_ulong (); 327 this.ref_remove_value_at (feature, position); 328 out = $rh.createReply(); 329 } catch (org.omg.mof.Reflective.BadPosition $ex) { 330 out = $rh.createExceptionReply (); 331 org.omg.mof.Reflective.BadPositionHelper.write (out, $ex); 332 } catch (org.omg.mof.Reflective.MofError $ex) { 333 out = $rh.createExceptionReply (); 334 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 335 } 336 break; 337 } 338 339 case 20: { 341 org.omg.mof.Reflective.RefObject $result = null; 342 $result = this.ref_immediate_composite (); 343 out = $rh.createReply(); 344 org.omg.mof.Reflective.RefObjectHelper.write (out, $result); 345 break; 346 } 347 348 case 21: { 350 org.omg.mof.Reflective.RefObject $result = null; 351 $result = this.ref_outermost_composite (); 352 out = $rh.createReply(); 353 org.omg.mof.Reflective.RefObjectHelper.write (out, $result); 354 break; 355 } 356 357 case 22: { 359 try { 360 org.omg.mof.Reflective.RefObject requested_operation = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 361 org.omg.mof.Reflective.ValueTypeListHolder args = new org.omg.mof.Reflective.ValueTypeListHolder (); 362 args.value = org.omg.mof.Reflective.ValueTypeListHelper.read (in); 363 org.omg.CORBA.Any $result = null; 364 $result = this.ref_invoke_operation (requested_operation, args); 365 out = $rh.createReply(); 366 out.write_any ($result); 367 org.omg.mof.Reflective.ValueTypeListHelper.write (out, args.value); 368 } catch (org.omg.mof.Reflective.OtherException $ex) { 369 out = $rh.createExceptionReply (); 370 org.omg.mof.Reflective.OtherExceptionHelper.write (out, $ex); 371 } catch (org.omg.mof.Reflective.MofError $ex) { 372 out = $rh.createExceptionReply (); 373 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 374 } 375 break; 376 } 377 378 case 23: { 380 String $result = null; 381 $result = this.ref_mof_id (); 382 out = $rh.createReply(); 383 out.write_string ($result); 384 break; 385 } 386 387 case 24: { 389 org.omg.mof.Reflective.RefObject $result = null; 390 $result = this.ref_meta_object (); 391 out = $rh.createReply(); 392 org.omg.mof.Reflective.RefObjectHelper.write (out, $result); 393 break; 394 } 395 396 case 25: { 398 org.omg.mof.Reflective.RefBaseObject other_object = org.omg.mof.Reflective.RefBaseObjectHelper.read (in); 399 boolean $result = false; 400 $result = this.ref_itself (other_object); 401 out = $rh.createReply(); 402 out.write_boolean ($result); 403 break; 404 } 405 406 case 26: { 408 org.omg.mof.Reflective._RefPackage $result = null; 409 $result = this.ref_immediate_package (); 410 out = $rh.createReply(); 411 org.omg.mof.Reflective._RefPackageHelper.write (out, $result); 412 break; 413 } 414 415 case 27: { 417 org.omg.mof.Reflective._RefPackage $result = null; 418 $result = this.ref_outermost_package (); 419 out = $rh.createReply(); 420 org.omg.mof.Reflective._RefPackageHelper.write (out, $result); 421 break; 422 } 423 424 case 28: { 426 try { 427 this.ref_delete (); 428 out = $rh.createReply(); 429 } catch (org.omg.mof.Reflective.MofError $ex) { 430 out = $rh.createExceptionReply (); 431 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 432 } 433 break; 434 } 435 436 default: 437 throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE); 438 } 439 440 return out; 441 } 443 private static String [] __ids = { 445 "IDL:org/omg/mof/Model/AssociationClass:1.0", 446 "IDL:org/omg/mof/Model/ClassifierClass:1.0", 447 "IDL:org/omg/mof/Model/GeneralizableElementClass:1.0", 448 "IDL:org/omg/mof/Model/NamespaceClass:1.0", 449 "IDL:org/omg/mof/Model/ModelElementClass:1.0", 450 "IDL:org/omg/mof/Reflective/RefObject:1.0", 451 "IDL:org/omg/mof/Reflective/RefBaseObject:1.0"}; 452 453 public String [] _all_interfaces (org.omg.PortableServer.POA poa, byte[] objectId) 454 { 455 return (String [])__ids.clone (); 456 } 457 458 public AssociationClass _this() 459 { 460 return AssociationClassHelper.narrow( 461 super._this_object()); 462 } 463 464 public AssociationClass _this(org.omg.CORBA.ORB orb) 465 { 466 return AssociationClassHelper.narrow( 467 super._this_object(orb)); 468 } 469 470 471 } | Popular Tags |