1 package org.omg.mof.Model; 2 3 4 10 11 12 public abstract class AssociationEndPOA extends org.omg.PortableServer.Servant 14 implements org.omg.mof.Model.AssociationEndOperations, 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 ("is_navigable", new java.lang.Integer (0)); 23 _methods.put ("set_is_navigable", new java.lang.Integer (1)); 24 _methods.put ("aggregation", new java.lang.Integer (2)); 25 _methods.put ("set_aggregation", new java.lang.Integer (3)); 26 _methods.put ("multiplicity", new java.lang.Integer (4)); 27 _methods.put ("set_multiplicity", new java.lang.Integer (5)); 28 _methods.put ("is_changeable", new java.lang.Integer (6)); 29 _methods.put ("set_is_changeable", new java.lang.Integer (7)); 30 _methods.put ("other_end", new java.lang.Integer (8)); 31 _methods.put ("_get_all_of_type_association_end", new java.lang.Integer (9)); 32 _methods.put ("_get_all_of_class_association_end", new java.lang.Integer (10)); 33 _methods.put ("create_association_end", new java.lang.Integer (11)); 34 _methods.put ("_get_all_of_type_typed_element", new java.lang.Integer (12)); 35 _methods.put ("_get_all_of_type_model_element", new java.lang.Integer (13)); 36 _methods.put ("ref_is_instance_of", new java.lang.Integer (14)); 37 _methods.put ("ref_create_instance", new java.lang.Integer (15)); 38 _methods.put ("ref_all_objects", new java.lang.Integer (16)); 39 _methods.put ("ref_set_value", new java.lang.Integer (17)); 40 _methods.put ("ref_value", new java.lang.Integer (18)); 41 _methods.put ("ref_unset_value", new java.lang.Integer (19)); 42 _methods.put ("ref_add_value", new java.lang.Integer (20)); 43 _methods.put ("ref_add_value_before", new java.lang.Integer (21)); 44 _methods.put ("ref_add_value_at", new java.lang.Integer (22)); 45 _methods.put ("ref_modify_value", new java.lang.Integer (23)); 46 _methods.put ("ref_modify_value_at", new java.lang.Integer (24)); 47 _methods.put ("ref_remove_value", new java.lang.Integer (25)); 48 _methods.put ("ref_remove_value_at", new java.lang.Integer (26)); 49 _methods.put ("ref_immediate_composite", new java.lang.Integer (27)); 50 _methods.put ("ref_outermost_composite", new java.lang.Integer (28)); 51 _methods.put ("ref_invoke_operation", new java.lang.Integer (29)); 52 _methods.put ("ref_mof_id", new java.lang.Integer (30)); 53 _methods.put ("ref_meta_object", new java.lang.Integer (31)); 54 _methods.put ("ref_itself", new java.lang.Integer (32)); 55 _methods.put ("ref_immediate_package", new java.lang.Integer (33)); 56 _methods.put ("ref_outermost_package", new java.lang.Integer (34)); 57 _methods.put ("ref_delete", new java.lang.Integer (35)); 58 _methods.put ("name", new java.lang.Integer (36)); 59 _methods.put ("set_name", new java.lang.Integer (37)); 60 _methods.put ("annotation", new java.lang.Integer (38)); 61 _methods.put ("set_annotation", new java.lang.Integer (39)); 62 _methods.put ("qualified_name", new java.lang.Integer (40)); 63 _methods.put ("container", new java.lang.Integer (41)); 64 _methods.put ("set_container", new java.lang.Integer (42)); 65 _methods.put ("unset_container", new java.lang.Integer (43)); 66 _methods.put ("required_elements", new java.lang.Integer (44)); 67 _methods.put ("set_required_elements", new java.lang.Integer (45)); 68 _methods.put ("add_required_elements", new java.lang.Integer (46)); 69 _methods.put ("modify_required_elements", new java.lang.Integer (47)); 70 _methods.put ("remove_required_elements", new java.lang.Integer (48)); 71 _methods.put ("constraints", new java.lang.Integer (49)); 72 _methods.put ("set_constraints", new java.lang.Integer (50)); 73 _methods.put ("add_constraints", new java.lang.Integer (51)); 74 _methods.put ("modify_constraints", new java.lang.Integer (52)); 75 _methods.put ("remove_constraints", new java.lang.Integer (53)); 76 _methods.put ("type", new java.lang.Integer (54)); 77 _methods.put ("set_type", new java.lang.Integer (55)); 78 } 79 80 public org.omg.CORBA.portable.OutputStream _invoke (String $method, 81 org.omg.CORBA.portable.InputStream in, 82 org.omg.CORBA.portable.ResponseHandler $rh) 83 { 84 org.omg.CORBA.portable.OutputStream out = null; 85 java.lang.Integer __method = (java.lang.Integer )_methods.get ($method); 86 if (__method == null) 87 throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE); 88 89 switch (__method.intValue ()) 90 { 91 92 case 0: { 95 try { 96 boolean $result = false; 97 $result = this.is_navigable (); 98 out = $rh.createReply(); 99 out.write_boolean ($result); 100 } catch (org.omg.mof.Reflective.MofError $ex) { 101 out = $rh.createExceptionReply (); 102 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 103 } 104 break; 105 } 106 107 case 1: { 109 try { 110 boolean new_value = in.read_boolean (); 111 this.set_is_navigable (new_value); 112 out = $rh.createReply(); 113 } catch (org.omg.mof.Reflective.MofError $ex) { 114 out = $rh.createExceptionReply (); 115 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 116 } 117 break; 118 } 119 120 121 case 2: { 124 try { 125 org.omg.mof.Model.AggregationKind $result = null; 126 $result = this.aggregation (); 127 out = $rh.createReply(); 128 org.omg.mof.Model.AggregationKindHelper.write (out, $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 3: { 138 try { 139 org.omg.mof.Model.AggregationKind new_value = org.omg.mof.Model.AggregationKindHelper.read (in); 140 this.set_aggregation (new_value); 141 out = $rh.createReply(); 142 } catch (org.omg.mof.Reflective.MofError $ex) { 143 out = $rh.createExceptionReply (); 144 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 145 } 146 break; 147 } 148 149 150 case 4: { 153 try { 154 org.omg.mof.Model.MultiplicityType $result = null; 155 $result = this.multiplicity (); 156 out = $rh.createReply(); 157 org.omg.mof.Model.MultiplicityTypeHelper.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 5: { 167 try { 168 org.omg.mof.Model.MultiplicityType new_value = org.omg.mof.Model.MultiplicityTypeHelper.read (in); 169 this.set_multiplicity (new_value); 170 out = $rh.createReply(); 171 } catch (org.omg.mof.Reflective.MofError $ex) { 172 out = $rh.createExceptionReply (); 173 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 174 } 175 break; 176 } 177 178 179 case 6: { 182 try { 183 boolean $result = false; 184 $result = this.is_changeable (); 185 out = $rh.createReply(); 186 out.write_boolean ($result); 187 } catch (org.omg.mof.Reflective.MofError $ex) { 188 out = $rh.createExceptionReply (); 189 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 190 } 191 break; 192 } 193 194 case 7: { 196 try { 197 boolean new_value = in.read_boolean (); 198 this.set_is_changeable (new_value); 199 out = $rh.createReply(); 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 208 case 8: { 211 try { 212 org.omg.mof.Model.AssociationEnd $result = null; 213 $result = this.other_end (); 214 out = $rh.createReply(); 215 org.omg.mof.Model.AssociationEndHelper.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 9: { 225 org.omg.mof.Model.AssociationEnd $result[] = null; 226 $result = this.all_of_type_association_end (); 227 out = $rh.createReply(); 228 org.omg.mof.Model.AssociationEndSetHelper.write (out, $result); 229 break; 230 } 231 232 case 10: { 234 org.omg.mof.Model.AssociationEnd $result[] = null; 235 $result = this.all_of_class_association_end (); 236 out = $rh.createReply(); 237 org.omg.mof.Model.AssociationEndSetHelper.write (out, $result); 238 break; 239 } 240 241 case 11: { 243 try { 244 String name = in.read_string (); 245 String annotation = in.read_string (); 246 boolean is_navigable = in.read_boolean (); 247 org.omg.mof.Model.AggregationKind aggregation = org.omg.mof.Model.AggregationKindHelper.read (in); 248 org.omg.mof.Model.MultiplicityType multiplicity = org.omg.mof.Model.MultiplicityTypeHelper.read (in); 249 boolean is_changeable = in.read_boolean (); 250 org.omg.mof.Model.AssociationEnd $result = null; 251 $result = this.create_association_end (name, annotation, is_navigable, aggregation, multiplicity, is_changeable); 252 out = $rh.createReply(); 253 org.omg.mof.Model.AssociationEndHelper.write (out, $result); 254 } catch (org.omg.mof.Reflective.MofError $ex) { 255 out = $rh.createExceptionReply (); 256 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 257 } 258 break; 259 } 260 261 case 12: { 263 org.omg.mof.Model.TypedElement $result[] = null; 264 $result = this.all_of_type_typed_element (); 265 out = $rh.createReply(); 266 org.omg.mof.Model.TypedElementSetHelper.write (out, $result); 267 break; 268 } 269 270 case 13: { 272 org.omg.mof.Model.ModelElement $result[] = null; 273 $result = this.all_of_type_model_element (); 274 out = $rh.createReply(); 275 org.omg.mof.Model.ModelElementSetHelper.write (out, $result); 276 break; 277 } 278 279 case 14: { 281 org.omg.mof.Reflective.RefObject some_class = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 282 boolean consider_subtypes = in.read_boolean (); 283 boolean $result = false; 284 $result = this.ref_is_instance_of (some_class, consider_subtypes); 285 out = $rh.createReply(); 286 out.write_boolean ($result); 287 break; 288 } 289 290 case 15: { 292 try { 293 org.omg.CORBA.Any args[] = org.omg.mof.Reflective.ValueTypeListHelper.read (in); 294 org.omg.mof.Reflective.RefObject $result = null; 295 $result = this.ref_create_instance (args); 296 out = $rh.createReply(); 297 org.omg.mof.Reflective.RefObjectHelper.write (out, $result); 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 16: { 307 boolean include_subtypes = in.read_boolean (); 308 org.omg.mof.Reflective.RefObject $result[] = null; 309 $result = this.ref_all_objects (include_subtypes); 310 out = $rh.createReply(); 311 org.omg.mof.Reflective.RefObjectSetHelper.write (out, $result); 312 break; 313 } 314 315 case 17: { 317 try { 318 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 319 org.omg.CORBA.Any new_value = org.omg.mof.Reflective._ValueTypeHelper.read (in); 320 this.ref_set_value (feature, new_value); 321 out = $rh.createReply(); 322 } catch (org.omg.mof.Reflective.MofError $ex) { 323 out = $rh.createExceptionReply (); 324 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 325 } 326 break; 327 } 328 329 case 18: { 331 try { 332 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 333 org.omg.CORBA.Any $result = null; 334 $result = this.ref_value (feature); 335 out = $rh.createReply(); 336 out.write_any ($result); 337 } catch (org.omg.mof.Reflective.NotSet $ex) { 338 out = $rh.createExceptionReply (); 339 org.omg.mof.Reflective.NotSetHelper.write (out, $ex); 340 } catch (org.omg.mof.Reflective.MofError $ex) { 341 out = $rh.createExceptionReply (); 342 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 343 } 344 break; 345 } 346 347 case 19: { 349 try { 350 this.ref_unset_value (); 351 out = $rh.createReply(); 352 } catch (org.omg.mof.Reflective.MofError $ex) { 353 out = $rh.createExceptionReply (); 354 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 355 } 356 break; 357 } 358 359 case 20: { 361 try { 362 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 363 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 364 this.ref_add_value (feature, new_element); 365 out = $rh.createReply(); 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 try { 376 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 377 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 378 org.omg.CORBA.Any before_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 379 this.ref_add_value_before (feature, new_element, before_element); 380 out = $rh.createReply(); 381 } catch (org.omg.mof.Reflective.NotFound $ex) { 382 out = $rh.createExceptionReply (); 383 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 384 } catch (org.omg.mof.Reflective.MofError $ex) { 385 out = $rh.createExceptionReply (); 386 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 387 } 388 break; 389 } 390 391 case 22: { 393 try { 394 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 395 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 396 int position = in.read_ulong (); 397 this.ref_add_value_at (feature, new_element, position); 398 out = $rh.createReply(); 399 } catch (org.omg.mof.Reflective.BadPosition $ex) { 400 out = $rh.createExceptionReply (); 401 org.omg.mof.Reflective.BadPositionHelper.write (out, $ex); 402 } catch (org.omg.mof.Reflective.MofError $ex) { 403 out = $rh.createExceptionReply (); 404 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 405 } 406 break; 407 } 408 409 case 23: { 411 try { 412 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 413 org.omg.CORBA.Any old_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 414 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 415 this.ref_modify_value (feature, old_element, new_element); 416 out = $rh.createReply(); 417 } catch (org.omg.mof.Reflective.NotFound $ex) { 418 out = $rh.createExceptionReply (); 419 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 420 } catch (org.omg.mof.Reflective.MofError $ex) { 421 out = $rh.createExceptionReply (); 422 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 423 } 424 break; 425 } 426 427 case 24: { 429 try { 430 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 431 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 432 int position = in.read_ulong (); 433 this.ref_modify_value_at (feature, new_element, position); 434 out = $rh.createReply(); 435 } catch (org.omg.mof.Reflective.BadPosition $ex) { 436 out = $rh.createExceptionReply (); 437 org.omg.mof.Reflective.BadPositionHelper.write (out, $ex); 438 } catch (org.omg.mof.Reflective.MofError $ex) { 439 out = $rh.createExceptionReply (); 440 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 441 } 442 break; 443 } 444 445 case 25: { 447 try { 448 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 449 org.omg.CORBA.Any existing_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 450 this.ref_remove_value (feature, existing_element); 451 out = $rh.createReply(); 452 } catch (org.omg.mof.Reflective.NotFound $ex) { 453 out = $rh.createExceptionReply (); 454 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 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 case 26: { 464 try { 465 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 466 int position = in.read_ulong (); 467 this.ref_remove_value_at (feature, position); 468 out = $rh.createReply(); 469 } catch (org.omg.mof.Reflective.BadPosition $ex) { 470 out = $rh.createExceptionReply (); 471 org.omg.mof.Reflective.BadPositionHelper.write (out, $ex); 472 } catch (org.omg.mof.Reflective.MofError $ex) { 473 out = $rh.createExceptionReply (); 474 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 475 } 476 break; 477 } 478 479 case 27: { 481 org.omg.mof.Reflective.RefObject $result = null; 482 $result = this.ref_immediate_composite (); 483 out = $rh.createReply(); 484 org.omg.mof.Reflective.RefObjectHelper.write (out, $result); 485 break; 486 } 487 488 case 28: { 490 org.omg.mof.Reflective.RefObject $result = null; 491 $result = this.ref_outermost_composite (); 492 out = $rh.createReply(); 493 org.omg.mof.Reflective.RefObjectHelper.write (out, $result); 494 break; 495 } 496 497 case 29: { 499 try { 500 org.omg.mof.Reflective.RefObject requested_operation = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 501 org.omg.mof.Reflective.ValueTypeListHolder args = new org.omg.mof.Reflective.ValueTypeListHolder (); 502 args.value = org.omg.mof.Reflective.ValueTypeListHelper.read (in); 503 org.omg.CORBA.Any $result = null; 504 $result = this.ref_invoke_operation (requested_operation, args); 505 out = $rh.createReply(); 506 out.write_any ($result); 507 org.omg.mof.Reflective.ValueTypeListHelper.write (out, args.value); 508 } catch (org.omg.mof.Reflective.OtherException $ex) { 509 out = $rh.createExceptionReply (); 510 org.omg.mof.Reflective.OtherExceptionHelper.write (out, $ex); 511 } catch (org.omg.mof.Reflective.MofError $ex) { 512 out = $rh.createExceptionReply (); 513 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 514 } 515 break; 516 } 517 518 case 30: { 520 String $result = null; 521 $result = this.ref_mof_id (); 522 out = $rh.createReply(); 523 out.write_string ($result); 524 break; 525 } 526 527 case 31: { 529 org.omg.mof.Reflective.RefObject $result = null; 530 $result = this.ref_meta_object (); 531 out = $rh.createReply(); 532 org.omg.mof.Reflective.RefObjectHelper.write (out, $result); 533 break; 534 } 535 536 case 32: { 538 org.omg.mof.Reflective.RefBaseObject other_object = org.omg.mof.Reflective.RefBaseObjectHelper.read (in); 539 boolean $result = false; 540 $result = this.ref_itself (other_object); 541 out = $rh.createReply(); 542 out.write_boolean ($result); 543 break; 544 } 545 546 case 33: { 548 org.omg.mof.Reflective._RefPackage $result = null; 549 $result = this.ref_immediate_package (); 550 out = $rh.createReply(); 551 org.omg.mof.Reflective._RefPackageHelper.write (out, $result); 552 break; 553 } 554 555 case 34: { 557 org.omg.mof.Reflective._RefPackage $result = null; 558 $result = this.ref_outermost_package (); 559 out = $rh.createReply(); 560 org.omg.mof.Reflective._RefPackageHelper.write (out, $result); 561 break; 562 } 563 564 case 35: { 566 try { 567 this.ref_delete (); 568 out = $rh.createReply(); 569 } catch (org.omg.mof.Reflective.MofError $ex) { 570 out = $rh.createExceptionReply (); 571 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 572 } 573 break; 574 } 575 576 577 case 36: { 580 try { 581 String $result = null; 582 $result = this.name (); 583 out = $rh.createReply(); 584 out.write_string ($result); 585 } catch (org.omg.mof.Reflective.MofError $ex) { 586 out = $rh.createExceptionReply (); 587 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 588 } 589 break; 590 } 591 592 case 37: { 594 try { 595 String new_value = in.read_string (); 596 this.set_name (new_value); 597 out = $rh.createReply(); 598 } catch (org.omg.mof.Reflective.MofError $ex) { 599 out = $rh.createExceptionReply (); 600 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 601 } 602 break; 603 } 604 605 606 case 38: { 609 try { 610 String $result = null; 611 $result = this.annotation (); 612 out = $rh.createReply(); 613 out.write_string ($result); 614 } catch (org.omg.mof.Reflective.MofError $ex) { 615 out = $rh.createExceptionReply (); 616 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 617 } 618 break; 619 } 620 621 case 39: { 623 try { 624 String new_value = in.read_string (); 625 this.set_annotation (new_value); 626 out = $rh.createReply(); 627 } catch (org.omg.mof.Reflective.MofError $ex) { 628 out = $rh.createExceptionReply (); 629 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 630 } 631 break; 632 } 633 634 635 case 40: { 638 try { 639 String $result[] = null; 640 $result = this.qualified_name (); 641 out = $rh.createReply(); 642 org.omg.mof.Model.StringListHelper.write (out, $result); 643 } catch (org.omg.mof.Reflective.MofError $ex) { 644 out = $rh.createExceptionReply (); 645 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 646 } 647 break; 648 } 649 650 651 case 41: { 654 try { 655 org.omg.mof.Model.Namespace $result = null; 656 $result = this.container (); 657 out = $rh.createReply(); 658 org.omg.mof.Model.NamespaceHelper.write (out, $result); 659 } catch (org.omg.mof.Reflective.NotSet $ex) { 660 out = $rh.createExceptionReply (); 661 org.omg.mof.Reflective.NotSetHelper.write (out, $ex); 662 } catch (org.omg.mof.Reflective.MofError $ex) { 663 out = $rh.createExceptionReply (); 664 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 665 } 666 break; 667 } 668 669 case 42: { 671 try { 672 org.omg.mof.Model.Namespace new_value = org.omg.mof.Model.NamespaceHelper.read (in); 673 this.set_container (new_value); 674 out = $rh.createReply(); 675 } catch (org.omg.mof.Reflective.MofError $ex) { 676 out = $rh.createExceptionReply (); 677 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 678 } 679 break; 680 } 681 682 case 43: { 684 try { 685 this.unset_container (); 686 out = $rh.createReply(); 687 } catch (org.omg.mof.Reflective.MofError $ex) { 688 out = $rh.createExceptionReply (); 689 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 690 } 691 break; 692 } 693 694 695 case 44: { 698 try { 699 org.omg.mof.Model.ModelElement $result[] = null; 700 $result = this.required_elements (); 701 out = $rh.createReply(); 702 org.omg.mof.Model.ModelElementBagHelper.write (out, $result); 703 } catch (org.omg.mof.Reflective.MofError $ex) { 704 out = $rh.createExceptionReply (); 705 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 706 } 707 break; 708 } 709 710 case 45: { 712 try { 713 org.omg.mof.Model.ModelElement new_value[] = org.omg.mof.Model.ModelElementBagHelper.read (in); 714 this.set_required_elements (new_value); 715 out = $rh.createReply(); 716 } catch (org.omg.mof.Reflective.MofError $ex) { 717 out = $rh.createExceptionReply (); 718 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 719 } 720 break; 721 } 722 723 case 46: { 725 try { 726 org.omg.mof.Model.ModelElement new_element = org.omg.mof.Model.ModelElementHelper.read (in); 727 this.add_required_elements (new_element); 728 out = $rh.createReply(); 729 } catch (org.omg.mof.Reflective.MofError $ex) { 730 out = $rh.createExceptionReply (); 731 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 732 } 733 break; 734 } 735 736 case 47: { 738 try { 739 org.omg.mof.Model.ModelElement old_element = org.omg.mof.Model.ModelElementHelper.read (in); 740 org.omg.mof.Model.ModelElement new_element = org.omg.mof.Model.ModelElementHelper.read (in); 741 this.modify_required_elements (old_element, new_element); 742 out = $rh.createReply(); 743 } catch (org.omg.mof.Reflective.NotFound $ex) { 744 out = $rh.createExceptionReply (); 745 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 746 } catch (org.omg.mof.Reflective.MofError $ex) { 747 out = $rh.createExceptionReply (); 748 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 749 } 750 break; 751 } 752 753 case 48: { 755 try { 756 org.omg.mof.Model.ModelElement old_element = org.omg.mof.Model.ModelElementHelper.read (in); 757 this.remove_required_elements (old_element); 758 out = $rh.createReply(); 759 } catch (org.omg.mof.Reflective.NotFound $ex) { 760 out = $rh.createExceptionReply (); 761 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 762 } catch (org.omg.mof.Reflective.MofError $ex) { 763 out = $rh.createExceptionReply (); 764 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 765 } 766 break; 767 } 768 769 770 case 49: { 773 try { 774 org.omg.mof.Model.Constraint $result[] = null; 775 $result = this.constraints (); 776 out = $rh.createReply(); 777 org.omg.mof.Model.ConstraintBagHelper.write (out, $result); 778 } catch (org.omg.mof.Reflective.MofError $ex) { 779 out = $rh.createExceptionReply (); 780 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 781 } 782 break; 783 } 784 785 case 50: { 787 try { 788 org.omg.mof.Model.Constraint new_value[] = org.omg.mof.Model.ConstraintBagHelper.read (in); 789 this.set_constraints (new_value); 790 out = $rh.createReply(); 791 } catch (org.omg.mof.Reflective.MofError $ex) { 792 out = $rh.createExceptionReply (); 793 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 794 } 795 break; 796 } 797 798 case 51: { 800 try { 801 org.omg.mof.Model.Constraint new_element = org.omg.mof.Model.ConstraintHelper.read (in); 802 this.add_constraints (new_element); 803 out = $rh.createReply(); 804 } catch (org.omg.mof.Reflective.MofError $ex) { 805 out = $rh.createExceptionReply (); 806 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 807 } 808 break; 809 } 810 811 case 52: { 813 try { 814 org.omg.mof.Model.Constraint old_element = org.omg.mof.Model.ConstraintHelper.read (in); 815 org.omg.mof.Model.Constraint new_element = org.omg.mof.Model.ConstraintHelper.read (in); 816 this.modify_constraints (old_element, new_element); 817 out = $rh.createReply(); 818 } catch (org.omg.mof.Reflective.NotFound $ex) { 819 out = $rh.createExceptionReply (); 820 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 821 } catch (org.omg.mof.Reflective.MofError $ex) { 822 out = $rh.createExceptionReply (); 823 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 824 } 825 break; 826 } 827 828 case 53: { 830 try { 831 org.omg.mof.Model.Constraint old_element = org.omg.mof.Model.ConstraintHelper.read (in); 832 this.remove_constraints (old_element); 833 out = $rh.createReply(); 834 } catch (org.omg.mof.Reflective.NotFound $ex) { 835 out = $rh.createExceptionReply (); 836 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 837 } catch (org.omg.mof.Reflective.MofError $ex) { 838 out = $rh.createExceptionReply (); 839 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 840 } 841 break; 842 } 843 844 845 case 54: { 848 try { 849 org.omg.mof.Model.Classifier $result = null; 850 $result = this.type (); 851 out = $rh.createReply(); 852 org.omg.mof.Model.ClassifierHelper.write (out, $result); 853 } catch (org.omg.mof.Reflective.MofError $ex) { 854 out = $rh.createExceptionReply (); 855 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 856 } 857 break; 858 } 859 860 case 55: { 862 try { 863 org.omg.mof.Model.Classifier new_value = org.omg.mof.Model.ClassifierHelper.read (in); 864 this.set_type (new_value); 865 out = $rh.createReply(); 866 } catch (org.omg.mof.Reflective.MofError $ex) { 867 out = $rh.createExceptionReply (); 868 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 869 } 870 break; 871 } 872 873 default: 874 throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE); 875 } 876 877 return out; 878 } 880 private static String [] __ids = { 882 "IDL:org/omg/mof/Model/AssociationEnd:1.0", 883 "IDL:org/omg/mof/Model/AssociationEndClass:1.0", 884 "IDL:org/omg/mof/Model/TypedElementClass:1.0", 885 "IDL:org/omg/mof/Model/ModelElementClass:1.0", 886 "IDL:org/omg/mof/Reflective/RefObject:1.0", 887 "IDL:org/omg/mof/Reflective/RefBaseObject:1.0", 888 "IDL:org/omg/mof/Model/ModelElement:1.0", 889 "IDL:org/omg/mof/Model/TypedElement:1.0"}; 890 891 public String [] _all_interfaces (org.omg.PortableServer.POA poa, byte[] objectId) 892 { 893 return (String [])__ids.clone (); 894 } 895 896 public AssociationEnd _this() 897 { 898 return AssociationEndHelper.narrow( 899 super._this_object()); 900 } 901 902 public AssociationEnd _this(org.omg.CORBA.ORB orb) 903 { 904 return AssociationEndHelper.narrow( 905 super._this_object(orb)); 906 } 907 908 909 } | Popular Tags |