1 package org.omg.mof.Model; 2 3 4 10 11 12 public abstract class ImportPOA extends org.omg.PortableServer.Servant 14 implements org.omg.mof.Model.ImportOperations, 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 ("visibility", new java.lang.Integer (0)); 23 _methods.put ("set_visibility", new java.lang.Integer (1)); 24 _methods.put ("is_clustered", new java.lang.Integer (2)); 25 _methods.put ("set_is_clustered", new java.lang.Integer (3)); 26 _methods.put ("imported_namespace", new java.lang.Integer (4)); 27 _methods.put ("set_imported_namespace", new java.lang.Integer (5)); 28 _methods.put ("_get_all_of_type_import", new java.lang.Integer (6)); 29 _methods.put ("_get_all_of_class_import", new java.lang.Integer (7)); 30 _methods.put ("create_import", new java.lang.Integer (8)); 31 _methods.put ("_get_all_of_type_model_element", new java.lang.Integer (9)); 32 _methods.put ("ref_is_instance_of", new java.lang.Integer (10)); 33 _methods.put ("ref_create_instance", new java.lang.Integer (11)); 34 _methods.put ("ref_all_objects", new java.lang.Integer (12)); 35 _methods.put ("ref_set_value", new java.lang.Integer (13)); 36 _methods.put ("ref_value", new java.lang.Integer (14)); 37 _methods.put ("ref_unset_value", new java.lang.Integer (15)); 38 _methods.put ("ref_add_value", new java.lang.Integer (16)); 39 _methods.put ("ref_add_value_before", new java.lang.Integer (17)); 40 _methods.put ("ref_add_value_at", new java.lang.Integer (18)); 41 _methods.put ("ref_modify_value", new java.lang.Integer (19)); 42 _methods.put ("ref_modify_value_at", new java.lang.Integer (20)); 43 _methods.put ("ref_remove_value", new java.lang.Integer (21)); 44 _methods.put ("ref_remove_value_at", new java.lang.Integer (22)); 45 _methods.put ("ref_immediate_composite", new java.lang.Integer (23)); 46 _methods.put ("ref_outermost_composite", new java.lang.Integer (24)); 47 _methods.put ("ref_invoke_operation", new java.lang.Integer (25)); 48 _methods.put ("ref_mof_id", new java.lang.Integer (26)); 49 _methods.put ("ref_meta_object", new java.lang.Integer (27)); 50 _methods.put ("ref_itself", new java.lang.Integer (28)); 51 _methods.put ("ref_immediate_package", new java.lang.Integer (29)); 52 _methods.put ("ref_outermost_package", new java.lang.Integer (30)); 53 _methods.put ("ref_delete", new java.lang.Integer (31)); 54 _methods.put ("name", new java.lang.Integer (32)); 55 _methods.put ("set_name", new java.lang.Integer (33)); 56 _methods.put ("annotation", new java.lang.Integer (34)); 57 _methods.put ("set_annotation", new java.lang.Integer (35)); 58 _methods.put ("qualified_name", new java.lang.Integer (36)); 59 _methods.put ("container", new java.lang.Integer (37)); 60 _methods.put ("set_container", new java.lang.Integer (38)); 61 _methods.put ("unset_container", new java.lang.Integer (39)); 62 _methods.put ("required_elements", new java.lang.Integer (40)); 63 _methods.put ("set_required_elements", new java.lang.Integer (41)); 64 _methods.put ("add_required_elements", new java.lang.Integer (42)); 65 _methods.put ("modify_required_elements", new java.lang.Integer (43)); 66 _methods.put ("remove_required_elements", new java.lang.Integer (44)); 67 _methods.put ("constraints", new java.lang.Integer (45)); 68 _methods.put ("set_constraints", new java.lang.Integer (46)); 69 _methods.put ("add_constraints", new java.lang.Integer (47)); 70 _methods.put ("modify_constraints", new java.lang.Integer (48)); 71 _methods.put ("remove_constraints", new java.lang.Integer (49)); 72 } 73 74 public org.omg.CORBA.portable.OutputStream _invoke (String $method, 75 org.omg.CORBA.portable.InputStream in, 76 org.omg.CORBA.portable.ResponseHandler $rh) 77 { 78 org.omg.CORBA.portable.OutputStream out = null; 79 java.lang.Integer __method = (java.lang.Integer )_methods.get ($method); 80 if (__method == null) 81 throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE); 82 83 switch (__method.intValue ()) 84 { 85 86 case 0: { 89 try { 90 org.omg.mof.Model.VisibilityKind $result = null; 91 $result = this.visibility (); 92 out = $rh.createReply(); 93 org.omg.mof.Model.VisibilityKindHelper.write (out, $result); 94 } catch (org.omg.mof.Reflective.MofError $ex) { 95 out = $rh.createExceptionReply (); 96 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 97 } 98 break; 99 } 100 101 case 1: { 103 try { 104 org.omg.mof.Model.VisibilityKind new_value = org.omg.mof.Model.VisibilityKindHelper.read (in); 105 this.set_visibility (new_value); 106 out = $rh.createReply(); 107 } catch (org.omg.mof.Reflective.MofError $ex) { 108 out = $rh.createExceptionReply (); 109 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 110 } 111 break; 112 } 113 114 115 case 2: { 118 try { 119 boolean $result = false; 120 $result = this.is_clustered (); 121 out = $rh.createReply(); 122 out.write_boolean ($result); 123 } catch (org.omg.mof.Reflective.MofError $ex) { 124 out = $rh.createExceptionReply (); 125 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 126 } 127 break; 128 } 129 130 case 3: { 132 try { 133 boolean new_value = in.read_boolean (); 134 this.set_is_clustered (new_value); 135 out = $rh.createReply(); 136 } catch (org.omg.mof.Reflective.MofError $ex) { 137 out = $rh.createExceptionReply (); 138 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 139 } 140 break; 141 } 142 143 144 case 4: { 147 try { 148 org.omg.mof.Model.Namespace $result = null; 149 $result = this.imported_namespace (); 150 out = $rh.createReply(); 151 org.omg.mof.Model.NamespaceHelper.write (out, $result); 152 } catch (org.omg.mof.Reflective.MofError $ex) { 153 out = $rh.createExceptionReply (); 154 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 155 } 156 break; 157 } 158 159 case 5: { 161 try { 162 org.omg.mof.Model.Namespace new_value = org.omg.mof.Model.NamespaceHelper.read (in); 163 this.set_imported_namespace (new_value); 164 out = $rh.createReply(); 165 } catch (org.omg.mof.Reflective.MofError $ex) { 166 out = $rh.createExceptionReply (); 167 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 168 } 169 break; 170 } 171 172 case 6: { 174 org.omg.mof.Model.Import $result[] = null; 175 $result = this.all_of_type_import (); 176 out = $rh.createReply(); 177 org.omg.mof.Model.ImportSetHelper.write (out, $result); 178 break; 179 } 180 181 case 7: { 183 org.omg.mof.Model.Import $result[] = null; 184 $result = this.all_of_class_import (); 185 out = $rh.createReply(); 186 org.omg.mof.Model.ImportSetHelper.write (out, $result); 187 break; 188 } 189 190 case 8: { 192 try { 193 String name = in.read_string (); 194 String annotation = in.read_string (); 195 org.omg.mof.Model.VisibilityKind visibility = org.omg.mof.Model.VisibilityKindHelper.read (in); 196 boolean is_clustered = in.read_boolean (); 197 org.omg.mof.Model.Import $result = null; 198 $result = this.create_import (name, annotation, visibility, is_clustered); 199 out = $rh.createReply(); 200 org.omg.mof.Model.ImportHelper.write (out, $result); 201 } catch (org.omg.mof.Reflective.MofError $ex) { 202 out = $rh.createExceptionReply (); 203 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 204 } 205 break; 206 } 207 208 case 9: { 210 org.omg.mof.Model.ModelElement $result[] = null; 211 $result = this.all_of_type_model_element (); 212 out = $rh.createReply(); 213 org.omg.mof.Model.ModelElementSetHelper.write (out, $result); 214 break; 215 } 216 217 case 10: { 219 org.omg.mof.Reflective.RefObject some_class = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 220 boolean consider_subtypes = in.read_boolean (); 221 boolean $result = false; 222 $result = this.ref_is_instance_of (some_class, consider_subtypes); 223 out = $rh.createReply(); 224 out.write_boolean ($result); 225 break; 226 } 227 228 case 11: { 230 try { 231 org.omg.CORBA.Any args[] = org.omg.mof.Reflective.ValueTypeListHelper.read (in); 232 org.omg.mof.Reflective.RefObject $result = null; 233 $result = this.ref_create_instance (args); 234 out = $rh.createReply(); 235 org.omg.mof.Reflective.RefObjectHelper.write (out, $result); 236 } catch (org.omg.mof.Reflective.MofError $ex) { 237 out = $rh.createExceptionReply (); 238 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 239 } 240 break; 241 } 242 243 case 12: { 245 boolean include_subtypes = in.read_boolean (); 246 org.omg.mof.Reflective.RefObject $result[] = null; 247 $result = this.ref_all_objects (include_subtypes); 248 out = $rh.createReply(); 249 org.omg.mof.Reflective.RefObjectSetHelper.write (out, $result); 250 break; 251 } 252 253 case 13: { 255 try { 256 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 257 org.omg.CORBA.Any new_value = org.omg.mof.Reflective._ValueTypeHelper.read (in); 258 this.ref_set_value (feature, new_value); 259 out = $rh.createReply(); 260 } catch (org.omg.mof.Reflective.MofError $ex) { 261 out = $rh.createExceptionReply (); 262 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 263 } 264 break; 265 } 266 267 case 14: { 269 try { 270 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 271 org.omg.CORBA.Any $result = null; 272 $result = this.ref_value (feature); 273 out = $rh.createReply(); 274 out.write_any ($result); 275 } catch (org.omg.mof.Reflective.NotSet $ex) { 276 out = $rh.createExceptionReply (); 277 org.omg.mof.Reflective.NotSetHelper.write (out, $ex); 278 } catch (org.omg.mof.Reflective.MofError $ex) { 279 out = $rh.createExceptionReply (); 280 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 281 } 282 break; 283 } 284 285 case 15: { 287 try { 288 this.ref_unset_value (); 289 out = $rh.createReply(); 290 } catch (org.omg.mof.Reflective.MofError $ex) { 291 out = $rh.createExceptionReply (); 292 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 293 } 294 break; 295 } 296 297 case 16: { 299 try { 300 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 301 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 302 this.ref_add_value (feature, new_element); 303 out = $rh.createReply(); 304 } catch (org.omg.mof.Reflective.MofError $ex) { 305 out = $rh.createExceptionReply (); 306 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 307 } 308 break; 309 } 310 311 case 17: { 313 try { 314 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 315 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 316 org.omg.CORBA.Any before_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 317 this.ref_add_value_before (feature, new_element, before_element); 318 out = $rh.createReply(); 319 } catch (org.omg.mof.Reflective.NotFound $ex) { 320 out = $rh.createExceptionReply (); 321 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 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 new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 334 int position = in.read_ulong (); 335 this.ref_add_value_at (feature, new_element, position); 336 out = $rh.createReply(); 337 } catch (org.omg.mof.Reflective.BadPosition $ex) { 338 out = $rh.createExceptionReply (); 339 org.omg.mof.Reflective.BadPositionHelper.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 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 351 org.omg.CORBA.Any old_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 352 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 353 this.ref_modify_value (feature, old_element, new_element); 354 out = $rh.createReply(); 355 } catch (org.omg.mof.Reflective.NotFound $ex) { 356 out = $rh.createExceptionReply (); 357 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 358 } catch (org.omg.mof.Reflective.MofError $ex) { 359 out = $rh.createExceptionReply (); 360 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 361 } 362 break; 363 } 364 365 case 20: { 367 try { 368 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 369 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 370 int position = in.read_ulong (); 371 this.ref_modify_value_at (feature, new_element, position); 372 out = $rh.createReply(); 373 } catch (org.omg.mof.Reflective.BadPosition $ex) { 374 out = $rh.createExceptionReply (); 375 org.omg.mof.Reflective.BadPositionHelper.write (out, $ex); 376 } catch (org.omg.mof.Reflective.MofError $ex) { 377 out = $rh.createExceptionReply (); 378 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 379 } 380 break; 381 } 382 383 case 21: { 385 try { 386 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 387 org.omg.CORBA.Any existing_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 388 this.ref_remove_value (feature, existing_element); 389 out = $rh.createReply(); 390 } catch (org.omg.mof.Reflective.NotFound $ex) { 391 out = $rh.createExceptionReply (); 392 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 393 } catch (org.omg.mof.Reflective.MofError $ex) { 394 out = $rh.createExceptionReply (); 395 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 396 } 397 break; 398 } 399 400 case 22: { 402 try { 403 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 404 int position = in.read_ulong (); 405 this.ref_remove_value_at (feature, position); 406 out = $rh.createReply(); 407 } catch (org.omg.mof.Reflective.BadPosition $ex) { 408 out = $rh.createExceptionReply (); 409 org.omg.mof.Reflective.BadPositionHelper.write (out, $ex); 410 } catch (org.omg.mof.Reflective.MofError $ex) { 411 out = $rh.createExceptionReply (); 412 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 413 } 414 break; 415 } 416 417 case 23: { 419 org.omg.mof.Reflective.RefObject $result = null; 420 $result = this.ref_immediate_composite (); 421 out = $rh.createReply(); 422 org.omg.mof.Reflective.RefObjectHelper.write (out, $result); 423 break; 424 } 425 426 case 24: { 428 org.omg.mof.Reflective.RefObject $result = null; 429 $result = this.ref_outermost_composite (); 430 out = $rh.createReply(); 431 org.omg.mof.Reflective.RefObjectHelper.write (out, $result); 432 break; 433 } 434 435 case 25: { 437 try { 438 org.omg.mof.Reflective.RefObject requested_operation = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 439 org.omg.mof.Reflective.ValueTypeListHolder args = new org.omg.mof.Reflective.ValueTypeListHolder (); 440 args.value = org.omg.mof.Reflective.ValueTypeListHelper.read (in); 441 org.omg.CORBA.Any $result = null; 442 $result = this.ref_invoke_operation (requested_operation, args); 443 out = $rh.createReply(); 444 out.write_any ($result); 445 org.omg.mof.Reflective.ValueTypeListHelper.write (out, args.value); 446 } catch (org.omg.mof.Reflective.OtherException $ex) { 447 out = $rh.createExceptionReply (); 448 org.omg.mof.Reflective.OtherExceptionHelper.write (out, $ex); 449 } catch (org.omg.mof.Reflective.MofError $ex) { 450 out = $rh.createExceptionReply (); 451 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 452 } 453 break; 454 } 455 456 case 26: { 458 String $result = null; 459 $result = this.ref_mof_id (); 460 out = $rh.createReply(); 461 out.write_string ($result); 462 break; 463 } 464 465 case 27: { 467 org.omg.mof.Reflective.RefObject $result = null; 468 $result = this.ref_meta_object (); 469 out = $rh.createReply(); 470 org.omg.mof.Reflective.RefObjectHelper.write (out, $result); 471 break; 472 } 473 474 case 28: { 476 org.omg.mof.Reflective.RefBaseObject other_object = org.omg.mof.Reflective.RefBaseObjectHelper.read (in); 477 boolean $result = false; 478 $result = this.ref_itself (other_object); 479 out = $rh.createReply(); 480 out.write_boolean ($result); 481 break; 482 } 483 484 case 29: { 486 org.omg.mof.Reflective._RefPackage $result = null; 487 $result = this.ref_immediate_package (); 488 out = $rh.createReply(); 489 org.omg.mof.Reflective._RefPackageHelper.write (out, $result); 490 break; 491 } 492 493 case 30: { 495 org.omg.mof.Reflective._RefPackage $result = null; 496 $result = this.ref_outermost_package (); 497 out = $rh.createReply(); 498 org.omg.mof.Reflective._RefPackageHelper.write (out, $result); 499 break; 500 } 501 502 case 31: { 504 try { 505 this.ref_delete (); 506 out = $rh.createReply(); 507 } catch (org.omg.mof.Reflective.MofError $ex) { 508 out = $rh.createExceptionReply (); 509 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 510 } 511 break; 512 } 513 514 515 case 32: { 518 try { 519 String $result = null; 520 $result = this.name (); 521 out = $rh.createReply(); 522 out.write_string ($result); 523 } catch (org.omg.mof.Reflective.MofError $ex) { 524 out = $rh.createExceptionReply (); 525 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 526 } 527 break; 528 } 529 530 case 33: { 532 try { 533 String new_value = in.read_string (); 534 this.set_name (new_value); 535 out = $rh.createReply(); 536 } catch (org.omg.mof.Reflective.MofError $ex) { 537 out = $rh.createExceptionReply (); 538 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 539 } 540 break; 541 } 542 543 544 case 34: { 547 try { 548 String $result = null; 549 $result = this.annotation (); 550 out = $rh.createReply(); 551 out.write_string ($result); 552 } catch (org.omg.mof.Reflective.MofError $ex) { 553 out = $rh.createExceptionReply (); 554 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 555 } 556 break; 557 } 558 559 case 35: { 561 try { 562 String new_value = in.read_string (); 563 this.set_annotation (new_value); 564 out = $rh.createReply(); 565 } catch (org.omg.mof.Reflective.MofError $ex) { 566 out = $rh.createExceptionReply (); 567 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 568 } 569 break; 570 } 571 572 573 case 36: { 576 try { 577 String $result[] = null; 578 $result = this.qualified_name (); 579 out = $rh.createReply(); 580 org.omg.mof.Model.StringListHelper.write (out, $result); 581 } catch (org.omg.mof.Reflective.MofError $ex) { 582 out = $rh.createExceptionReply (); 583 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 584 } 585 break; 586 } 587 588 589 case 37: { 592 try { 593 org.omg.mof.Model.Namespace $result = null; 594 $result = this.container (); 595 out = $rh.createReply(); 596 org.omg.mof.Model.NamespaceHelper.write (out, $result); 597 } catch (org.omg.mof.Reflective.NotSet $ex) { 598 out = $rh.createExceptionReply (); 599 org.omg.mof.Reflective.NotSetHelper.write (out, $ex); 600 } catch (org.omg.mof.Reflective.MofError $ex) { 601 out = $rh.createExceptionReply (); 602 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 603 } 604 break; 605 } 606 607 case 38: { 609 try { 610 org.omg.mof.Model.Namespace new_value = org.omg.mof.Model.NamespaceHelper.read (in); 611 this.set_container (new_value); 612 out = $rh.createReply(); 613 } catch (org.omg.mof.Reflective.MofError $ex) { 614 out = $rh.createExceptionReply (); 615 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 616 } 617 break; 618 } 619 620 case 39: { 622 try { 623 this.unset_container (); 624 out = $rh.createReply(); 625 } catch (org.omg.mof.Reflective.MofError $ex) { 626 out = $rh.createExceptionReply (); 627 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 628 } 629 break; 630 } 631 632 633 case 40: { 636 try { 637 org.omg.mof.Model.ModelElement $result[] = null; 638 $result = this.required_elements (); 639 out = $rh.createReply(); 640 org.omg.mof.Model.ModelElementBagHelper.write (out, $result); 641 } catch (org.omg.mof.Reflective.MofError $ex) { 642 out = $rh.createExceptionReply (); 643 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 644 } 645 break; 646 } 647 648 case 41: { 650 try { 651 org.omg.mof.Model.ModelElement new_value[] = org.omg.mof.Model.ModelElementBagHelper.read (in); 652 this.set_required_elements (new_value); 653 out = $rh.createReply(); 654 } catch (org.omg.mof.Reflective.MofError $ex) { 655 out = $rh.createExceptionReply (); 656 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 657 } 658 break; 659 } 660 661 case 42: { 663 try { 664 org.omg.mof.Model.ModelElement new_element = org.omg.mof.Model.ModelElementHelper.read (in); 665 this.add_required_elements (new_element); 666 out = $rh.createReply(); 667 } catch (org.omg.mof.Reflective.MofError $ex) { 668 out = $rh.createExceptionReply (); 669 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 670 } 671 break; 672 } 673 674 case 43: { 676 try { 677 org.omg.mof.Model.ModelElement old_element = org.omg.mof.Model.ModelElementHelper.read (in); 678 org.omg.mof.Model.ModelElement new_element = org.omg.mof.Model.ModelElementHelper.read (in); 679 this.modify_required_elements (old_element, new_element); 680 out = $rh.createReply(); 681 } catch (org.omg.mof.Reflective.NotFound $ex) { 682 out = $rh.createExceptionReply (); 683 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 684 } catch (org.omg.mof.Reflective.MofError $ex) { 685 out = $rh.createExceptionReply (); 686 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 687 } 688 break; 689 } 690 691 case 44: { 693 try { 694 org.omg.mof.Model.ModelElement old_element = org.omg.mof.Model.ModelElementHelper.read (in); 695 this.remove_required_elements (old_element); 696 out = $rh.createReply(); 697 } catch (org.omg.mof.Reflective.NotFound $ex) { 698 out = $rh.createExceptionReply (); 699 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 700 } catch (org.omg.mof.Reflective.MofError $ex) { 701 out = $rh.createExceptionReply (); 702 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 703 } 704 break; 705 } 706 707 708 case 45: { 711 try { 712 org.omg.mof.Model.Constraint $result[] = null; 713 $result = this.constraints (); 714 out = $rh.createReply(); 715 org.omg.mof.Model.ConstraintBagHelper.write (out, $result); 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.Constraint new_value[] = org.omg.mof.Model.ConstraintBagHelper.read (in); 727 this.set_constraints (new_value); 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.Constraint new_element = org.omg.mof.Model.ConstraintHelper.read (in); 740 this.add_constraints (new_element); 741 out = $rh.createReply(); 742 } catch (org.omg.mof.Reflective.MofError $ex) { 743 out = $rh.createExceptionReply (); 744 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 745 } 746 break; 747 } 748 749 case 48: { 751 try { 752 org.omg.mof.Model.Constraint old_element = org.omg.mof.Model.ConstraintHelper.read (in); 753 org.omg.mof.Model.Constraint new_element = org.omg.mof.Model.ConstraintHelper.read (in); 754 this.modify_constraints (old_element, new_element); 755 out = $rh.createReply(); 756 } catch (org.omg.mof.Reflective.NotFound $ex) { 757 out = $rh.createExceptionReply (); 758 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 759 } catch (org.omg.mof.Reflective.MofError $ex) { 760 out = $rh.createExceptionReply (); 761 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 762 } 763 break; 764 } 765 766 case 49: { 768 try { 769 org.omg.mof.Model.Constraint old_element = org.omg.mof.Model.ConstraintHelper.read (in); 770 this.remove_constraints (old_element); 771 out = $rh.createReply(); 772 } catch (org.omg.mof.Reflective.NotFound $ex) { 773 out = $rh.createExceptionReply (); 774 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 775 } catch (org.omg.mof.Reflective.MofError $ex) { 776 out = $rh.createExceptionReply (); 777 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 778 } 779 break; 780 } 781 782 default: 783 throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE); 784 } 785 786 return out; 787 } 789 private static String [] __ids = { 791 "IDL:org/omg/mof/Model/Import:1.0", 792 "IDL:org/omg/mof/Model/ImportClass:1.0", 793 "IDL:org/omg/mof/Model/ModelElementClass:1.0", 794 "IDL:org/omg/mof/Reflective/RefObject:1.0", 795 "IDL:org/omg/mof/Reflective/RefBaseObject:1.0", 796 "IDL:org/omg/mof/Model/ModelElement:1.0"}; 797 798 public String [] _all_interfaces (org.omg.PortableServer.POA poa, byte[] objectId) 799 { 800 return (String [])__ids.clone (); 801 } 802 803 public Import _this() 804 { 805 return ImportHelper.narrow( 806 super._this_object()); 807 } 808 809 public Import _this(org.omg.CORBA.ORB orb) 810 { 811 return ImportHelper.narrow( 812 super._this_object(orb)); 813 } 814 815 816 } | Popular Tags |