1 package org.omg.mof.Model; 2 3 4 10 11 12 public abstract class TypeAliasPOA extends org.omg.PortableServer.Servant 14 implements org.omg.mof.Model.TypeAliasOperations, 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_type_alias", new java.lang.Integer (0)); 23 _methods.put ("_get_all_of_class_type_alias", new java.lang.Integer (1)); 24 _methods.put ("create_type_alias", new java.lang.Integer (2)); 25 _methods.put ("_get_all_of_type_typed_element", new java.lang.Integer (3)); 26 _methods.put ("_get_all_of_type_model_element", new java.lang.Integer (4)); 27 _methods.put ("ref_is_instance_of", new java.lang.Integer (5)); 28 _methods.put ("ref_create_instance", new java.lang.Integer (6)); 29 _methods.put ("ref_all_objects", new java.lang.Integer (7)); 30 _methods.put ("ref_set_value", new java.lang.Integer (8)); 31 _methods.put ("ref_value", new java.lang.Integer (9)); 32 _methods.put ("ref_unset_value", new java.lang.Integer (10)); 33 _methods.put ("ref_add_value", new java.lang.Integer (11)); 34 _methods.put ("ref_add_value_before", new java.lang.Integer (12)); 35 _methods.put ("ref_add_value_at", new java.lang.Integer (13)); 36 _methods.put ("ref_modify_value", new java.lang.Integer (14)); 37 _methods.put ("ref_modify_value_at", new java.lang.Integer (15)); 38 _methods.put ("ref_remove_value", new java.lang.Integer (16)); 39 _methods.put ("ref_remove_value_at", new java.lang.Integer (17)); 40 _methods.put ("ref_immediate_composite", new java.lang.Integer (18)); 41 _methods.put ("ref_outermost_composite", new java.lang.Integer (19)); 42 _methods.put ("ref_invoke_operation", new java.lang.Integer (20)); 43 _methods.put ("ref_mof_id", new java.lang.Integer (21)); 44 _methods.put ("ref_meta_object", new java.lang.Integer (22)); 45 _methods.put ("ref_itself", new java.lang.Integer (23)); 46 _methods.put ("ref_immediate_package", new java.lang.Integer (24)); 47 _methods.put ("ref_outermost_package", new java.lang.Integer (25)); 48 _methods.put ("ref_delete", new java.lang.Integer (26)); 49 _methods.put ("name", new java.lang.Integer (27)); 50 _methods.put ("set_name", new java.lang.Integer (28)); 51 _methods.put ("annotation", new java.lang.Integer (29)); 52 _methods.put ("set_annotation", new java.lang.Integer (30)); 53 _methods.put ("qualified_name", new java.lang.Integer (31)); 54 _methods.put ("container", new java.lang.Integer (32)); 55 _methods.put ("set_container", new java.lang.Integer (33)); 56 _methods.put ("unset_container", new java.lang.Integer (34)); 57 _methods.put ("required_elements", new java.lang.Integer (35)); 58 _methods.put ("set_required_elements", new java.lang.Integer (36)); 59 _methods.put ("add_required_elements", new java.lang.Integer (37)); 60 _methods.put ("modify_required_elements", new java.lang.Integer (38)); 61 _methods.put ("remove_required_elements", new java.lang.Integer (39)); 62 _methods.put ("constraints", new java.lang.Integer (40)); 63 _methods.put ("set_constraints", new java.lang.Integer (41)); 64 _methods.put ("add_constraints", new java.lang.Integer (42)); 65 _methods.put ("modify_constraints", new java.lang.Integer (43)); 66 _methods.put ("remove_constraints", new java.lang.Integer (44)); 67 _methods.put ("type", new java.lang.Integer (45)); 68 _methods.put ("set_type", new java.lang.Integer (46)); 69 } 70 71 public org.omg.CORBA.portable.OutputStream _invoke (String $method, 72 org.omg.CORBA.portable.InputStream in, 73 org.omg.CORBA.portable.ResponseHandler $rh) 74 { 75 org.omg.CORBA.portable.OutputStream out = null; 76 java.lang.Integer __method = (java.lang.Integer )_methods.get ($method); 77 if (__method == null) 78 throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE); 79 80 switch (__method.intValue ()) 81 { 82 case 0: { 84 org.omg.mof.Model.TypeAlias $result[] = null; 85 $result = this.all_of_type_type_alias (); 86 out = $rh.createReply(); 87 org.omg.mof.Model.TypeAliasSetHelper.write (out, $result); 88 break; 89 } 90 91 case 1: { 93 org.omg.mof.Model.TypeAlias $result[] = null; 94 $result = this.all_of_class_type_alias (); 95 out = $rh.createReply(); 96 org.omg.mof.Model.TypeAliasSetHelper.write (out, $result); 97 break; 98 } 99 100 case 2: { 102 try { 103 String name = in.read_string (); 104 String annotation = in.read_string (); 105 org.omg.mof.Model.TypeAlias $result = null; 106 $result = this.create_type_alias (name, annotation); 107 out = $rh.createReply(); 108 org.omg.mof.Model.TypeAliasHelper.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 3: { 118 org.omg.mof.Model.TypedElement $result[] = null; 119 $result = this.all_of_type_typed_element (); 120 out = $rh.createReply(); 121 org.omg.mof.Model.TypedElementSetHelper.write (out, $result); 122 break; 123 } 124 125 case 4: { 127 org.omg.mof.Model.ModelElement $result[] = null; 128 $result = this.all_of_type_model_element (); 129 out = $rh.createReply(); 130 org.omg.mof.Model.ModelElementSetHelper.write (out, $result); 131 break; 132 } 133 134 case 5: { 136 org.omg.mof.Reflective.RefObject some_class = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 137 boolean consider_subtypes = in.read_boolean (); 138 boolean $result = false; 139 $result = this.ref_is_instance_of (some_class, consider_subtypes); 140 out = $rh.createReply(); 141 out.write_boolean ($result); 142 break; 143 } 144 145 case 6: { 147 try { 148 org.omg.CORBA.Any args[] = org.omg.mof.Reflective.ValueTypeListHelper.read (in); 149 org.omg.mof.Reflective.RefObject $result = null; 150 $result = this.ref_create_instance (args); 151 out = $rh.createReply(); 152 org.omg.mof.Reflective.RefObjectHelper.write (out, $result); 153 } catch (org.omg.mof.Reflective.MofError $ex) { 154 out = $rh.createExceptionReply (); 155 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 156 } 157 break; 158 } 159 160 case 7: { 162 boolean include_subtypes = in.read_boolean (); 163 org.omg.mof.Reflective.RefObject $result[] = null; 164 $result = this.ref_all_objects (include_subtypes); 165 out = $rh.createReply(); 166 org.omg.mof.Reflective.RefObjectSetHelper.write (out, $result); 167 break; 168 } 169 170 case 8: { 172 try { 173 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 174 org.omg.CORBA.Any new_value = org.omg.mof.Reflective._ValueTypeHelper.read (in); 175 this.ref_set_value (feature, new_value); 176 out = $rh.createReply(); 177 } catch (org.omg.mof.Reflective.MofError $ex) { 178 out = $rh.createExceptionReply (); 179 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 180 } 181 break; 182 } 183 184 case 9: { 186 try { 187 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 188 org.omg.CORBA.Any $result = null; 189 $result = this.ref_value (feature); 190 out = $rh.createReply(); 191 out.write_any ($result); 192 } catch (org.omg.mof.Reflective.NotSet $ex) { 193 out = $rh.createExceptionReply (); 194 org.omg.mof.Reflective.NotSetHelper.write (out, $ex); 195 } catch (org.omg.mof.Reflective.MofError $ex) { 196 out = $rh.createExceptionReply (); 197 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 198 } 199 break; 200 } 201 202 case 10: { 204 try { 205 this.ref_unset_value (); 206 out = $rh.createReply(); 207 } catch (org.omg.mof.Reflective.MofError $ex) { 208 out = $rh.createExceptionReply (); 209 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 210 } 211 break; 212 } 213 214 case 11: { 216 try { 217 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 218 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 219 this.ref_add_value (feature, new_element); 220 out = $rh.createReply(); 221 } catch (org.omg.mof.Reflective.MofError $ex) { 222 out = $rh.createExceptionReply (); 223 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 224 } 225 break; 226 } 227 228 case 12: { 230 try { 231 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 232 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 233 org.omg.CORBA.Any before_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 234 this.ref_add_value_before (feature, new_element, before_element); 235 out = $rh.createReply(); 236 } catch (org.omg.mof.Reflective.NotFound $ex) { 237 out = $rh.createExceptionReply (); 238 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 239 } catch (org.omg.mof.Reflective.MofError $ex) { 240 out = $rh.createExceptionReply (); 241 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 242 } 243 break; 244 } 245 246 case 13: { 248 try { 249 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 250 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 251 int position = in.read_ulong (); 252 this.ref_add_value_at (feature, new_element, position); 253 out = $rh.createReply(); 254 } catch (org.omg.mof.Reflective.BadPosition $ex) { 255 out = $rh.createExceptionReply (); 256 org.omg.mof.Reflective.BadPositionHelper.write (out, $ex); 257 } catch (org.omg.mof.Reflective.MofError $ex) { 258 out = $rh.createExceptionReply (); 259 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 260 } 261 break; 262 } 263 264 case 14: { 266 try { 267 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 268 org.omg.CORBA.Any old_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 269 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 270 this.ref_modify_value (feature, old_element, new_element); 271 out = $rh.createReply(); 272 } catch (org.omg.mof.Reflective.NotFound $ex) { 273 out = $rh.createExceptionReply (); 274 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 275 } catch (org.omg.mof.Reflective.MofError $ex) { 276 out = $rh.createExceptionReply (); 277 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 278 } 279 break; 280 } 281 282 case 15: { 284 try { 285 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 286 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 287 int position = in.read_ulong (); 288 this.ref_modify_value_at (feature, new_element, position); 289 out = $rh.createReply(); 290 } catch (org.omg.mof.Reflective.BadPosition $ex) { 291 out = $rh.createExceptionReply (); 292 org.omg.mof.Reflective.BadPositionHelper.write (out, $ex); 293 } catch (org.omg.mof.Reflective.MofError $ex) { 294 out = $rh.createExceptionReply (); 295 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 296 } 297 break; 298 } 299 300 case 16: { 302 try { 303 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 304 org.omg.CORBA.Any existing_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 305 this.ref_remove_value (feature, existing_element); 306 out = $rh.createReply(); 307 } catch (org.omg.mof.Reflective.NotFound $ex) { 308 out = $rh.createExceptionReply (); 309 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 310 } catch (org.omg.mof.Reflective.MofError $ex) { 311 out = $rh.createExceptionReply (); 312 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 313 } 314 break; 315 } 316 317 case 17: { 319 try { 320 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 321 int position = in.read_ulong (); 322 this.ref_remove_value_at (feature, position); 323 out = $rh.createReply(); 324 } catch (org.omg.mof.Reflective.BadPosition $ex) { 325 out = $rh.createExceptionReply (); 326 org.omg.mof.Reflective.BadPositionHelper.write (out, $ex); 327 } catch (org.omg.mof.Reflective.MofError $ex) { 328 out = $rh.createExceptionReply (); 329 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 330 } 331 break; 332 } 333 334 case 18: { 336 org.omg.mof.Reflective.RefObject $result = null; 337 $result = this.ref_immediate_composite (); 338 out = $rh.createReply(); 339 org.omg.mof.Reflective.RefObjectHelper.write (out, $result); 340 break; 341 } 342 343 case 19: { 345 org.omg.mof.Reflective.RefObject $result = null; 346 $result = this.ref_outermost_composite (); 347 out = $rh.createReply(); 348 org.omg.mof.Reflective.RefObjectHelper.write (out, $result); 349 break; 350 } 351 352 case 20: { 354 try { 355 org.omg.mof.Reflective.RefObject requested_operation = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 356 org.omg.mof.Reflective.ValueTypeListHolder args = new org.omg.mof.Reflective.ValueTypeListHolder (); 357 args.value = org.omg.mof.Reflective.ValueTypeListHelper.read (in); 358 org.omg.CORBA.Any $result = null; 359 $result = this.ref_invoke_operation (requested_operation, args); 360 out = $rh.createReply(); 361 out.write_any ($result); 362 org.omg.mof.Reflective.ValueTypeListHelper.write (out, args.value); 363 } catch (org.omg.mof.Reflective.OtherException $ex) { 364 out = $rh.createExceptionReply (); 365 org.omg.mof.Reflective.OtherExceptionHelper.write (out, $ex); 366 } catch (org.omg.mof.Reflective.MofError $ex) { 367 out = $rh.createExceptionReply (); 368 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 369 } 370 break; 371 } 372 373 case 21: { 375 String $result = null; 376 $result = this.ref_mof_id (); 377 out = $rh.createReply(); 378 out.write_string ($result); 379 break; 380 } 381 382 case 22: { 384 org.omg.mof.Reflective.RefObject $result = null; 385 $result = this.ref_meta_object (); 386 out = $rh.createReply(); 387 org.omg.mof.Reflective.RefObjectHelper.write (out, $result); 388 break; 389 } 390 391 case 23: { 393 org.omg.mof.Reflective.RefBaseObject other_object = org.omg.mof.Reflective.RefBaseObjectHelper.read (in); 394 boolean $result = false; 395 $result = this.ref_itself (other_object); 396 out = $rh.createReply(); 397 out.write_boolean ($result); 398 break; 399 } 400 401 case 24: { 403 org.omg.mof.Reflective._RefPackage $result = null; 404 $result = this.ref_immediate_package (); 405 out = $rh.createReply(); 406 org.omg.mof.Reflective._RefPackageHelper.write (out, $result); 407 break; 408 } 409 410 case 25: { 412 org.omg.mof.Reflective._RefPackage $result = null; 413 $result = this.ref_outermost_package (); 414 out = $rh.createReply(); 415 org.omg.mof.Reflective._RefPackageHelper.write (out, $result); 416 break; 417 } 418 419 case 26: { 421 try { 422 this.ref_delete (); 423 out = $rh.createReply(); 424 } catch (org.omg.mof.Reflective.MofError $ex) { 425 out = $rh.createExceptionReply (); 426 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 427 } 428 break; 429 } 430 431 432 case 27: { 435 try { 436 String $result = null; 437 $result = this.name (); 438 out = $rh.createReply(); 439 out.write_string ($result); 440 } catch (org.omg.mof.Reflective.MofError $ex) { 441 out = $rh.createExceptionReply (); 442 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 443 } 444 break; 445 } 446 447 case 28: { 449 try { 450 String new_value = in.read_string (); 451 this.set_name (new_value); 452 out = $rh.createReply(); 453 } catch (org.omg.mof.Reflective.MofError $ex) { 454 out = $rh.createExceptionReply (); 455 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 456 } 457 break; 458 } 459 460 461 case 29: { 464 try { 465 String $result = null; 466 $result = this.annotation (); 467 out = $rh.createReply(); 468 out.write_string ($result); 469 } catch (org.omg.mof.Reflective.MofError $ex) { 470 out = $rh.createExceptionReply (); 471 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 472 } 473 break; 474 } 475 476 case 30: { 478 try { 479 String new_value = in.read_string (); 480 this.set_annotation (new_value); 481 out = $rh.createReply(); 482 } catch (org.omg.mof.Reflective.MofError $ex) { 483 out = $rh.createExceptionReply (); 484 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 485 } 486 break; 487 } 488 489 490 case 31: { 493 try { 494 String $result[] = null; 495 $result = this.qualified_name (); 496 out = $rh.createReply(); 497 org.omg.mof.Model.StringListHelper.write (out, $result); 498 } catch (org.omg.mof.Reflective.MofError $ex) { 499 out = $rh.createExceptionReply (); 500 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 501 } 502 break; 503 } 504 505 506 case 32: { 509 try { 510 org.omg.mof.Model.Namespace $result = null; 511 $result = this.container (); 512 out = $rh.createReply(); 513 org.omg.mof.Model.NamespaceHelper.write (out, $result); 514 } catch (org.omg.mof.Reflective.NotSet $ex) { 515 out = $rh.createExceptionReply (); 516 org.omg.mof.Reflective.NotSetHelper.write (out, $ex); 517 } catch (org.omg.mof.Reflective.MofError $ex) { 518 out = $rh.createExceptionReply (); 519 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 520 } 521 break; 522 } 523 524 case 33: { 526 try { 527 org.omg.mof.Model.Namespace new_value = org.omg.mof.Model.NamespaceHelper.read (in); 528 this.set_container (new_value); 529 out = $rh.createReply(); 530 } catch (org.omg.mof.Reflective.MofError $ex) { 531 out = $rh.createExceptionReply (); 532 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 533 } 534 break; 535 } 536 537 case 34: { 539 try { 540 this.unset_container (); 541 out = $rh.createReply(); 542 } catch (org.omg.mof.Reflective.MofError $ex) { 543 out = $rh.createExceptionReply (); 544 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 545 } 546 break; 547 } 548 549 550 case 35: { 553 try { 554 org.omg.mof.Model.ModelElement $result[] = null; 555 $result = this.required_elements (); 556 out = $rh.createReply(); 557 org.omg.mof.Model.ModelElementBagHelper.write (out, $result); 558 } catch (org.omg.mof.Reflective.MofError $ex) { 559 out = $rh.createExceptionReply (); 560 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 561 } 562 break; 563 } 564 565 case 36: { 567 try { 568 org.omg.mof.Model.ModelElement new_value[] = org.omg.mof.Model.ModelElementBagHelper.read (in); 569 this.set_required_elements (new_value); 570 out = $rh.createReply(); 571 } catch (org.omg.mof.Reflective.MofError $ex) { 572 out = $rh.createExceptionReply (); 573 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 574 } 575 break; 576 } 577 578 case 37: { 580 try { 581 org.omg.mof.Model.ModelElement new_element = org.omg.mof.Model.ModelElementHelper.read (in); 582 this.add_required_elements (new_element); 583 out = $rh.createReply(); 584 } catch (org.omg.mof.Reflective.MofError $ex) { 585 out = $rh.createExceptionReply (); 586 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 587 } 588 break; 589 } 590 591 case 38: { 593 try { 594 org.omg.mof.Model.ModelElement old_element = org.omg.mof.Model.ModelElementHelper.read (in); 595 org.omg.mof.Model.ModelElement new_element = org.omg.mof.Model.ModelElementHelper.read (in); 596 this.modify_required_elements (old_element, new_element); 597 out = $rh.createReply(); 598 } catch (org.omg.mof.Reflective.NotFound $ex) { 599 out = $rh.createExceptionReply (); 600 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 601 } catch (org.omg.mof.Reflective.MofError $ex) { 602 out = $rh.createExceptionReply (); 603 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 604 } 605 break; 606 } 607 608 case 39: { 610 try { 611 org.omg.mof.Model.ModelElement old_element = org.omg.mof.Model.ModelElementHelper.read (in); 612 this.remove_required_elements (old_element); 613 out = $rh.createReply(); 614 } catch (org.omg.mof.Reflective.NotFound $ex) { 615 out = $rh.createExceptionReply (); 616 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 617 } catch (org.omg.mof.Reflective.MofError $ex) { 618 out = $rh.createExceptionReply (); 619 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 620 } 621 break; 622 } 623 624 625 case 40: { 628 try { 629 org.omg.mof.Model.Constraint $result[] = null; 630 $result = this.constraints (); 631 out = $rh.createReply(); 632 org.omg.mof.Model.ConstraintBagHelper.write (out, $result); 633 } catch (org.omg.mof.Reflective.MofError $ex) { 634 out = $rh.createExceptionReply (); 635 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 636 } 637 break; 638 } 639 640 case 41: { 642 try { 643 org.omg.mof.Model.Constraint new_value[] = org.omg.mof.Model.ConstraintBagHelper.read (in); 644 this.set_constraints (new_value); 645 out = $rh.createReply(); 646 } catch (org.omg.mof.Reflective.MofError $ex) { 647 out = $rh.createExceptionReply (); 648 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 649 } 650 break; 651 } 652 653 case 42: { 655 try { 656 org.omg.mof.Model.Constraint new_element = org.omg.mof.Model.ConstraintHelper.read (in); 657 this.add_constraints (new_element); 658 out = $rh.createReply(); 659 } catch (org.omg.mof.Reflective.MofError $ex) { 660 out = $rh.createExceptionReply (); 661 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 662 } 663 break; 664 } 665 666 case 43: { 668 try { 669 org.omg.mof.Model.Constraint old_element = org.omg.mof.Model.ConstraintHelper.read (in); 670 org.omg.mof.Model.Constraint new_element = org.omg.mof.Model.ConstraintHelper.read (in); 671 this.modify_constraints (old_element, new_element); 672 out = $rh.createReply(); 673 } catch (org.omg.mof.Reflective.NotFound $ex) { 674 out = $rh.createExceptionReply (); 675 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 676 } catch (org.omg.mof.Reflective.MofError $ex) { 677 out = $rh.createExceptionReply (); 678 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 679 } 680 break; 681 } 682 683 case 44: { 685 try { 686 org.omg.mof.Model.Constraint old_element = org.omg.mof.Model.ConstraintHelper.read (in); 687 this.remove_constraints (old_element); 688 out = $rh.createReply(); 689 } catch (org.omg.mof.Reflective.NotFound $ex) { 690 out = $rh.createExceptionReply (); 691 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 692 } catch (org.omg.mof.Reflective.MofError $ex) { 693 out = $rh.createExceptionReply (); 694 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 695 } 696 break; 697 } 698 699 700 case 45: { 703 try { 704 org.omg.mof.Model.Classifier $result = null; 705 $result = this.type (); 706 out = $rh.createReply(); 707 org.omg.mof.Model.ClassifierHelper.write (out, $result); 708 } catch (org.omg.mof.Reflective.MofError $ex) { 709 out = $rh.createExceptionReply (); 710 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 711 } 712 break; 713 } 714 715 case 46: { 717 try { 718 org.omg.mof.Model.Classifier new_value = org.omg.mof.Model.ClassifierHelper.read (in); 719 this.set_type (new_value); 720 out = $rh.createReply(); 721 } catch (org.omg.mof.Reflective.MofError $ex) { 722 out = $rh.createExceptionReply (); 723 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 724 } 725 break; 726 } 727 728 default: 729 throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE); 730 } 731 732 return out; 733 } 735 private static String [] __ids = { 737 "IDL:org/omg/mof/Model/TypeAlias:1.0", 738 "IDL:org/omg/mof/Model/TypeAliasClass:1.0", 739 "IDL:org/omg/mof/Model/TypedElementClass:1.0", 740 "IDL:org/omg/mof/Model/ModelElementClass:1.0", 741 "IDL:org/omg/mof/Reflective/RefObject:1.0", 742 "IDL:org/omg/mof/Reflective/RefBaseObject:1.0", 743 "IDL:org/omg/mof/Model/ModelElement:1.0", 744 "IDL:org/omg/mof/Model/TypedElement:1.0"}; 745 746 public String [] _all_interfaces (org.omg.PortableServer.POA poa, byte[] objectId) 747 { 748 return (String [])__ids.clone (); 749 } 750 751 public TypeAlias _this() 752 { 753 return TypeAliasHelper.narrow( 754 super._this_object()); 755 } 756 757 public TypeAlias _this(org.omg.CORBA.ORB orb) 758 { 759 return TypeAliasHelper.narrow( 760 super._this_object(orb)); 761 } 762 763 764 } | Popular Tags |