1 package org.omg.mof.Model; 2 3 4 10 11 12 public abstract class NamespacePOA extends org.omg.PortableServer.Servant 14 implements org.omg.mof.Model.NamespaceOperations, 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 ("contents", new java.lang.Integer (0)); 23 _methods.put ("set_contents", new java.lang.Integer (1)); 24 _methods.put ("add_contents", new java.lang.Integer (2)); 25 _methods.put ("add_contents_before", new java.lang.Integer (3)); 26 _methods.put ("modify_contents", new java.lang.Integer (4)); 27 _methods.put ("remove_contents", new java.lang.Integer (5)); 28 _methods.put ("_get_all_of_type_namespace", new java.lang.Integer (6)); 29 _methods.put ("_get_all_of_type_model_element", new java.lang.Integer (7)); 30 _methods.put ("ref_is_instance_of", new java.lang.Integer (8)); 31 _methods.put ("ref_create_instance", new java.lang.Integer (9)); 32 _methods.put ("ref_all_objects", new java.lang.Integer (10)); 33 _methods.put ("ref_set_value", new java.lang.Integer (11)); 34 _methods.put ("ref_value", new java.lang.Integer (12)); 35 _methods.put ("ref_unset_value", new java.lang.Integer (13)); 36 _methods.put ("ref_add_value", new java.lang.Integer (14)); 37 _methods.put ("ref_add_value_before", new java.lang.Integer (15)); 38 _methods.put ("ref_add_value_at", new java.lang.Integer (16)); 39 _methods.put ("ref_modify_value", new java.lang.Integer (17)); 40 _methods.put ("ref_modify_value_at", new java.lang.Integer (18)); 41 _methods.put ("ref_remove_value", new java.lang.Integer (19)); 42 _methods.put ("ref_remove_value_at", new java.lang.Integer (20)); 43 _methods.put ("ref_immediate_composite", new java.lang.Integer (21)); 44 _methods.put ("ref_outermost_composite", new java.lang.Integer (22)); 45 _methods.put ("ref_invoke_operation", new java.lang.Integer (23)); 46 _methods.put ("ref_mof_id", new java.lang.Integer (24)); 47 _methods.put ("ref_meta_object", new java.lang.Integer (25)); 48 _methods.put ("ref_itself", new java.lang.Integer (26)); 49 _methods.put ("ref_immediate_package", new java.lang.Integer (27)); 50 _methods.put ("ref_outermost_package", new java.lang.Integer (28)); 51 _methods.put ("ref_delete", new java.lang.Integer (29)); 52 _methods.put ("name", new java.lang.Integer (30)); 53 _methods.put ("set_name", new java.lang.Integer (31)); 54 _methods.put ("annotation", new java.lang.Integer (32)); 55 _methods.put ("set_annotation", new java.lang.Integer (33)); 56 _methods.put ("qualified_name", new java.lang.Integer (34)); 57 _methods.put ("container", new java.lang.Integer (35)); 58 _methods.put ("set_container", new java.lang.Integer (36)); 59 _methods.put ("unset_container", new java.lang.Integer (37)); 60 _methods.put ("required_elements", new java.lang.Integer (38)); 61 _methods.put ("set_required_elements", new java.lang.Integer (39)); 62 _methods.put ("add_required_elements", new java.lang.Integer (40)); 63 _methods.put ("modify_required_elements", new java.lang.Integer (41)); 64 _methods.put ("remove_required_elements", new java.lang.Integer (42)); 65 _methods.put ("constraints", new java.lang.Integer (43)); 66 _methods.put ("set_constraints", new java.lang.Integer (44)); 67 _methods.put ("add_constraints", new java.lang.Integer (45)); 68 _methods.put ("modify_constraints", new java.lang.Integer (46)); 69 _methods.put ("remove_constraints", new java.lang.Integer (47)); 70 } 71 72 public org.omg.CORBA.portable.OutputStream _invoke (String $method, 73 org.omg.CORBA.portable.InputStream in, 74 org.omg.CORBA.portable.ResponseHandler $rh) 75 { 76 org.omg.CORBA.portable.OutputStream out = null; 77 java.lang.Integer __method = (java.lang.Integer )_methods.get ($method); 78 if (__method == null) 79 throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE); 80 81 switch (__method.intValue ()) 82 { 83 84 case 0: { 87 try { 88 org.omg.mof.Model.ModelElement $result[] = null; 89 $result = this.contents (); 90 out = $rh.createReply(); 91 org.omg.mof.Model.ModelElementListHelper.write (out, $result); 92 } catch (org.omg.mof.Reflective.MofError $ex) { 93 out = $rh.createExceptionReply (); 94 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 95 } 96 break; 97 } 98 99 case 1: { 101 try { 102 org.omg.mof.Model.ModelElement new_value[] = org.omg.mof.Model.ModelElementListHelper.read (in); 103 this.set_contents (new_value); 104 out = $rh.createReply(); 105 } catch (org.omg.mof.Reflective.MofError $ex) { 106 out = $rh.createExceptionReply (); 107 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 108 } 109 break; 110 } 111 112 case 2: { 114 try { 115 org.omg.mof.Model.ModelElement new_element = org.omg.mof.Model.ModelElementHelper.read (in); 116 this.add_contents (new_element); 117 out = $rh.createReply(); 118 } catch (org.omg.mof.Reflective.MofError $ex) { 119 out = $rh.createExceptionReply (); 120 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 121 } 122 break; 123 } 124 125 case 3: { 127 try { 128 org.omg.mof.Model.ModelElement new_element = org.omg.mof.Model.ModelElementHelper.read (in); 129 org.omg.mof.Model.ModelElement before_element = org.omg.mof.Model.ModelElementHelper.read (in); 130 this.add_contents_before (new_element, before_element); 131 out = $rh.createReply(); 132 } catch (org.omg.mof.Reflective.NotFound $ex) { 133 out = $rh.createExceptionReply (); 134 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 135 } catch (org.omg.mof.Reflective.MofError $ex) { 136 out = $rh.createExceptionReply (); 137 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 138 } 139 break; 140 } 141 142 case 4: { 144 try { 145 org.omg.mof.Model.ModelElement old_element = org.omg.mof.Model.ModelElementHelper.read (in); 146 org.omg.mof.Model.ModelElement new_element = org.omg.mof.Model.ModelElementHelper.read (in); 147 this.modify_contents (old_element, new_element); 148 out = $rh.createReply(); 149 } catch (org.omg.mof.Reflective.NotFound $ex) { 150 out = $rh.createExceptionReply (); 151 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 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.ModelElement old_element = org.omg.mof.Model.ModelElementHelper.read (in); 163 this.remove_contents (old_element); 164 out = $rh.createReply(); 165 } catch (org.omg.mof.Reflective.NotFound $ex) { 166 out = $rh.createExceptionReply (); 167 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 168 } catch (org.omg.mof.Reflective.MofError $ex) { 169 out = $rh.createExceptionReply (); 170 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 171 } 172 break; 173 } 174 175 case 6: { 177 org.omg.mof.Model.Namespace $result[] = null; 178 $result = this.all_of_type_namespace (); 179 out = $rh.createReply(); 180 org.omg.mof.Model.NamespaceSetHelper.write (out, $result); 181 break; 182 } 183 184 case 7: { 186 org.omg.mof.Model.ModelElement $result[] = null; 187 $result = this.all_of_type_model_element (); 188 out = $rh.createReply(); 189 org.omg.mof.Model.ModelElementSetHelper.write (out, $result); 190 break; 191 } 192 193 case 8: { 195 org.omg.mof.Reflective.RefObject some_class = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 196 boolean consider_subtypes = in.read_boolean (); 197 boolean $result = false; 198 $result = this.ref_is_instance_of (some_class, consider_subtypes); 199 out = $rh.createReply(); 200 out.write_boolean ($result); 201 break; 202 } 203 204 case 9: { 206 try { 207 org.omg.CORBA.Any args[] = org.omg.mof.Reflective.ValueTypeListHelper.read (in); 208 org.omg.mof.Reflective.RefObject $result = null; 209 $result = this.ref_create_instance (args); 210 out = $rh.createReply(); 211 org.omg.mof.Reflective.RefObjectHelper.write (out, $result); 212 } catch (org.omg.mof.Reflective.MofError $ex) { 213 out = $rh.createExceptionReply (); 214 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 215 } 216 break; 217 } 218 219 case 10: { 221 boolean include_subtypes = in.read_boolean (); 222 org.omg.mof.Reflective.RefObject $result[] = null; 223 $result = this.ref_all_objects (include_subtypes); 224 out = $rh.createReply(); 225 org.omg.mof.Reflective.RefObjectSetHelper.write (out, $result); 226 break; 227 } 228 229 case 11: { 231 try { 232 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 233 org.omg.CORBA.Any new_value = org.omg.mof.Reflective._ValueTypeHelper.read (in); 234 this.ref_set_value (feature, new_value); 235 out = $rh.createReply(); 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 try { 246 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 247 org.omg.CORBA.Any $result = null; 248 $result = this.ref_value (feature); 249 out = $rh.createReply(); 250 out.write_any ($result); 251 } catch (org.omg.mof.Reflective.NotSet $ex) { 252 out = $rh.createExceptionReply (); 253 org.omg.mof.Reflective.NotSetHelper.write (out, $ex); 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 13: { 263 try { 264 this.ref_unset_value (); 265 out = $rh.createReply(); 266 } catch (org.omg.mof.Reflective.MofError $ex) { 267 out = $rh.createExceptionReply (); 268 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 269 } 270 break; 271 } 272 273 case 14: { 275 try { 276 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 277 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 278 this.ref_add_value (feature, new_element); 279 out = $rh.createReply(); 280 } catch (org.omg.mof.Reflective.MofError $ex) { 281 out = $rh.createExceptionReply (); 282 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 283 } 284 break; 285 } 286 287 case 15: { 289 try { 290 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 291 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 292 org.omg.CORBA.Any before_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 293 this.ref_add_value_before (feature, new_element, before_element); 294 out = $rh.createReply(); 295 } catch (org.omg.mof.Reflective.NotFound $ex) { 296 out = $rh.createExceptionReply (); 297 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 298 } catch (org.omg.mof.Reflective.MofError $ex) { 299 out = $rh.createExceptionReply (); 300 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 301 } 302 break; 303 } 304 305 case 16: { 307 try { 308 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 309 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 310 int position = in.read_ulong (); 311 this.ref_add_value_at (feature, new_element, position); 312 out = $rh.createReply(); 313 } catch (org.omg.mof.Reflective.BadPosition $ex) { 314 out = $rh.createExceptionReply (); 315 org.omg.mof.Reflective.BadPositionHelper.write (out, $ex); 316 } catch (org.omg.mof.Reflective.MofError $ex) { 317 out = $rh.createExceptionReply (); 318 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 319 } 320 break; 321 } 322 323 case 17: { 325 try { 326 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 327 org.omg.CORBA.Any old_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 328 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 329 this.ref_modify_value (feature, old_element, new_element); 330 out = $rh.createReply(); 331 } catch (org.omg.mof.Reflective.NotFound $ex) { 332 out = $rh.createExceptionReply (); 333 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 334 } catch (org.omg.mof.Reflective.MofError $ex) { 335 out = $rh.createExceptionReply (); 336 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 337 } 338 break; 339 } 340 341 case 18: { 343 try { 344 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 345 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 346 int position = in.read_ulong (); 347 this.ref_modify_value_at (feature, new_element, position); 348 out = $rh.createReply(); 349 } catch (org.omg.mof.Reflective.BadPosition $ex) { 350 out = $rh.createExceptionReply (); 351 org.omg.mof.Reflective.BadPositionHelper.write (out, $ex); 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 19: { 361 try { 362 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 363 org.omg.CORBA.Any existing_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 364 this.ref_remove_value (feature, existing_element); 365 out = $rh.createReply(); 366 } catch (org.omg.mof.Reflective.NotFound $ex) { 367 out = $rh.createExceptionReply (); 368 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 369 } catch (org.omg.mof.Reflective.MofError $ex) { 370 out = $rh.createExceptionReply (); 371 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 372 } 373 break; 374 } 375 376 case 20: { 378 try { 379 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 380 int position = in.read_ulong (); 381 this.ref_remove_value_at (feature, position); 382 out = $rh.createReply(); 383 } catch (org.omg.mof.Reflective.BadPosition $ex) { 384 out = $rh.createExceptionReply (); 385 org.omg.mof.Reflective.BadPositionHelper.write (out, $ex); 386 } catch (org.omg.mof.Reflective.MofError $ex) { 387 out = $rh.createExceptionReply (); 388 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 389 } 390 break; 391 } 392 393 case 21: { 395 org.omg.mof.Reflective.RefObject $result = null; 396 $result = this.ref_immediate_composite (); 397 out = $rh.createReply(); 398 org.omg.mof.Reflective.RefObjectHelper.write (out, $result); 399 break; 400 } 401 402 case 22: { 404 org.omg.mof.Reflective.RefObject $result = null; 405 $result = this.ref_outermost_composite (); 406 out = $rh.createReply(); 407 org.omg.mof.Reflective.RefObjectHelper.write (out, $result); 408 break; 409 } 410 411 case 23: { 413 try { 414 org.omg.mof.Reflective.RefObject requested_operation = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 415 org.omg.mof.Reflective.ValueTypeListHolder args = new org.omg.mof.Reflective.ValueTypeListHolder (); 416 args.value = org.omg.mof.Reflective.ValueTypeListHelper.read (in); 417 org.omg.CORBA.Any $result = null; 418 $result = this.ref_invoke_operation (requested_operation, args); 419 out = $rh.createReply(); 420 out.write_any ($result); 421 org.omg.mof.Reflective.ValueTypeListHelper.write (out, args.value); 422 } catch (org.omg.mof.Reflective.OtherException $ex) { 423 out = $rh.createExceptionReply (); 424 org.omg.mof.Reflective.OtherExceptionHelper.write (out, $ex); 425 } catch (org.omg.mof.Reflective.MofError $ex) { 426 out = $rh.createExceptionReply (); 427 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 428 } 429 break; 430 } 431 432 case 24: { 434 String $result = null; 435 $result = this.ref_mof_id (); 436 out = $rh.createReply(); 437 out.write_string ($result); 438 break; 439 } 440 441 case 25: { 443 org.omg.mof.Reflective.RefObject $result = null; 444 $result = this.ref_meta_object (); 445 out = $rh.createReply(); 446 org.omg.mof.Reflective.RefObjectHelper.write (out, $result); 447 break; 448 } 449 450 case 26: { 452 org.omg.mof.Reflective.RefBaseObject other_object = org.omg.mof.Reflective.RefBaseObjectHelper.read (in); 453 boolean $result = false; 454 $result = this.ref_itself (other_object); 455 out = $rh.createReply(); 456 out.write_boolean ($result); 457 break; 458 } 459 460 case 27: { 462 org.omg.mof.Reflective._RefPackage $result = null; 463 $result = this.ref_immediate_package (); 464 out = $rh.createReply(); 465 org.omg.mof.Reflective._RefPackageHelper.write (out, $result); 466 break; 467 } 468 469 case 28: { 471 org.omg.mof.Reflective._RefPackage $result = null; 472 $result = this.ref_outermost_package (); 473 out = $rh.createReply(); 474 org.omg.mof.Reflective._RefPackageHelper.write (out, $result); 475 break; 476 } 477 478 case 29: { 480 try { 481 this.ref_delete (); 482 out = $rh.createReply(); 483 } catch (org.omg.mof.Reflective.MofError $ex) { 484 out = $rh.createExceptionReply (); 485 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 486 } 487 break; 488 } 489 490 491 case 30: { 494 try { 495 String $result = null; 496 $result = this.name (); 497 out = $rh.createReply(); 498 out.write_string ($result); 499 } catch (org.omg.mof.Reflective.MofError $ex) { 500 out = $rh.createExceptionReply (); 501 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 502 } 503 break; 504 } 505 506 case 31: { 508 try { 509 String new_value = in.read_string (); 510 this.set_name (new_value); 511 out = $rh.createReply(); 512 } catch (org.omg.mof.Reflective.MofError $ex) { 513 out = $rh.createExceptionReply (); 514 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 515 } 516 break; 517 } 518 519 520 case 32: { 523 try { 524 String $result = null; 525 $result = this.annotation (); 526 out = $rh.createReply(); 527 out.write_string ($result); 528 } catch (org.omg.mof.Reflective.MofError $ex) { 529 out = $rh.createExceptionReply (); 530 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 531 } 532 break; 533 } 534 535 case 33: { 537 try { 538 String new_value = in.read_string (); 539 this.set_annotation (new_value); 540 out = $rh.createReply(); 541 } catch (org.omg.mof.Reflective.MofError $ex) { 542 out = $rh.createExceptionReply (); 543 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 544 } 545 break; 546 } 547 548 549 case 34: { 552 try { 553 String $result[] = null; 554 $result = this.qualified_name (); 555 out = $rh.createReply(); 556 org.omg.mof.Model.StringListHelper.write (out, $result); 557 } catch (org.omg.mof.Reflective.MofError $ex) { 558 out = $rh.createExceptionReply (); 559 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 560 } 561 break; 562 } 563 564 565 case 35: { 568 try { 569 org.omg.mof.Model.Namespace $result = null; 570 $result = this.container (); 571 out = $rh.createReply(); 572 org.omg.mof.Model.NamespaceHelper.write (out, $result); 573 } catch (org.omg.mof.Reflective.NotSet $ex) { 574 out = $rh.createExceptionReply (); 575 org.omg.mof.Reflective.NotSetHelper.write (out, $ex); 576 } catch (org.omg.mof.Reflective.MofError $ex) { 577 out = $rh.createExceptionReply (); 578 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 579 } 580 break; 581 } 582 583 case 36: { 585 try { 586 org.omg.mof.Model.Namespace new_value = org.omg.mof.Model.NamespaceHelper.read (in); 587 this.set_container (new_value); 588 out = $rh.createReply(); 589 } catch (org.omg.mof.Reflective.MofError $ex) { 590 out = $rh.createExceptionReply (); 591 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 592 } 593 break; 594 } 595 596 case 37: { 598 try { 599 this.unset_container (); 600 out = $rh.createReply(); 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 609 case 38: { 612 try { 613 org.omg.mof.Model.ModelElement $result[] = null; 614 $result = this.required_elements (); 615 out = $rh.createReply(); 616 org.omg.mof.Model.ModelElementBagHelper.write (out, $result); 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 case 39: { 626 try { 627 org.omg.mof.Model.ModelElement new_value[] = org.omg.mof.Model.ModelElementBagHelper.read (in); 628 this.set_required_elements (new_value); 629 out = $rh.createReply(); 630 } catch (org.omg.mof.Reflective.MofError $ex) { 631 out = $rh.createExceptionReply (); 632 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 633 } 634 break; 635 } 636 637 case 40: { 639 try { 640 org.omg.mof.Model.ModelElement new_element = org.omg.mof.Model.ModelElementHelper.read (in); 641 this.add_required_elements (new_element); 642 out = $rh.createReply(); 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 case 41: { 652 try { 653 org.omg.mof.Model.ModelElement old_element = org.omg.mof.Model.ModelElementHelper.read (in); 654 org.omg.mof.Model.ModelElement new_element = org.omg.mof.Model.ModelElementHelper.read (in); 655 this.modify_required_elements (old_element, new_element); 656 out = $rh.createReply(); 657 } catch (org.omg.mof.Reflective.NotFound $ex) { 658 out = $rh.createExceptionReply (); 659 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 660 } catch (org.omg.mof.Reflective.MofError $ex) { 661 out = $rh.createExceptionReply (); 662 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 663 } 664 break; 665 } 666 667 case 42: { 669 try { 670 org.omg.mof.Model.ModelElement old_element = org.omg.mof.Model.ModelElementHelper.read (in); 671 this.remove_required_elements (old_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 684 case 43: { 687 try { 688 org.omg.mof.Model.Constraint $result[] = null; 689 $result = this.constraints (); 690 out = $rh.createReply(); 691 org.omg.mof.Model.ConstraintBagHelper.write (out, $result); 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 case 44: { 701 try { 702 org.omg.mof.Model.Constraint new_value[] = org.omg.mof.Model.ConstraintBagHelper.read (in); 703 this.set_constraints (new_value); 704 out = $rh.createReply(); 705 } catch (org.omg.mof.Reflective.MofError $ex) { 706 out = $rh.createExceptionReply (); 707 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 708 } 709 break; 710 } 711 712 case 45: { 714 try { 715 org.omg.mof.Model.Constraint new_element = org.omg.mof.Model.ConstraintHelper.read (in); 716 this.add_constraints (new_element); 717 out = $rh.createReply(); 718 } catch (org.omg.mof.Reflective.MofError $ex) { 719 out = $rh.createExceptionReply (); 720 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 721 } 722 break; 723 } 724 725 case 46: { 727 try { 728 org.omg.mof.Model.Constraint old_element = org.omg.mof.Model.ConstraintHelper.read (in); 729 org.omg.mof.Model.Constraint new_element = org.omg.mof.Model.ConstraintHelper.read (in); 730 this.modify_constraints (old_element, new_element); 731 out = $rh.createReply(); 732 } catch (org.omg.mof.Reflective.NotFound $ex) { 733 out = $rh.createExceptionReply (); 734 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 735 } catch (org.omg.mof.Reflective.MofError $ex) { 736 out = $rh.createExceptionReply (); 737 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 738 } 739 break; 740 } 741 742 case 47: { 744 try { 745 org.omg.mof.Model.Constraint old_element = org.omg.mof.Model.ConstraintHelper.read (in); 746 this.remove_constraints (old_element); 747 out = $rh.createReply(); 748 } catch (org.omg.mof.Reflective.NotFound $ex) { 749 out = $rh.createExceptionReply (); 750 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 751 } catch (org.omg.mof.Reflective.MofError $ex) { 752 out = $rh.createExceptionReply (); 753 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 754 } 755 break; 756 } 757 758 default: 759 throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE); 760 } 761 762 return out; 763 } 765 private static String [] __ids = { 767 "IDL:org/omg/mof/Model/Namespace:1.0", 768 "IDL:org/omg/mof/Model/NamespaceClass:1.0", 769 "IDL:org/omg/mof/Model/ModelElementClass:1.0", 770 "IDL:org/omg/mof/Reflective/RefObject:1.0", 771 "IDL:org/omg/mof/Reflective/RefBaseObject:1.0", 772 "IDL:org/omg/mof/Model/ModelElement:1.0"}; 773 774 public String [] _all_interfaces (org.omg.PortableServer.POA poa, byte[] objectId) 775 { 776 return (String [])__ids.clone (); 777 } 778 779 public Namespace _this() 780 { 781 return NamespaceHelper.narrow( 782 super._this_object()); 783 } 784 785 public Namespace _this(org.omg.CORBA.ORB orb) 786 { 787 return NamespaceHelper.narrow( 788 super._this_object(orb)); 789 } 790 791 792 } | Popular Tags |