1 package org.omg.mof.Model; 2 3 4 10 11 12 public abstract class ClassifierPOA extends org.omg.PortableServer.Servant 14 implements org.omg.mof.Model.ClassifierOperations, 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_classifier", new java.lang.Integer (0)); 23 _methods.put ("_get_all_of_type_generalizable_element", new java.lang.Integer (1)); 24 _methods.put ("_get_all_of_type_namespace", new java.lang.Integer (2)); 25 _methods.put ("_get_all_of_type_model_element", new java.lang.Integer (3)); 26 _methods.put ("ref_is_instance_of", new java.lang.Integer (4)); 27 _methods.put ("ref_create_instance", new java.lang.Integer (5)); 28 _methods.put ("ref_all_objects", new java.lang.Integer (6)); 29 _methods.put ("ref_set_value", new java.lang.Integer (7)); 30 _methods.put ("ref_value", new java.lang.Integer (8)); 31 _methods.put ("ref_unset_value", new java.lang.Integer (9)); 32 _methods.put ("ref_add_value", new java.lang.Integer (10)); 33 _methods.put ("ref_add_value_before", new java.lang.Integer (11)); 34 _methods.put ("ref_add_value_at", new java.lang.Integer (12)); 35 _methods.put ("ref_modify_value", new java.lang.Integer (13)); 36 _methods.put ("ref_modify_value_at", new java.lang.Integer (14)); 37 _methods.put ("ref_remove_value", new java.lang.Integer (15)); 38 _methods.put ("ref_remove_value_at", new java.lang.Integer (16)); 39 _methods.put ("ref_immediate_composite", new java.lang.Integer (17)); 40 _methods.put ("ref_outermost_composite", new java.lang.Integer (18)); 41 _methods.put ("ref_invoke_operation", new java.lang.Integer (19)); 42 _methods.put ("ref_mof_id", new java.lang.Integer (20)); 43 _methods.put ("ref_meta_object", new java.lang.Integer (21)); 44 _methods.put ("ref_itself", new java.lang.Integer (22)); 45 _methods.put ("ref_immediate_package", new java.lang.Integer (23)); 46 _methods.put ("ref_outermost_package", new java.lang.Integer (24)); 47 _methods.put ("ref_delete", new java.lang.Integer (25)); 48 _methods.put ("name", new java.lang.Integer (26)); 49 _methods.put ("set_name", new java.lang.Integer (27)); 50 _methods.put ("annotation", new java.lang.Integer (28)); 51 _methods.put ("set_annotation", new java.lang.Integer (29)); 52 _methods.put ("qualified_name", new java.lang.Integer (30)); 53 _methods.put ("container", new java.lang.Integer (31)); 54 _methods.put ("set_container", new java.lang.Integer (32)); 55 _methods.put ("unset_container", new java.lang.Integer (33)); 56 _methods.put ("required_elements", new java.lang.Integer (34)); 57 _methods.put ("set_required_elements", new java.lang.Integer (35)); 58 _methods.put ("add_required_elements", new java.lang.Integer (36)); 59 _methods.put ("modify_required_elements", new java.lang.Integer (37)); 60 _methods.put ("remove_required_elements", new java.lang.Integer (38)); 61 _methods.put ("constraints", new java.lang.Integer (39)); 62 _methods.put ("set_constraints", new java.lang.Integer (40)); 63 _methods.put ("add_constraints", new java.lang.Integer (41)); 64 _methods.put ("modify_constraints", new java.lang.Integer (42)); 65 _methods.put ("remove_constraints", new java.lang.Integer (43)); 66 _methods.put ("contents", new java.lang.Integer (44)); 67 _methods.put ("set_contents", new java.lang.Integer (45)); 68 _methods.put ("add_contents", new java.lang.Integer (46)); 69 _methods.put ("add_contents_before", new java.lang.Integer (47)); 70 _methods.put ("modify_contents", new java.lang.Integer (48)); 71 _methods.put ("remove_contents", new java.lang.Integer (49)); 72 _methods.put ("visibility", new java.lang.Integer (50)); 73 _methods.put ("set_visibility", new java.lang.Integer (51)); 74 _methods.put ("is_leaf", new java.lang.Integer (52)); 75 _methods.put ("set_is_leaf", new java.lang.Integer (53)); 76 _methods.put ("is_root", new java.lang.Integer (54)); 77 _methods.put ("set_is_root", new java.lang.Integer (55)); 78 _methods.put ("is_abstract", new java.lang.Integer (56)); 79 _methods.put ("set_is_abstract", new java.lang.Integer (57)); 80 _methods.put ("all_supertypes", new java.lang.Integer (58)); 81 _methods.put ("supertypes", new java.lang.Integer (59)); 82 _methods.put ("set_supertypes", new java.lang.Integer (60)); 83 _methods.put ("add_supertypes", new java.lang.Integer (61)); 84 _methods.put ("add_supertypes_before", new java.lang.Integer (62)); 85 _methods.put ("modify_supertypes", new java.lang.Integer (63)); 86 _methods.put ("remove_supertypes", new java.lang.Integer (64)); 87 } 88 89 public org.omg.CORBA.portable.OutputStream _invoke (String $method, 90 org.omg.CORBA.portable.InputStream in, 91 org.omg.CORBA.portable.ResponseHandler $rh) 92 { 93 org.omg.CORBA.portable.OutputStream out = null; 94 java.lang.Integer __method = (java.lang.Integer )_methods.get ($method); 95 if (__method == null) 96 throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE); 97 98 switch (__method.intValue ()) 99 { 100 case 0: { 102 org.omg.mof.Model.Classifier $result[] = null; 103 $result = this.all_of_type_classifier (); 104 out = $rh.createReply(); 105 org.omg.mof.Model.ClassifierSetHelper.write (out, $result); 106 break; 107 } 108 109 case 1: { 111 org.omg.mof.Model.GeneralizableElement $result[] = null; 112 $result = this.all_of_type_generalizable_element (); 113 out = $rh.createReply(); 114 org.omg.mof.Model.GeneralizableElementSetHelper.write (out, $result); 115 break; 116 } 117 118 case 2: { 120 org.omg.mof.Model.Namespace $result[] = null; 121 $result = this.all_of_type_namespace (); 122 out = $rh.createReply(); 123 org.omg.mof.Model.NamespaceSetHelper.write (out, $result); 124 break; 125 } 126 127 case 3: { 129 org.omg.mof.Model.ModelElement $result[] = null; 130 $result = this.all_of_type_model_element (); 131 out = $rh.createReply(); 132 org.omg.mof.Model.ModelElementSetHelper.write (out, $result); 133 break; 134 } 135 136 case 4: { 138 org.omg.mof.Reflective.RefObject some_class = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 139 boolean consider_subtypes = in.read_boolean (); 140 boolean $result = false; 141 $result = this.ref_is_instance_of (some_class, consider_subtypes); 142 out = $rh.createReply(); 143 out.write_boolean ($result); 144 break; 145 } 146 147 case 5: { 149 try { 150 org.omg.CORBA.Any args[] = org.omg.mof.Reflective.ValueTypeListHelper.read (in); 151 org.omg.mof.Reflective.RefObject $result = null; 152 $result = this.ref_create_instance (args); 153 out = $rh.createReply(); 154 org.omg.mof.Reflective.RefObjectHelper.write (out, $result); 155 } catch (org.omg.mof.Reflective.MofError $ex) { 156 out = $rh.createExceptionReply (); 157 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 158 } 159 break; 160 } 161 162 case 6: { 164 boolean include_subtypes = in.read_boolean (); 165 org.omg.mof.Reflective.RefObject $result[] = null; 166 $result = this.ref_all_objects (include_subtypes); 167 out = $rh.createReply(); 168 org.omg.mof.Reflective.RefObjectSetHelper.write (out, $result); 169 break; 170 } 171 172 case 7: { 174 try { 175 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 176 org.omg.CORBA.Any new_value = org.omg.mof.Reflective._ValueTypeHelper.read (in); 177 this.ref_set_value (feature, new_value); 178 out = $rh.createReply(); 179 } catch (org.omg.mof.Reflective.MofError $ex) { 180 out = $rh.createExceptionReply (); 181 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 182 } 183 break; 184 } 185 186 case 8: { 188 try { 189 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 190 org.omg.CORBA.Any $result = null; 191 $result = this.ref_value (feature); 192 out = $rh.createReply(); 193 out.write_any ($result); 194 } catch (org.omg.mof.Reflective.NotSet $ex) { 195 out = $rh.createExceptionReply (); 196 org.omg.mof.Reflective.NotSetHelper.write (out, $ex); 197 } catch (org.omg.mof.Reflective.MofError $ex) { 198 out = $rh.createExceptionReply (); 199 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 200 } 201 break; 202 } 203 204 case 9: { 206 try { 207 this.ref_unset_value (); 208 out = $rh.createReply(); 209 } catch (org.omg.mof.Reflective.MofError $ex) { 210 out = $rh.createExceptionReply (); 211 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 212 } 213 break; 214 } 215 216 case 10: { 218 try { 219 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 220 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 221 this.ref_add_value (feature, new_element); 222 out = $rh.createReply(); 223 } catch (org.omg.mof.Reflective.MofError $ex) { 224 out = $rh.createExceptionReply (); 225 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 226 } 227 break; 228 } 229 230 case 11: { 232 try { 233 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 234 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 235 org.omg.CORBA.Any before_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 236 this.ref_add_value_before (feature, new_element, before_element); 237 out = $rh.createReply(); 238 } catch (org.omg.mof.Reflective.NotFound $ex) { 239 out = $rh.createExceptionReply (); 240 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 241 } catch (org.omg.mof.Reflective.MofError $ex) { 242 out = $rh.createExceptionReply (); 243 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 244 } 245 break; 246 } 247 248 case 12: { 250 try { 251 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 252 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 253 int position = in.read_ulong (); 254 this.ref_add_value_at (feature, new_element, position); 255 out = $rh.createReply(); 256 } catch (org.omg.mof.Reflective.BadPosition $ex) { 257 out = $rh.createExceptionReply (); 258 org.omg.mof.Reflective.BadPositionHelper.write (out, $ex); 259 } catch (org.omg.mof.Reflective.MofError $ex) { 260 out = $rh.createExceptionReply (); 261 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 262 } 263 break; 264 } 265 266 case 13: { 268 try { 269 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 270 org.omg.CORBA.Any old_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 271 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 272 this.ref_modify_value (feature, old_element, new_element); 273 out = $rh.createReply(); 274 } catch (org.omg.mof.Reflective.NotFound $ex) { 275 out = $rh.createExceptionReply (); 276 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 277 } catch (org.omg.mof.Reflective.MofError $ex) { 278 out = $rh.createExceptionReply (); 279 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 280 } 281 break; 282 } 283 284 case 14: { 286 try { 287 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 288 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 289 int position = in.read_ulong (); 290 this.ref_modify_value_at (feature, new_element, position); 291 out = $rh.createReply(); 292 } catch (org.omg.mof.Reflective.BadPosition $ex) { 293 out = $rh.createExceptionReply (); 294 org.omg.mof.Reflective.BadPositionHelper.write (out, $ex); 295 } catch (org.omg.mof.Reflective.MofError $ex) { 296 out = $rh.createExceptionReply (); 297 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 298 } 299 break; 300 } 301 302 case 15: { 304 try { 305 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 306 org.omg.CORBA.Any existing_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 307 this.ref_remove_value (feature, existing_element); 308 out = $rh.createReply(); 309 } catch (org.omg.mof.Reflective.NotFound $ex) { 310 out = $rh.createExceptionReply (); 311 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 312 } catch (org.omg.mof.Reflective.MofError $ex) { 313 out = $rh.createExceptionReply (); 314 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 315 } 316 break; 317 } 318 319 case 16: { 321 try { 322 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 323 int position = in.read_ulong (); 324 this.ref_remove_value_at (feature, position); 325 out = $rh.createReply(); 326 } catch (org.omg.mof.Reflective.BadPosition $ex) { 327 out = $rh.createExceptionReply (); 328 org.omg.mof.Reflective.BadPositionHelper.write (out, $ex); 329 } catch (org.omg.mof.Reflective.MofError $ex) { 330 out = $rh.createExceptionReply (); 331 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 332 } 333 break; 334 } 335 336 case 17: { 338 org.omg.mof.Reflective.RefObject $result = null; 339 $result = this.ref_immediate_composite (); 340 out = $rh.createReply(); 341 org.omg.mof.Reflective.RefObjectHelper.write (out, $result); 342 break; 343 } 344 345 case 18: { 347 org.omg.mof.Reflective.RefObject $result = null; 348 $result = this.ref_outermost_composite (); 349 out = $rh.createReply(); 350 org.omg.mof.Reflective.RefObjectHelper.write (out, $result); 351 break; 352 } 353 354 case 19: { 356 try { 357 org.omg.mof.Reflective.RefObject requested_operation = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 358 org.omg.mof.Reflective.ValueTypeListHolder args = new org.omg.mof.Reflective.ValueTypeListHolder (); 359 args.value = org.omg.mof.Reflective.ValueTypeListHelper.read (in); 360 org.omg.CORBA.Any $result = null; 361 $result = this.ref_invoke_operation (requested_operation, args); 362 out = $rh.createReply(); 363 out.write_any ($result); 364 org.omg.mof.Reflective.ValueTypeListHelper.write (out, args.value); 365 } catch (org.omg.mof.Reflective.OtherException $ex) { 366 out = $rh.createExceptionReply (); 367 org.omg.mof.Reflective.OtherExceptionHelper.write (out, $ex); 368 } catch (org.omg.mof.Reflective.MofError $ex) { 369 out = $rh.createExceptionReply (); 370 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 371 } 372 break; 373 } 374 375 case 20: { 377 String $result = null; 378 $result = this.ref_mof_id (); 379 out = $rh.createReply(); 380 out.write_string ($result); 381 break; 382 } 383 384 case 21: { 386 org.omg.mof.Reflective.RefObject $result = null; 387 $result = this.ref_meta_object (); 388 out = $rh.createReply(); 389 org.omg.mof.Reflective.RefObjectHelper.write (out, $result); 390 break; 391 } 392 393 case 22: { 395 org.omg.mof.Reflective.RefBaseObject other_object = org.omg.mof.Reflective.RefBaseObjectHelper.read (in); 396 boolean $result = false; 397 $result = this.ref_itself (other_object); 398 out = $rh.createReply(); 399 out.write_boolean ($result); 400 break; 401 } 402 403 case 23: { 405 org.omg.mof.Reflective._RefPackage $result = null; 406 $result = this.ref_immediate_package (); 407 out = $rh.createReply(); 408 org.omg.mof.Reflective._RefPackageHelper.write (out, $result); 409 break; 410 } 411 412 case 24: { 414 org.omg.mof.Reflective._RefPackage $result = null; 415 $result = this.ref_outermost_package (); 416 out = $rh.createReply(); 417 org.omg.mof.Reflective._RefPackageHelper.write (out, $result); 418 break; 419 } 420 421 case 25: { 423 try { 424 this.ref_delete (); 425 out = $rh.createReply(); 426 } catch (org.omg.mof.Reflective.MofError $ex) { 427 out = $rh.createExceptionReply (); 428 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 429 } 430 break; 431 } 432 433 434 case 26: { 437 try { 438 String $result = null; 439 $result = this.name (); 440 out = $rh.createReply(); 441 out.write_string ($result); 442 } catch (org.omg.mof.Reflective.MofError $ex) { 443 out = $rh.createExceptionReply (); 444 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 445 } 446 break; 447 } 448 449 case 27: { 451 try { 452 String new_value = in.read_string (); 453 this.set_name (new_value); 454 out = $rh.createReply(); 455 } catch (org.omg.mof.Reflective.MofError $ex) { 456 out = $rh.createExceptionReply (); 457 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 458 } 459 break; 460 } 461 462 463 case 28: { 466 try { 467 String $result = null; 468 $result = this.annotation (); 469 out = $rh.createReply(); 470 out.write_string ($result); 471 } catch (org.omg.mof.Reflective.MofError $ex) { 472 out = $rh.createExceptionReply (); 473 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 474 } 475 break; 476 } 477 478 case 29: { 480 try { 481 String new_value = in.read_string (); 482 this.set_annotation (new_value); 483 out = $rh.createReply(); 484 } catch (org.omg.mof.Reflective.MofError $ex) { 485 out = $rh.createExceptionReply (); 486 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 487 } 488 break; 489 } 490 491 492 case 30: { 495 try { 496 String $result[] = null; 497 $result = this.qualified_name (); 498 out = $rh.createReply(); 499 org.omg.mof.Model.StringListHelper.write (out, $result); 500 } catch (org.omg.mof.Reflective.MofError $ex) { 501 out = $rh.createExceptionReply (); 502 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 503 } 504 break; 505 } 506 507 508 case 31: { 511 try { 512 org.omg.mof.Model.Namespace $result = null; 513 $result = this.container (); 514 out = $rh.createReply(); 515 org.omg.mof.Model.NamespaceHelper.write (out, $result); 516 } catch (org.omg.mof.Reflective.NotSet $ex) { 517 out = $rh.createExceptionReply (); 518 org.omg.mof.Reflective.NotSetHelper.write (out, $ex); 519 } catch (org.omg.mof.Reflective.MofError $ex) { 520 out = $rh.createExceptionReply (); 521 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 522 } 523 break; 524 } 525 526 case 32: { 528 try { 529 org.omg.mof.Model.Namespace new_value = org.omg.mof.Model.NamespaceHelper.read (in); 530 this.set_container (new_value); 531 out = $rh.createReply(); 532 } catch (org.omg.mof.Reflective.MofError $ex) { 533 out = $rh.createExceptionReply (); 534 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 535 } 536 break; 537 } 538 539 case 33: { 541 try { 542 this.unset_container (); 543 out = $rh.createReply(); 544 } catch (org.omg.mof.Reflective.MofError $ex) { 545 out = $rh.createExceptionReply (); 546 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 547 } 548 break; 549 } 550 551 552 case 34: { 555 try { 556 org.omg.mof.Model.ModelElement $result[] = null; 557 $result = this.required_elements (); 558 out = $rh.createReply(); 559 org.omg.mof.Model.ModelElementBagHelper.write (out, $result); 560 } catch (org.omg.mof.Reflective.MofError $ex) { 561 out = $rh.createExceptionReply (); 562 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 563 } 564 break; 565 } 566 567 case 35: { 569 try { 570 org.omg.mof.Model.ModelElement new_value[] = org.omg.mof.Model.ModelElementBagHelper.read (in); 571 this.set_required_elements (new_value); 572 out = $rh.createReply(); 573 } catch (org.omg.mof.Reflective.MofError $ex) { 574 out = $rh.createExceptionReply (); 575 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 576 } 577 break; 578 } 579 580 case 36: { 582 try { 583 org.omg.mof.Model.ModelElement new_element = org.omg.mof.Model.ModelElementHelper.read (in); 584 this.add_required_elements (new_element); 585 out = $rh.createReply(); 586 } catch (org.omg.mof.Reflective.MofError $ex) { 587 out = $rh.createExceptionReply (); 588 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 589 } 590 break; 591 } 592 593 case 37: { 595 try { 596 org.omg.mof.Model.ModelElement old_element = org.omg.mof.Model.ModelElementHelper.read (in); 597 org.omg.mof.Model.ModelElement new_element = org.omg.mof.Model.ModelElementHelper.read (in); 598 this.modify_required_elements (old_element, new_element); 599 out = $rh.createReply(); 600 } catch (org.omg.mof.Reflective.NotFound $ex) { 601 out = $rh.createExceptionReply (); 602 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 603 } catch (org.omg.mof.Reflective.MofError $ex) { 604 out = $rh.createExceptionReply (); 605 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 606 } 607 break; 608 } 609 610 case 38: { 612 try { 613 org.omg.mof.Model.ModelElement old_element = org.omg.mof.Model.ModelElementHelper.read (in); 614 this.remove_required_elements (old_element); 615 out = $rh.createReply(); 616 } catch (org.omg.mof.Reflective.NotFound $ex) { 617 out = $rh.createExceptionReply (); 618 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 619 } catch (org.omg.mof.Reflective.MofError $ex) { 620 out = $rh.createExceptionReply (); 621 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 622 } 623 break; 624 } 625 626 627 case 39: { 630 try { 631 org.omg.mof.Model.Constraint $result[] = null; 632 $result = this.constraints (); 633 out = $rh.createReply(); 634 org.omg.mof.Model.ConstraintBagHelper.write (out, $result); 635 } catch (org.omg.mof.Reflective.MofError $ex) { 636 out = $rh.createExceptionReply (); 637 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 638 } 639 break; 640 } 641 642 case 40: { 644 try { 645 org.omg.mof.Model.Constraint new_value[] = org.omg.mof.Model.ConstraintBagHelper.read (in); 646 this.set_constraints (new_value); 647 out = $rh.createReply(); 648 } catch (org.omg.mof.Reflective.MofError $ex) { 649 out = $rh.createExceptionReply (); 650 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 651 } 652 break; 653 } 654 655 case 41: { 657 try { 658 org.omg.mof.Model.Constraint new_element = org.omg.mof.Model.ConstraintHelper.read (in); 659 this.add_constraints (new_element); 660 out = $rh.createReply(); 661 } catch (org.omg.mof.Reflective.MofError $ex) { 662 out = $rh.createExceptionReply (); 663 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 664 } 665 break; 666 } 667 668 case 42: { 670 try { 671 org.omg.mof.Model.Constraint old_element = org.omg.mof.Model.ConstraintHelper.read (in); 672 org.omg.mof.Model.Constraint new_element = org.omg.mof.Model.ConstraintHelper.read (in); 673 this.modify_constraints (old_element, new_element); 674 out = $rh.createReply(); 675 } catch (org.omg.mof.Reflective.NotFound $ex) { 676 out = $rh.createExceptionReply (); 677 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 678 } catch (org.omg.mof.Reflective.MofError $ex) { 679 out = $rh.createExceptionReply (); 680 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 681 } 682 break; 683 } 684 685 case 43: { 687 try { 688 org.omg.mof.Model.Constraint old_element = org.omg.mof.Model.ConstraintHelper.read (in); 689 this.remove_constraints (old_element); 690 out = $rh.createReply(); 691 } catch (org.omg.mof.Reflective.NotFound $ex) { 692 out = $rh.createExceptionReply (); 693 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 694 } catch (org.omg.mof.Reflective.MofError $ex) { 695 out = $rh.createExceptionReply (); 696 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 697 } 698 break; 699 } 700 701 702 case 44: { 705 try { 706 org.omg.mof.Model.ModelElement $result[] = null; 707 $result = this.contents (); 708 out = $rh.createReply(); 709 org.omg.mof.Model.ModelElementListHelper.write (out, $result); 710 } catch (org.omg.mof.Reflective.MofError $ex) { 711 out = $rh.createExceptionReply (); 712 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 713 } 714 break; 715 } 716 717 case 45: { 719 try { 720 org.omg.mof.Model.ModelElement new_value[] = org.omg.mof.Model.ModelElementListHelper.read (in); 721 this.set_contents (new_value); 722 out = $rh.createReply(); 723 } catch (org.omg.mof.Reflective.MofError $ex) { 724 out = $rh.createExceptionReply (); 725 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 726 } 727 break; 728 } 729 730 case 46: { 732 try { 733 org.omg.mof.Model.ModelElement new_element = org.omg.mof.Model.ModelElementHelper.read (in); 734 this.add_contents (new_element); 735 out = $rh.createReply(); 736 } catch (org.omg.mof.Reflective.MofError $ex) { 737 out = $rh.createExceptionReply (); 738 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 739 } 740 break; 741 } 742 743 case 47: { 745 try { 746 org.omg.mof.Model.ModelElement new_element = org.omg.mof.Model.ModelElementHelper.read (in); 747 org.omg.mof.Model.ModelElement before_element = org.omg.mof.Model.ModelElementHelper.read (in); 748 this.add_contents_before (new_element, before_element); 749 out = $rh.createReply(); 750 } catch (org.omg.mof.Reflective.NotFound $ex) { 751 out = $rh.createExceptionReply (); 752 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 753 } catch (org.omg.mof.Reflective.MofError $ex) { 754 out = $rh.createExceptionReply (); 755 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 756 } 757 break; 758 } 759 760 case 48: { 762 try { 763 org.omg.mof.Model.ModelElement old_element = org.omg.mof.Model.ModelElementHelper.read (in); 764 org.omg.mof.Model.ModelElement new_element = org.omg.mof.Model.ModelElementHelper.read (in); 765 this.modify_contents (old_element, new_element); 766 out = $rh.createReply(); 767 } catch (org.omg.mof.Reflective.NotFound $ex) { 768 out = $rh.createExceptionReply (); 769 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 770 } catch (org.omg.mof.Reflective.MofError $ex) { 771 out = $rh.createExceptionReply (); 772 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 773 } 774 break; 775 } 776 777 case 49: { 779 try { 780 org.omg.mof.Model.ModelElement old_element = org.omg.mof.Model.ModelElementHelper.read (in); 781 this.remove_contents (old_element); 782 out = $rh.createReply(); 783 } catch (org.omg.mof.Reflective.NotFound $ex) { 784 out = $rh.createExceptionReply (); 785 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 786 } catch (org.omg.mof.Reflective.MofError $ex) { 787 out = $rh.createExceptionReply (); 788 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 789 } 790 break; 791 } 792 793 794 case 50: { 797 try { 798 org.omg.mof.Model.VisibilityKind $result = null; 799 $result = this.visibility (); 800 out = $rh.createReply(); 801 org.omg.mof.Model.VisibilityKindHelper.write (out, $result); 802 } catch (org.omg.mof.Reflective.MofError $ex) { 803 out = $rh.createExceptionReply (); 804 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 805 } 806 break; 807 } 808 809 case 51: { 811 try { 812 org.omg.mof.Model.VisibilityKind new_value = org.omg.mof.Model.VisibilityKindHelper.read (in); 813 this.set_visibility (new_value); 814 out = $rh.createReply(); 815 } catch (org.omg.mof.Reflective.MofError $ex) { 816 out = $rh.createExceptionReply (); 817 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 818 } 819 break; 820 } 821 822 823 case 52: { 826 try { 827 boolean $result = false; 828 $result = this.is_leaf (); 829 out = $rh.createReply(); 830 out.write_boolean ($result); 831 } catch (org.omg.mof.Reflective.MofError $ex) { 832 out = $rh.createExceptionReply (); 833 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 834 } 835 break; 836 } 837 838 case 53: { 840 try { 841 boolean new_value = in.read_boolean (); 842 this.set_is_leaf (new_value); 843 out = $rh.createReply(); 844 } catch (org.omg.mof.Reflective.MofError $ex) { 845 out = $rh.createExceptionReply (); 846 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 847 } 848 break; 849 } 850 851 852 case 54: { 855 try { 856 boolean $result = false; 857 $result = this.is_root (); 858 out = $rh.createReply(); 859 out.write_boolean ($result); 860 } catch (org.omg.mof.Reflective.MofError $ex) { 861 out = $rh.createExceptionReply (); 862 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 863 } 864 break; 865 } 866 867 case 55: { 869 try { 870 boolean new_value = in.read_boolean (); 871 this.set_is_root (new_value); 872 out = $rh.createReply(); 873 } catch (org.omg.mof.Reflective.MofError $ex) { 874 out = $rh.createExceptionReply (); 875 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 876 } 877 break; 878 } 879 880 881 case 56: { 884 try { 885 boolean $result = false; 886 $result = this.is_abstract (); 887 out = $rh.createReply(); 888 out.write_boolean ($result); 889 } catch (org.omg.mof.Reflective.MofError $ex) { 890 out = $rh.createExceptionReply (); 891 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 892 } 893 break; 894 } 895 896 case 57: { 898 try { 899 boolean new_value = in.read_boolean (); 900 this.set_is_abstract (new_value); 901 out = $rh.createReply(); 902 } catch (org.omg.mof.Reflective.MofError $ex) { 903 out = $rh.createExceptionReply (); 904 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 905 } 906 break; 907 } 908 909 910 case 58: { 913 try { 914 org.omg.mof.Model.GeneralizableElement $result[] = null; 915 $result = this.all_supertypes (); 916 out = $rh.createReply(); 917 org.omg.mof.Model.GeneralizableElementUListHelper.write (out, $result); 918 } catch (org.omg.mof.Reflective.MofError $ex) { 919 out = $rh.createExceptionReply (); 920 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 921 } 922 break; 923 } 924 925 926 case 59: { 929 try { 930 org.omg.mof.Model.GeneralizableElement $result[] = null; 931 $result = this.supertypes (); 932 out = $rh.createReply(); 933 org.omg.mof.Model.GeneralizableElementListHelper.write (out, $result); 934 } catch (org.omg.mof.Reflective.MofError $ex) { 935 out = $rh.createExceptionReply (); 936 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 937 } 938 break; 939 } 940 941 case 60: { 943 try { 944 org.omg.mof.Model.GeneralizableElement new_value[] = org.omg.mof.Model.GeneralizableElementListHelper.read (in); 945 this.set_supertypes (new_value); 946 out = $rh.createReply(); 947 } catch (org.omg.mof.Reflective.MofError $ex) { 948 out = $rh.createExceptionReply (); 949 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 950 } 951 break; 952 } 953 954 case 61: { 956 try { 957 org.omg.mof.Model.GeneralizableElement new_element = org.omg.mof.Model.GeneralizableElementHelper.read (in); 958 this.add_supertypes (new_element); 959 out = $rh.createReply(); 960 } catch (org.omg.mof.Reflective.MofError $ex) { 961 out = $rh.createExceptionReply (); 962 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 963 } 964 break; 965 } 966 967 case 62: { 969 try { 970 org.omg.mof.Model.GeneralizableElement new_element = org.omg.mof.Model.GeneralizableElementHelper.read (in); 971 org.omg.mof.Model.GeneralizableElement before_element = org.omg.mof.Model.GeneralizableElementHelper.read (in); 972 this.add_supertypes_before (new_element, before_element); 973 out = $rh.createReply(); 974 } catch (org.omg.mof.Reflective.NotFound $ex) { 975 out = $rh.createExceptionReply (); 976 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 977 } catch (org.omg.mof.Reflective.MofError $ex) { 978 out = $rh.createExceptionReply (); 979 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 980 } 981 break; 982 } 983 984 case 63: { 986 try { 987 org.omg.mof.Model.GeneralizableElement old_element = org.omg.mof.Model.GeneralizableElementHelper.read (in); 988 org.omg.mof.Model.GeneralizableElement new_element = org.omg.mof.Model.GeneralizableElementHelper.read (in); 989 this.modify_supertypes (old_element, new_element); 990 out = $rh.createReply(); 991 } catch (org.omg.mof.Reflective.NotFound $ex) { 992 out = $rh.createExceptionReply (); 993 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 994 } catch (org.omg.mof.Reflective.MofError $ex) { 995 out = $rh.createExceptionReply (); 996 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 997 } 998 break; 999 } 1000 1001 case 64: { 1003 try { 1004 org.omg.mof.Model.GeneralizableElement old_element = org.omg.mof.Model.GeneralizableElementHelper.read (in); 1005 this.remove_supertypes (old_element); 1006 out = $rh.createReply(); 1007 } catch (org.omg.mof.Reflective.NotFound $ex) { 1008 out = $rh.createExceptionReply (); 1009 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 1010 } catch (org.omg.mof.Reflective.MofError $ex) { 1011 out = $rh.createExceptionReply (); 1012 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 1013 } 1014 break; 1015 } 1016 1017 default: 1018 throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE); 1019 } 1020 1021 return out; 1022 } 1024 private static String [] __ids = { 1026 "IDL:org/omg/mof/Model/Classifier:1.0", 1027 "IDL:org/omg/mof/Model/ClassifierClass:1.0", 1028 "IDL:org/omg/mof/Model/GeneralizableElementClass:1.0", 1029 "IDL:org/omg/mof/Model/NamespaceClass:1.0", 1030 "IDL:org/omg/mof/Model/ModelElementClass:1.0", 1031 "IDL:org/omg/mof/Reflective/RefObject:1.0", 1032 "IDL:org/omg/mof/Reflective/RefBaseObject:1.0", 1033 "IDL:org/omg/mof/Model/ModelElement:1.0", 1034 "IDL:org/omg/mof/Model/Namespace:1.0", 1035 "IDL:org/omg/mof/Model/GeneralizableElement:1.0"}; 1036 1037 public String [] _all_interfaces (org.omg.PortableServer.POA poa, byte[] objectId) 1038 { 1039 return (String [])__ids.clone (); 1040 } 1041 1042 public Classifier _this() 1043 { 1044 return ClassifierHelper.narrow( 1045 super._this_object()); 1046 } 1047 1048 public Classifier _this(org.omg.CORBA.ORB orb) 1049 { 1050 return ClassifierHelper.narrow( 1051 super._this_object(orb)); 1052 } 1053 1054 1055} | Popular Tags |