1 package org.omg.mof.Model; 2 3 4 10 11 12 public abstract class MofExceptionPOA extends org.omg.PortableServer.Servant 14 implements org.omg.mof.Model.MofExceptionOperations, 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_mof_exception", new java.lang.Integer (0)); 23 _methods.put ("_get_all_of_class_mof_exception", new java.lang.Integer (1)); 24 _methods.put ("create_mof_exception", new java.lang.Integer (2)); 25 _methods.put ("_get_all_of_type_behavioral_feature", new java.lang.Integer (3)); 26 _methods.put ("_get_all_of_type_namespace", new java.lang.Integer (4)); 27 _methods.put ("_get_all_of_type_model_element", new java.lang.Integer (5)); 28 _methods.put ("ref_is_instance_of", new java.lang.Integer (6)); 29 _methods.put ("ref_create_instance", new java.lang.Integer (7)); 30 _methods.put ("ref_all_objects", new java.lang.Integer (8)); 31 _methods.put ("ref_set_value", new java.lang.Integer (9)); 32 _methods.put ("ref_value", new java.lang.Integer (10)); 33 _methods.put ("ref_unset_value", new java.lang.Integer (11)); 34 _methods.put ("ref_add_value", new java.lang.Integer (12)); 35 _methods.put ("ref_add_value_before", new java.lang.Integer (13)); 36 _methods.put ("ref_add_value_at", new java.lang.Integer (14)); 37 _methods.put ("ref_modify_value", new java.lang.Integer (15)); 38 _methods.put ("ref_modify_value_at", new java.lang.Integer (16)); 39 _methods.put ("ref_remove_value", new java.lang.Integer (17)); 40 _methods.put ("ref_remove_value_at", new java.lang.Integer (18)); 41 _methods.put ("ref_immediate_composite", new java.lang.Integer (19)); 42 _methods.put ("ref_outermost_composite", new java.lang.Integer (20)); 43 _methods.put ("ref_invoke_operation", new java.lang.Integer (21)); 44 _methods.put ("ref_mof_id", new java.lang.Integer (22)); 45 _methods.put ("ref_meta_object", new java.lang.Integer (23)); 46 _methods.put ("ref_itself", new java.lang.Integer (24)); 47 _methods.put ("ref_immediate_package", new java.lang.Integer (25)); 48 _methods.put ("ref_outermost_package", new java.lang.Integer (26)); 49 _methods.put ("ref_delete", new java.lang.Integer (27)); 50 _methods.put ("_get_all_of_type_feature", new java.lang.Integer (28)); 51 _methods.put ("name", new java.lang.Integer (29)); 52 _methods.put ("set_name", new java.lang.Integer (30)); 53 _methods.put ("annotation", new java.lang.Integer (31)); 54 _methods.put ("set_annotation", new java.lang.Integer (32)); 55 _methods.put ("qualified_name", new java.lang.Integer (33)); 56 _methods.put ("container", new java.lang.Integer (34)); 57 _methods.put ("set_container", new java.lang.Integer (35)); 58 _methods.put ("unset_container", new java.lang.Integer (36)); 59 _methods.put ("required_elements", new java.lang.Integer (37)); 60 _methods.put ("set_required_elements", new java.lang.Integer (38)); 61 _methods.put ("add_required_elements", new java.lang.Integer (39)); 62 _methods.put ("modify_required_elements", new java.lang.Integer (40)); 63 _methods.put ("remove_required_elements", new java.lang.Integer (41)); 64 _methods.put ("constraints", new java.lang.Integer (42)); 65 _methods.put ("set_constraints", new java.lang.Integer (43)); 66 _methods.put ("add_constraints", new java.lang.Integer (44)); 67 _methods.put ("modify_constraints", new java.lang.Integer (45)); 68 _methods.put ("remove_constraints", new java.lang.Integer (46)); 69 _methods.put ("contents", new java.lang.Integer (47)); 70 _methods.put ("set_contents", new java.lang.Integer (48)); 71 _methods.put ("add_contents", new java.lang.Integer (49)); 72 _methods.put ("add_contents_before", new java.lang.Integer (50)); 73 _methods.put ("modify_contents", new java.lang.Integer (51)); 74 _methods.put ("remove_contents", new java.lang.Integer (52)); 75 _methods.put ("visibility", new java.lang.Integer (53)); 76 _methods.put ("set_visibility", new java.lang.Integer (54)); 77 _methods.put ("scope", new java.lang.Integer (55)); 78 _methods.put ("set_scope", new java.lang.Integer (56)); 79 } 80 81 public org.omg.CORBA.portable.OutputStream _invoke (String $method, 82 org.omg.CORBA.portable.InputStream in, 83 org.omg.CORBA.portable.ResponseHandler $rh) 84 { 85 org.omg.CORBA.portable.OutputStream out = null; 86 java.lang.Integer __method = (java.lang.Integer )_methods.get ($method); 87 if (__method == null) 88 throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE); 89 90 switch (__method.intValue ()) 91 { 92 case 0: { 94 org.omg.mof.Model.MofException $result[] = null; 95 $result = this.all_of_type_mof_exception (); 96 out = $rh.createReply(); 97 org.omg.mof.Model.MofExceptionSetHelper.write (out, $result); 98 break; 99 } 100 101 case 1: { 103 org.omg.mof.Model.MofException $result[] = null; 104 $result = this.all_of_class_mof_exception (); 105 out = $rh.createReply(); 106 org.omg.mof.Model.MofExceptionSetHelper.write (out, $result); 107 break; 108 } 109 110 case 2: { 112 try { 113 String name = in.read_string (); 114 String annotation = in.read_string (); 115 org.omg.mof.Model.VisibilityKind visibility = org.omg.mof.Model.VisibilityKindHelper.read (in); 116 org.omg.mof.Model.ScopeKind scope = org.omg.mof.Model.ScopeKindHelper.read (in); 117 org.omg.mof.Model.MofException $result = null; 118 $result = this.create_mof_exception (name, annotation, visibility, scope); 119 out = $rh.createReply(); 120 org.omg.mof.Model.MofExceptionHelper.write (out, $result); 121 } catch (org.omg.mof.Reflective.MofError $ex) { 122 out = $rh.createExceptionReply (); 123 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 124 } 125 break; 126 } 127 128 case 3: { 130 org.omg.mof.Model.BehavioralFeature $result[] = null; 131 $result = this.all_of_type_behavioral_feature (); 132 out = $rh.createReply(); 133 org.omg.mof.Model.BehavioralFeatureSetHelper.write (out, $result); 134 break; 135 } 136 137 case 4: { 139 org.omg.mof.Model.Namespace $result[] = null; 140 $result = this.all_of_type_namespace (); 141 out = $rh.createReply(); 142 org.omg.mof.Model.NamespaceSetHelper.write (out, $result); 143 break; 144 } 145 146 case 5: { 148 org.omg.mof.Model.ModelElement $result[] = null; 149 $result = this.all_of_type_model_element (); 150 out = $rh.createReply(); 151 org.omg.mof.Model.ModelElementSetHelper.write (out, $result); 152 break; 153 } 154 155 case 6: { 157 org.omg.mof.Reflective.RefObject some_class = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 158 boolean consider_subtypes = in.read_boolean (); 159 boolean $result = false; 160 $result = this.ref_is_instance_of (some_class, consider_subtypes); 161 out = $rh.createReply(); 162 out.write_boolean ($result); 163 break; 164 } 165 166 case 7: { 168 try { 169 org.omg.CORBA.Any args[] = org.omg.mof.Reflective.ValueTypeListHelper.read (in); 170 org.omg.mof.Reflective.RefObject $result = null; 171 $result = this.ref_create_instance (args); 172 out = $rh.createReply(); 173 org.omg.mof.Reflective.RefObjectHelper.write (out, $result); 174 } catch (org.omg.mof.Reflective.MofError $ex) { 175 out = $rh.createExceptionReply (); 176 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 177 } 178 break; 179 } 180 181 case 8: { 183 boolean include_subtypes = in.read_boolean (); 184 org.omg.mof.Reflective.RefObject $result[] = null; 185 $result = this.ref_all_objects (include_subtypes); 186 out = $rh.createReply(); 187 org.omg.mof.Reflective.RefObjectSetHelper.write (out, $result); 188 break; 189 } 190 191 case 9: { 193 try { 194 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 195 org.omg.CORBA.Any new_value = org.omg.mof.Reflective._ValueTypeHelper.read (in); 196 this.ref_set_value (feature, new_value); 197 out = $rh.createReply(); 198 } catch (org.omg.mof.Reflective.MofError $ex) { 199 out = $rh.createExceptionReply (); 200 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 201 } 202 break; 203 } 204 205 case 10: { 207 try { 208 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 209 org.omg.CORBA.Any $result = null; 210 $result = this.ref_value (feature); 211 out = $rh.createReply(); 212 out.write_any ($result); 213 } catch (org.omg.mof.Reflective.NotSet $ex) { 214 out = $rh.createExceptionReply (); 215 org.omg.mof.Reflective.NotSetHelper.write (out, $ex); 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 11: { 225 try { 226 this.ref_unset_value (); 227 out = $rh.createReply(); 228 } catch (org.omg.mof.Reflective.MofError $ex) { 229 out = $rh.createExceptionReply (); 230 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 231 } 232 break; 233 } 234 235 case 12: { 237 try { 238 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 239 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 240 this.ref_add_value (feature, new_element); 241 out = $rh.createReply(); 242 } catch (org.omg.mof.Reflective.MofError $ex) { 243 out = $rh.createExceptionReply (); 244 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 245 } 246 break; 247 } 248 249 case 13: { 251 try { 252 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 253 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 254 org.omg.CORBA.Any before_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 255 this.ref_add_value_before (feature, new_element, before_element); 256 out = $rh.createReply(); 257 } catch (org.omg.mof.Reflective.NotFound $ex) { 258 out = $rh.createExceptionReply (); 259 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 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 new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 272 int position = in.read_ulong (); 273 this.ref_add_value_at (feature, new_element, position); 274 out = $rh.createReply(); 275 } catch (org.omg.mof.Reflective.BadPosition $ex) { 276 out = $rh.createExceptionReply (); 277 org.omg.mof.Reflective.BadPositionHelper.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 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 289 org.omg.CORBA.Any old_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 290 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 291 this.ref_modify_value (feature, old_element, new_element); 292 out = $rh.createReply(); 293 } catch (org.omg.mof.Reflective.NotFound $ex) { 294 out = $rh.createExceptionReply (); 295 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 296 } catch (org.omg.mof.Reflective.MofError $ex) { 297 out = $rh.createExceptionReply (); 298 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 299 } 300 break; 301 } 302 303 case 16: { 305 try { 306 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 307 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 308 int position = in.read_ulong (); 309 this.ref_modify_value_at (feature, new_element, position); 310 out = $rh.createReply(); 311 } catch (org.omg.mof.Reflective.BadPosition $ex) { 312 out = $rh.createExceptionReply (); 313 org.omg.mof.Reflective.BadPositionHelper.write (out, $ex); 314 } catch (org.omg.mof.Reflective.MofError $ex) { 315 out = $rh.createExceptionReply (); 316 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 317 } 318 break; 319 } 320 321 case 17: { 323 try { 324 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 325 org.omg.CORBA.Any existing_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 326 this.ref_remove_value (feature, existing_element); 327 out = $rh.createReply(); 328 } catch (org.omg.mof.Reflective.NotFound $ex) { 329 out = $rh.createExceptionReply (); 330 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 331 } catch (org.omg.mof.Reflective.MofError $ex) { 332 out = $rh.createExceptionReply (); 333 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 334 } 335 break; 336 } 337 338 case 18: { 340 try { 341 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 342 int position = in.read_ulong (); 343 this.ref_remove_value_at (feature, position); 344 out = $rh.createReply(); 345 } catch (org.omg.mof.Reflective.BadPosition $ex) { 346 out = $rh.createExceptionReply (); 347 org.omg.mof.Reflective.BadPositionHelper.write (out, $ex); 348 } catch (org.omg.mof.Reflective.MofError $ex) { 349 out = $rh.createExceptionReply (); 350 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 351 } 352 break; 353 } 354 355 case 19: { 357 org.omg.mof.Reflective.RefObject $result = null; 358 $result = this.ref_immediate_composite (); 359 out = $rh.createReply(); 360 org.omg.mof.Reflective.RefObjectHelper.write (out, $result); 361 break; 362 } 363 364 case 20: { 366 org.omg.mof.Reflective.RefObject $result = null; 367 $result = this.ref_outermost_composite (); 368 out = $rh.createReply(); 369 org.omg.mof.Reflective.RefObjectHelper.write (out, $result); 370 break; 371 } 372 373 case 21: { 375 try { 376 org.omg.mof.Reflective.RefObject requested_operation = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 377 org.omg.mof.Reflective.ValueTypeListHolder args = new org.omg.mof.Reflective.ValueTypeListHolder (); 378 args.value = org.omg.mof.Reflective.ValueTypeListHelper.read (in); 379 org.omg.CORBA.Any $result = null; 380 $result = this.ref_invoke_operation (requested_operation, args); 381 out = $rh.createReply(); 382 out.write_any ($result); 383 org.omg.mof.Reflective.ValueTypeListHelper.write (out, args.value); 384 } catch (org.omg.mof.Reflective.OtherException $ex) { 385 out = $rh.createExceptionReply (); 386 org.omg.mof.Reflective.OtherExceptionHelper.write (out, $ex); 387 } catch (org.omg.mof.Reflective.MofError $ex) { 388 out = $rh.createExceptionReply (); 389 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 390 } 391 break; 392 } 393 394 case 22: { 396 String $result = null; 397 $result = this.ref_mof_id (); 398 out = $rh.createReply(); 399 out.write_string ($result); 400 break; 401 } 402 403 case 23: { 405 org.omg.mof.Reflective.RefObject $result = null; 406 $result = this.ref_meta_object (); 407 out = $rh.createReply(); 408 org.omg.mof.Reflective.RefObjectHelper.write (out, $result); 409 break; 410 } 411 412 case 24: { 414 org.omg.mof.Reflective.RefBaseObject other_object = org.omg.mof.Reflective.RefBaseObjectHelper.read (in); 415 boolean $result = false; 416 $result = this.ref_itself (other_object); 417 out = $rh.createReply(); 418 out.write_boolean ($result); 419 break; 420 } 421 422 case 25: { 424 org.omg.mof.Reflective._RefPackage $result = null; 425 $result = this.ref_immediate_package (); 426 out = $rh.createReply(); 427 org.omg.mof.Reflective._RefPackageHelper.write (out, $result); 428 break; 429 } 430 431 case 26: { 433 org.omg.mof.Reflective._RefPackage $result = null; 434 $result = this.ref_outermost_package (); 435 out = $rh.createReply(); 436 org.omg.mof.Reflective._RefPackageHelper.write (out, $result); 437 break; 438 } 439 440 case 27: { 442 try { 443 this.ref_delete (); 444 out = $rh.createReply(); 445 } catch (org.omg.mof.Reflective.MofError $ex) { 446 out = $rh.createExceptionReply (); 447 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 448 } 449 break; 450 } 451 452 case 28: { 454 org.omg.mof.Model.Feature $result[] = null; 455 $result = this.all_of_type_feature (); 456 out = $rh.createReply(); 457 org.omg.mof.Model.FeatureSetHelper.write (out, $result); 458 break; 459 } 460 461 462 case 29: { 465 try { 466 String $result = null; 467 $result = this.name (); 468 out = $rh.createReply(); 469 out.write_string ($result); 470 } catch (org.omg.mof.Reflective.MofError $ex) { 471 out = $rh.createExceptionReply (); 472 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 473 } 474 break; 475 } 476 477 case 30: { 479 try { 480 String new_value = in.read_string (); 481 this.set_name (new_value); 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 31: { 494 try { 495 String $result = null; 496 $result = this.annotation (); 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 32: { 508 try { 509 String new_value = in.read_string (); 510 this.set_annotation (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 33: { 523 try { 524 String $result[] = null; 525 $result = this.qualified_name (); 526 out = $rh.createReply(); 527 org.omg.mof.Model.StringListHelper.write (out, $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 536 case 34: { 539 try { 540 org.omg.mof.Model.Namespace $result = null; 541 $result = this.container (); 542 out = $rh.createReply(); 543 org.omg.mof.Model.NamespaceHelper.write (out, $result); 544 } catch (org.omg.mof.Reflective.NotSet $ex) { 545 out = $rh.createExceptionReply (); 546 org.omg.mof.Reflective.NotSetHelper.write (out, $ex); 547 } catch (org.omg.mof.Reflective.MofError $ex) { 548 out = $rh.createExceptionReply (); 549 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 550 } 551 break; 552 } 553 554 case 35: { 556 try { 557 org.omg.mof.Model.Namespace new_value = org.omg.mof.Model.NamespaceHelper.read (in); 558 this.set_container (new_value); 559 out = $rh.createReply(); 560 } catch (org.omg.mof.Reflective.MofError $ex) { 561 out = $rh.createExceptionReply (); 562 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 563 } 564 break; 565 } 566 567 case 36: { 569 try { 570 this.unset_container (); 571 out = $rh.createReply(); 572 } catch (org.omg.mof.Reflective.MofError $ex) { 573 out = $rh.createExceptionReply (); 574 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 575 } 576 break; 577 } 578 579 580 case 37: { 583 try { 584 org.omg.mof.Model.ModelElement $result[] = null; 585 $result = this.required_elements (); 586 out = $rh.createReply(); 587 org.omg.mof.Model.ModelElementBagHelper.write (out, $result); 588 } catch (org.omg.mof.Reflective.MofError $ex) { 589 out = $rh.createExceptionReply (); 590 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 591 } 592 break; 593 } 594 595 case 38: { 597 try { 598 org.omg.mof.Model.ModelElement new_value[] = org.omg.mof.Model.ModelElementBagHelper.read (in); 599 this.set_required_elements (new_value); 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 case 39: { 610 try { 611 org.omg.mof.Model.ModelElement new_element = org.omg.mof.Model.ModelElementHelper.read (in); 612 this.add_required_elements (new_element); 613 out = $rh.createReply(); 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 40: { 623 try { 624 org.omg.mof.Model.ModelElement old_element = org.omg.mof.Model.ModelElementHelper.read (in); 625 org.omg.mof.Model.ModelElement new_element = org.omg.mof.Model.ModelElementHelper.read (in); 626 this.modify_required_elements (old_element, new_element); 627 out = $rh.createReply(); 628 } catch (org.omg.mof.Reflective.NotFound $ex) { 629 out = $rh.createExceptionReply (); 630 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 631 } catch (org.omg.mof.Reflective.MofError $ex) { 632 out = $rh.createExceptionReply (); 633 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 634 } 635 break; 636 } 637 638 case 41: { 640 try { 641 org.omg.mof.Model.ModelElement old_element = org.omg.mof.Model.ModelElementHelper.read (in); 642 this.remove_required_elements (old_element); 643 out = $rh.createReply(); 644 } catch (org.omg.mof.Reflective.NotFound $ex) { 645 out = $rh.createExceptionReply (); 646 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 647 } catch (org.omg.mof.Reflective.MofError $ex) { 648 out = $rh.createExceptionReply (); 649 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 650 } 651 break; 652 } 653 654 655 case 42: { 658 try { 659 org.omg.mof.Model.Constraint $result[] = null; 660 $result = this.constraints (); 661 out = $rh.createReply(); 662 org.omg.mof.Model.ConstraintBagHelper.write (out, $result); 663 } catch (org.omg.mof.Reflective.MofError $ex) { 664 out = $rh.createExceptionReply (); 665 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 666 } 667 break; 668 } 669 670 case 43: { 672 try { 673 org.omg.mof.Model.Constraint new_value[] = org.omg.mof.Model.ConstraintBagHelper.read (in); 674 this.set_constraints (new_value); 675 out = $rh.createReply(); 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 new_element = org.omg.mof.Model.ConstraintHelper.read (in); 687 this.add_constraints (new_element); 688 out = $rh.createReply(); 689 } catch (org.omg.mof.Reflective.MofError $ex) { 690 out = $rh.createExceptionReply (); 691 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 692 } 693 break; 694 } 695 696 case 45: { 698 try { 699 org.omg.mof.Model.Constraint old_element = org.omg.mof.Model.ConstraintHelper.read (in); 700 org.omg.mof.Model.Constraint new_element = org.omg.mof.Model.ConstraintHelper.read (in); 701 this.modify_constraints (old_element, new_element); 702 out = $rh.createReply(); 703 } catch (org.omg.mof.Reflective.NotFound $ex) { 704 out = $rh.createExceptionReply (); 705 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 706 } catch (org.omg.mof.Reflective.MofError $ex) { 707 out = $rh.createExceptionReply (); 708 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 709 } 710 break; 711 } 712 713 case 46: { 715 try { 716 org.omg.mof.Model.Constraint old_element = org.omg.mof.Model.ConstraintHelper.read (in); 717 this.remove_constraints (old_element); 718 out = $rh.createReply(); 719 } catch (org.omg.mof.Reflective.NotFound $ex) { 720 out = $rh.createExceptionReply (); 721 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 722 } catch (org.omg.mof.Reflective.MofError $ex) { 723 out = $rh.createExceptionReply (); 724 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 725 } 726 break; 727 } 728 729 730 case 47: { 733 try { 734 org.omg.mof.Model.ModelElement $result[] = null; 735 $result = this.contents (); 736 out = $rh.createReply(); 737 org.omg.mof.Model.ModelElementListHelper.write (out, $result); 738 } catch (org.omg.mof.Reflective.MofError $ex) { 739 out = $rh.createExceptionReply (); 740 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 741 } 742 break; 743 } 744 745 case 48: { 747 try { 748 org.omg.mof.Model.ModelElement new_value[] = org.omg.mof.Model.ModelElementListHelper.read (in); 749 this.set_contents (new_value); 750 out = $rh.createReply(); 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 case 49: { 760 try { 761 org.omg.mof.Model.ModelElement new_element = org.omg.mof.Model.ModelElementHelper.read (in); 762 this.add_contents (new_element); 763 out = $rh.createReply(); 764 } catch (org.omg.mof.Reflective.MofError $ex) { 765 out = $rh.createExceptionReply (); 766 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 767 } 768 break; 769 } 770 771 case 50: { 773 try { 774 org.omg.mof.Model.ModelElement new_element = org.omg.mof.Model.ModelElementHelper.read (in); 775 org.omg.mof.Model.ModelElement before_element = org.omg.mof.Model.ModelElementHelper.read (in); 776 this.add_contents_before (new_element, before_element); 777 out = $rh.createReply(); 778 } catch (org.omg.mof.Reflective.NotFound $ex) { 779 out = $rh.createExceptionReply (); 780 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 781 } catch (org.omg.mof.Reflective.MofError $ex) { 782 out = $rh.createExceptionReply (); 783 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 784 } 785 break; 786 } 787 788 case 51: { 790 try { 791 org.omg.mof.Model.ModelElement old_element = org.omg.mof.Model.ModelElementHelper.read (in); 792 org.omg.mof.Model.ModelElement new_element = org.omg.mof.Model.ModelElementHelper.read (in); 793 this.modify_contents (old_element, new_element); 794 out = $rh.createReply(); 795 } catch (org.omg.mof.Reflective.NotFound $ex) { 796 out = $rh.createExceptionReply (); 797 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 798 } catch (org.omg.mof.Reflective.MofError $ex) { 799 out = $rh.createExceptionReply (); 800 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 801 } 802 break; 803 } 804 805 case 52: { 807 try { 808 org.omg.mof.Model.ModelElement old_element = org.omg.mof.Model.ModelElementHelper.read (in); 809 this.remove_contents (old_element); 810 out = $rh.createReply(); 811 } catch (org.omg.mof.Reflective.NotFound $ex) { 812 out = $rh.createExceptionReply (); 813 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 814 } catch (org.omg.mof.Reflective.MofError $ex) { 815 out = $rh.createExceptionReply (); 816 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 817 } 818 break; 819 } 820 821 822 case 53: { 825 try { 826 org.omg.mof.Model.VisibilityKind $result = null; 827 $result = this.visibility (); 828 out = $rh.createReply(); 829 org.omg.mof.Model.VisibilityKindHelper.write (out, $result); 830 } catch (org.omg.mof.Reflective.MofError $ex) { 831 out = $rh.createExceptionReply (); 832 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 833 } 834 break; 835 } 836 837 case 54: { 839 try { 840 org.omg.mof.Model.VisibilityKind new_value = org.omg.mof.Model.VisibilityKindHelper.read (in); 841 this.set_visibility (new_value); 842 out = $rh.createReply(); 843 } catch (org.omg.mof.Reflective.MofError $ex) { 844 out = $rh.createExceptionReply (); 845 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 846 } 847 break; 848 } 849 850 851 case 55: { 854 try { 855 org.omg.mof.Model.ScopeKind $result = null; 856 $result = this.scope (); 857 out = $rh.createReply(); 858 org.omg.mof.Model.ScopeKindHelper.write (out, $result); 859 } catch (org.omg.mof.Reflective.MofError $ex) { 860 out = $rh.createExceptionReply (); 861 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 862 } 863 break; 864 } 865 866 case 56: { 868 try { 869 org.omg.mof.Model.ScopeKind new_value = org.omg.mof.Model.ScopeKindHelper.read (in); 870 this.set_scope (new_value); 871 out = $rh.createReply(); 872 } catch (org.omg.mof.Reflective.MofError $ex) { 873 out = $rh.createExceptionReply (); 874 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 875 } 876 break; 877 } 878 879 default: 880 throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE); 881 } 882 883 return out; 884 } 886 private static String [] __ids = { 888 "IDL:org/omg/mof/Model/MofException:1.0", 889 "IDL:org/omg/mof/Model/MofExceptionClass:1.0", 890 "IDL:org/omg/mof/Model/BehavioralFeatureClass:1.0", 891 "IDL:org/omg/mof/Model/NamespaceClass:1.0", 892 "IDL:org/omg/mof/Model/ModelElementClass:1.0", 893 "IDL:org/omg/mof/Reflective/RefObject:1.0", 894 "IDL:org/omg/mof/Reflective/RefBaseObject:1.0", 895 "IDL:org/omg/mof/Model/FeatureClass:1.0", 896 "IDL:org/omg/mof/Model/ModelElement:1.0", 897 "IDL:org/omg/mof/Model/Namespace:1.0", 898 "IDL:org/omg/mof/Model/Feature:1.0", 899 "IDL:org/omg/mof/Model/BehavioralFeature:1.0"}; 900 901 public String [] _all_interfaces (org.omg.PortableServer.POA poa, byte[] objectId) 902 { 903 return (String [])__ids.clone (); 904 } 905 906 public MofException _this() 907 { 908 return MofExceptionHelper.narrow( 909 super._this_object()); 910 } 911 912 public MofException _this(org.omg.CORBA.ORB orb) 913 { 914 return MofExceptionHelper.narrow( 915 super._this_object(orb)); 916 } 917 918 919 } | Popular Tags |