1 package org.omg.mof.Model; 2 3 4 10 11 12 public abstract class TagPOA extends org.omg.PortableServer.Servant 14 implements org.omg.mof.Model.TagOperations, 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 ("tag_id", new java.lang.Integer (0)); 23 _methods.put ("set_tag_id", new java.lang.Integer (1)); 24 _methods.put ("values", new java.lang.Integer (2)); 25 _methods.put ("set_values", new java.lang.Integer (3)); 26 _methods.put ("add_values", new java.lang.Integer (4)); 27 _methods.put ("modify_values", new java.lang.Integer (5)); 28 _methods.put ("remove_values", new java.lang.Integer (6)); 29 _methods.put ("elements", new java.lang.Integer (7)); 30 _methods.put ("set_elements", new java.lang.Integer (8)); 31 _methods.put ("add_elements", new java.lang.Integer (9)); 32 _methods.put ("modify_elements", new java.lang.Integer (10)); 33 _methods.put ("remove_elements", new java.lang.Integer (11)); 34 _methods.put ("_get_all_of_type_tag", new java.lang.Integer (12)); 35 _methods.put ("_get_all_of_class_tag", new java.lang.Integer (13)); 36 _methods.put ("create_tag", new java.lang.Integer (14)); 37 _methods.put ("_get_all_of_type_model_element", new java.lang.Integer (15)); 38 _methods.put ("ref_is_instance_of", new java.lang.Integer (16)); 39 _methods.put ("ref_create_instance", new java.lang.Integer (17)); 40 _methods.put ("ref_all_objects", new java.lang.Integer (18)); 41 _methods.put ("ref_set_value", new java.lang.Integer (19)); 42 _methods.put ("ref_value", new java.lang.Integer (20)); 43 _methods.put ("ref_unset_value", new java.lang.Integer (21)); 44 _methods.put ("ref_add_value", new java.lang.Integer (22)); 45 _methods.put ("ref_add_value_before", new java.lang.Integer (23)); 46 _methods.put ("ref_add_value_at", new java.lang.Integer (24)); 47 _methods.put ("ref_modify_value", new java.lang.Integer (25)); 48 _methods.put ("ref_modify_value_at", new java.lang.Integer (26)); 49 _methods.put ("ref_remove_value", new java.lang.Integer (27)); 50 _methods.put ("ref_remove_value_at", new java.lang.Integer (28)); 51 _methods.put ("ref_immediate_composite", new java.lang.Integer (29)); 52 _methods.put ("ref_outermost_composite", new java.lang.Integer (30)); 53 _methods.put ("ref_invoke_operation", new java.lang.Integer (31)); 54 _methods.put ("ref_mof_id", new java.lang.Integer (32)); 55 _methods.put ("ref_meta_object", new java.lang.Integer (33)); 56 _methods.put ("ref_itself", new java.lang.Integer (34)); 57 _methods.put ("ref_immediate_package", new java.lang.Integer (35)); 58 _methods.put ("ref_outermost_package", new java.lang.Integer (36)); 59 _methods.put ("ref_delete", new java.lang.Integer (37)); 60 _methods.put ("name", new java.lang.Integer (38)); 61 _methods.put ("set_name", new java.lang.Integer (39)); 62 _methods.put ("annotation", new java.lang.Integer (40)); 63 _methods.put ("set_annotation", new java.lang.Integer (41)); 64 _methods.put ("qualified_name", new java.lang.Integer (42)); 65 _methods.put ("container", new java.lang.Integer (43)); 66 _methods.put ("set_container", new java.lang.Integer (44)); 67 _methods.put ("unset_container", new java.lang.Integer (45)); 68 _methods.put ("required_elements", new java.lang.Integer (46)); 69 _methods.put ("set_required_elements", new java.lang.Integer (47)); 70 _methods.put ("add_required_elements", new java.lang.Integer (48)); 71 _methods.put ("modify_required_elements", new java.lang.Integer (49)); 72 _methods.put ("remove_required_elements", new java.lang.Integer (50)); 73 _methods.put ("constraints", new java.lang.Integer (51)); 74 _methods.put ("set_constraints", new java.lang.Integer (52)); 75 _methods.put ("add_constraints", new java.lang.Integer (53)); 76 _methods.put ("modify_constraints", new java.lang.Integer (54)); 77 _methods.put ("remove_constraints", 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 String $result = null; 97 $result = this.tag_id (); 98 out = $rh.createReply(); 99 out.write_string ($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 String new_value = in.read_string (); 111 this.set_tag_id (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.CORBA.Any $result[] = null; 126 $result = this.values (); 127 out = $rh.createReply(); 128 org.omg.mof.Model.AnyBagHelper.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.CORBA.Any new_value[] = org.omg.mof.Model.AnyBagHelper.read (in); 140 this.set_values (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 case 4: { 151 try { 152 org.omg.CORBA.Any new_element = in.read_any (); 153 this.add_values (new_element); 154 out = $rh.createReply(); 155 } catch (org.omg.mof.Reflective.MofError $ex) { 156 out = $rh.createExceptionReply (); 157 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 158 } 159 break; 160 } 161 162 case 5: { 164 try { 165 org.omg.CORBA.Any old_element = in.read_any (); 166 org.omg.CORBA.Any new_element = in.read_any (); 167 this.modify_values (old_element, new_element); 168 out = $rh.createReply(); 169 } catch (org.omg.mof.Reflective.NotFound $ex) { 170 out = $rh.createExceptionReply (); 171 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 172 } catch (org.omg.mof.Reflective.MofError $ex) { 173 out = $rh.createExceptionReply (); 174 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 175 } 176 break; 177 } 178 179 case 6: { 181 try { 182 org.omg.CORBA.Any old_element = in.read_any (); 183 this.remove_values (old_element); 184 out = $rh.createReply(); 185 } catch (org.omg.mof.Reflective.NotFound $ex) { 186 out = $rh.createExceptionReply (); 187 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 188 } catch (org.omg.mof.Reflective.MofError $ex) { 189 out = $rh.createExceptionReply (); 190 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 191 } 192 break; 193 } 194 195 196 case 7: { 199 try { 200 org.omg.mof.Model.ModelElement $result[] = null; 201 $result = this.elements (); 202 out = $rh.createReply(); 203 org.omg.mof.Model.ModelElementBagHelper.write (out, $result); 204 } catch (org.omg.mof.Reflective.MofError $ex) { 205 out = $rh.createExceptionReply (); 206 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 207 } 208 break; 209 } 210 211 case 8: { 213 try { 214 org.omg.mof.Model.ModelElement new_value[] = org.omg.mof.Model.ModelElementBagHelper.read (in); 215 this.set_elements (new_value); 216 out = $rh.createReply(); 217 } catch (org.omg.mof.Reflective.MofError $ex) { 218 out = $rh.createExceptionReply (); 219 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 220 } 221 break; 222 } 223 224 case 9: { 226 try { 227 org.omg.mof.Model.ModelElement new_element = org.omg.mof.Model.ModelElementHelper.read (in); 228 this.add_elements (new_element); 229 out = $rh.createReply(); 230 } catch (org.omg.mof.Reflective.MofError $ex) { 231 out = $rh.createExceptionReply (); 232 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 233 } 234 break; 235 } 236 237 case 10: { 239 try { 240 org.omg.mof.Model.ModelElement old_element = org.omg.mof.Model.ModelElementHelper.read (in); 241 org.omg.mof.Model.ModelElement new_element = org.omg.mof.Model.ModelElementHelper.read (in); 242 this.modify_elements (old_element, new_element); 243 out = $rh.createReply(); 244 } catch (org.omg.mof.Reflective.NotFound $ex) { 245 out = $rh.createExceptionReply (); 246 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 247 } catch (org.omg.mof.Reflective.MofError $ex) { 248 out = $rh.createExceptionReply (); 249 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 250 } 251 break; 252 } 253 254 case 11: { 256 try { 257 org.omg.mof.Model.ModelElement old_element = org.omg.mof.Model.ModelElementHelper.read (in); 258 this.remove_elements (old_element); 259 out = $rh.createReply(); 260 } catch (org.omg.mof.Reflective.NotFound $ex) { 261 out = $rh.createExceptionReply (); 262 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 263 } catch (org.omg.mof.Reflective.MofError $ex) { 264 out = $rh.createExceptionReply (); 265 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 266 } 267 break; 268 } 269 270 case 12: { 272 org.omg.mof.Model.Tag $result[] = null; 273 $result = this.all_of_type_tag (); 274 out = $rh.createReply(); 275 org.omg.mof.Model.TagSetHelper.write (out, $result); 276 break; 277 } 278 279 case 13: { 281 org.omg.mof.Model.Tag $result[] = null; 282 $result = this.all_of_class_tag (); 283 out = $rh.createReply(); 284 org.omg.mof.Model.TagSetHelper.write (out, $result); 285 break; 286 } 287 288 case 14: { 290 try { 291 String name = in.read_string (); 292 String annotation = in.read_string (); 293 String tag_id = in.read_string (); 294 org.omg.CORBA.Any values[] = org.omg.mof.Model.AnyBagHelper.read (in); 295 org.omg.mof.Model.Tag $result = null; 296 $result = this.create_tag (name, annotation, tag_id, values); 297 out = $rh.createReply(); 298 org.omg.mof.Model.TagHelper.write (out, $result); 299 } catch (org.omg.mof.Reflective.MofError $ex) { 300 out = $rh.createExceptionReply (); 301 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 302 } 303 break; 304 } 305 306 case 15: { 308 org.omg.mof.Model.ModelElement $result[] = null; 309 $result = this.all_of_type_model_element (); 310 out = $rh.createReply(); 311 org.omg.mof.Model.ModelElementSetHelper.write (out, $result); 312 break; 313 } 314 315 case 16: { 317 org.omg.mof.Reflective.RefObject some_class = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 318 boolean consider_subtypes = in.read_boolean (); 319 boolean $result = false; 320 $result = this.ref_is_instance_of (some_class, consider_subtypes); 321 out = $rh.createReply(); 322 out.write_boolean ($result); 323 break; 324 } 325 326 case 17: { 328 try { 329 org.omg.CORBA.Any args[] = org.omg.mof.Reflective.ValueTypeListHelper.read (in); 330 org.omg.mof.Reflective.RefObject $result = null; 331 $result = this.ref_create_instance (args); 332 out = $rh.createReply(); 333 org.omg.mof.Reflective.RefObjectHelper.write (out, $result); 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 boolean include_subtypes = in.read_boolean (); 344 org.omg.mof.Reflective.RefObject $result[] = null; 345 $result = this.ref_all_objects (include_subtypes); 346 out = $rh.createReply(); 347 org.omg.mof.Reflective.RefObjectSetHelper.write (out, $result); 348 break; 349 } 350 351 case 19: { 353 try { 354 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 355 org.omg.CORBA.Any new_value = org.omg.mof.Reflective._ValueTypeHelper.read (in); 356 this.ref_set_value (feature, new_value); 357 out = $rh.createReply(); 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 $result = null; 370 $result = this.ref_value (feature); 371 out = $rh.createReply(); 372 out.write_any ($result); 373 } catch (org.omg.mof.Reflective.NotSet $ex) { 374 out = $rh.createExceptionReply (); 375 org.omg.mof.Reflective.NotSetHelper.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 this.ref_unset_value (); 387 out = $rh.createReply(); 388 } catch (org.omg.mof.Reflective.MofError $ex) { 389 out = $rh.createExceptionReply (); 390 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 391 } 392 break; 393 } 394 395 case 22: { 397 try { 398 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 399 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 400 this.ref_add_value (feature, new_element); 401 out = $rh.createReply(); 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 new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 414 org.omg.CORBA.Any before_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 415 this.ref_add_value_before (feature, new_element, before_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_add_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 old_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 450 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 451 this.ref_modify_value (feature, old_element, new_element); 452 out = $rh.createReply(); 453 } catch (org.omg.mof.Reflective.NotFound $ex) { 454 out = $rh.createExceptionReply (); 455 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 456 } catch (org.omg.mof.Reflective.MofError $ex) { 457 out = $rh.createExceptionReply (); 458 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 459 } 460 break; 461 } 462 463 case 26: { 465 try { 466 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 467 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 468 int position = in.read_ulong (); 469 this.ref_modify_value_at (feature, new_element, position); 470 out = $rh.createReply(); 471 } catch (org.omg.mof.Reflective.BadPosition $ex) { 472 out = $rh.createExceptionReply (); 473 org.omg.mof.Reflective.BadPositionHelper.write (out, $ex); 474 } catch (org.omg.mof.Reflective.MofError $ex) { 475 out = $rh.createExceptionReply (); 476 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 477 } 478 break; 479 } 480 481 case 27: { 483 try { 484 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 485 org.omg.CORBA.Any existing_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 486 this.ref_remove_value (feature, existing_element); 487 out = $rh.createReply(); 488 } catch (org.omg.mof.Reflective.NotFound $ex) { 489 out = $rh.createExceptionReply (); 490 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 491 } catch (org.omg.mof.Reflective.MofError $ex) { 492 out = $rh.createExceptionReply (); 493 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 494 } 495 break; 496 } 497 498 case 28: { 500 try { 501 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 502 int position = in.read_ulong (); 503 this.ref_remove_value_at (feature, position); 504 out = $rh.createReply(); 505 } catch (org.omg.mof.Reflective.BadPosition $ex) { 506 out = $rh.createExceptionReply (); 507 org.omg.mof.Reflective.BadPositionHelper.write (out, $ex); 508 } catch (org.omg.mof.Reflective.MofError $ex) { 509 out = $rh.createExceptionReply (); 510 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 511 } 512 break; 513 } 514 515 case 29: { 517 org.omg.mof.Reflective.RefObject $result = null; 518 $result = this.ref_immediate_composite (); 519 out = $rh.createReply(); 520 org.omg.mof.Reflective.RefObjectHelper.write (out, $result); 521 break; 522 } 523 524 case 30: { 526 org.omg.mof.Reflective.RefObject $result = null; 527 $result = this.ref_outermost_composite (); 528 out = $rh.createReply(); 529 org.omg.mof.Reflective.RefObjectHelper.write (out, $result); 530 break; 531 } 532 533 case 31: { 535 try { 536 org.omg.mof.Reflective.RefObject requested_operation = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 537 org.omg.mof.Reflective.ValueTypeListHolder args = new org.omg.mof.Reflective.ValueTypeListHolder (); 538 args.value = org.omg.mof.Reflective.ValueTypeListHelper.read (in); 539 org.omg.CORBA.Any $result = null; 540 $result = this.ref_invoke_operation (requested_operation, args); 541 out = $rh.createReply(); 542 out.write_any ($result); 543 org.omg.mof.Reflective.ValueTypeListHelper.write (out, args.value); 544 } catch (org.omg.mof.Reflective.OtherException $ex) { 545 out = $rh.createExceptionReply (); 546 org.omg.mof.Reflective.OtherExceptionHelper.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 32: { 556 String $result = null; 557 $result = this.ref_mof_id (); 558 out = $rh.createReply(); 559 out.write_string ($result); 560 break; 561 } 562 563 case 33: { 565 org.omg.mof.Reflective.RefObject $result = null; 566 $result = this.ref_meta_object (); 567 out = $rh.createReply(); 568 org.omg.mof.Reflective.RefObjectHelper.write (out, $result); 569 break; 570 } 571 572 case 34: { 574 org.omg.mof.Reflective.RefBaseObject other_object = org.omg.mof.Reflective.RefBaseObjectHelper.read (in); 575 boolean $result = false; 576 $result = this.ref_itself (other_object); 577 out = $rh.createReply(); 578 out.write_boolean ($result); 579 break; 580 } 581 582 case 35: { 584 org.omg.mof.Reflective._RefPackage $result = null; 585 $result = this.ref_immediate_package (); 586 out = $rh.createReply(); 587 org.omg.mof.Reflective._RefPackageHelper.write (out, $result); 588 break; 589 } 590 591 case 36: { 593 org.omg.mof.Reflective._RefPackage $result = null; 594 $result = this.ref_outermost_package (); 595 out = $rh.createReply(); 596 org.omg.mof.Reflective._RefPackageHelper.write (out, $result); 597 break; 598 } 599 600 case 37: { 602 try { 603 this.ref_delete (); 604 out = $rh.createReply(); 605 } catch (org.omg.mof.Reflective.MofError $ex) { 606 out = $rh.createExceptionReply (); 607 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 608 } 609 break; 610 } 611 612 613 case 38: { 616 try { 617 String $result = null; 618 $result = this.name (); 619 out = $rh.createReply(); 620 out.write_string ($result); 621 } catch (org.omg.mof.Reflective.MofError $ex) { 622 out = $rh.createExceptionReply (); 623 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 624 } 625 break; 626 } 627 628 case 39: { 630 try { 631 String new_value = in.read_string (); 632 this.set_name (new_value); 633 out = $rh.createReply(); 634 } catch (org.omg.mof.Reflective.MofError $ex) { 635 out = $rh.createExceptionReply (); 636 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 637 } 638 break; 639 } 640 641 642 case 40: { 645 try { 646 String $result = null; 647 $result = this.annotation (); 648 out = $rh.createReply(); 649 out.write_string ($result); 650 } catch (org.omg.mof.Reflective.MofError $ex) { 651 out = $rh.createExceptionReply (); 652 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 653 } 654 break; 655 } 656 657 case 41: { 659 try { 660 String new_value = in.read_string (); 661 this.set_annotation (new_value); 662 out = $rh.createReply(); 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 671 case 42: { 674 try { 675 String $result[] = null; 676 $result = this.qualified_name (); 677 out = $rh.createReply(); 678 org.omg.mof.Model.StringListHelper.write (out, $result); 679 } catch (org.omg.mof.Reflective.MofError $ex) { 680 out = $rh.createExceptionReply (); 681 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 682 } 683 break; 684 } 685 686 687 case 43: { 690 try { 691 org.omg.mof.Model.Namespace $result = null; 692 $result = this.container (); 693 out = $rh.createReply(); 694 org.omg.mof.Model.NamespaceHelper.write (out, $result); 695 } catch (org.omg.mof.Reflective.NotSet $ex) { 696 out = $rh.createExceptionReply (); 697 org.omg.mof.Reflective.NotSetHelper.write (out, $ex); 698 } catch (org.omg.mof.Reflective.MofError $ex) { 699 out = $rh.createExceptionReply (); 700 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 701 } 702 break; 703 } 704 705 case 44: { 707 try { 708 org.omg.mof.Model.Namespace new_value = org.omg.mof.Model.NamespaceHelper.read (in); 709 this.set_container (new_value); 710 out = $rh.createReply(); 711 } catch (org.omg.mof.Reflective.MofError $ex) { 712 out = $rh.createExceptionReply (); 713 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 714 } 715 break; 716 } 717 718 case 45: { 720 try { 721 this.unset_container (); 722 out = $rh.createReply(); 723 } catch (org.omg.mof.Reflective.MofError $ex) { 724 out = $rh.createExceptionReply (); 725 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 726 } 727 break; 728 } 729 730 731 case 46: { 734 try { 735 org.omg.mof.Model.ModelElement $result[] = null; 736 $result = this.required_elements (); 737 out = $rh.createReply(); 738 org.omg.mof.Model.ModelElementBagHelper.write (out, $result); 739 } catch (org.omg.mof.Reflective.MofError $ex) { 740 out = $rh.createExceptionReply (); 741 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 742 } 743 break; 744 } 745 746 case 47: { 748 try { 749 org.omg.mof.Model.ModelElement new_value[] = org.omg.mof.Model.ModelElementBagHelper.read (in); 750 this.set_required_elements (new_value); 751 out = $rh.createReply(); 752 } catch (org.omg.mof.Reflective.MofError $ex) { 753 out = $rh.createExceptionReply (); 754 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 755 } 756 break; 757 } 758 759 case 48: { 761 try { 762 org.omg.mof.Model.ModelElement new_element = org.omg.mof.Model.ModelElementHelper.read (in); 763 this.add_required_elements (new_element); 764 out = $rh.createReply(); 765 } catch (org.omg.mof.Reflective.MofError $ex) { 766 out = $rh.createExceptionReply (); 767 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 768 } 769 break; 770 } 771 772 case 49: { 774 try { 775 org.omg.mof.Model.ModelElement old_element = org.omg.mof.Model.ModelElementHelper.read (in); 776 org.omg.mof.Model.ModelElement new_element = org.omg.mof.Model.ModelElementHelper.read (in); 777 this.modify_required_elements (old_element, new_element); 778 out = $rh.createReply(); 779 } catch (org.omg.mof.Reflective.NotFound $ex) { 780 out = $rh.createExceptionReply (); 781 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 782 } catch (org.omg.mof.Reflective.MofError $ex) { 783 out = $rh.createExceptionReply (); 784 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 785 } 786 break; 787 } 788 789 case 50: { 791 try { 792 org.omg.mof.Model.ModelElement old_element = org.omg.mof.Model.ModelElementHelper.read (in); 793 this.remove_required_elements (old_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 806 case 51: { 809 try { 810 org.omg.mof.Model.Constraint $result[] = null; 811 $result = this.constraints (); 812 out = $rh.createReply(); 813 org.omg.mof.Model.ConstraintBagHelper.write (out, $result); 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 case 52: { 823 try { 824 org.omg.mof.Model.Constraint new_value[] = org.omg.mof.Model.ConstraintBagHelper.read (in); 825 this.set_constraints (new_value); 826 out = $rh.createReply(); 827 } catch (org.omg.mof.Reflective.MofError $ex) { 828 out = $rh.createExceptionReply (); 829 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 830 } 831 break; 832 } 833 834 case 53: { 836 try { 837 org.omg.mof.Model.Constraint new_element = org.omg.mof.Model.ConstraintHelper.read (in); 838 this.add_constraints (new_element); 839 out = $rh.createReply(); 840 } catch (org.omg.mof.Reflective.MofError $ex) { 841 out = $rh.createExceptionReply (); 842 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 843 } 844 break; 845 } 846 847 case 54: { 849 try { 850 org.omg.mof.Model.Constraint old_element = org.omg.mof.Model.ConstraintHelper.read (in); 851 org.omg.mof.Model.Constraint new_element = org.omg.mof.Model.ConstraintHelper.read (in); 852 this.modify_constraints (old_element, new_element); 853 out = $rh.createReply(); 854 } catch (org.omg.mof.Reflective.NotFound $ex) { 855 out = $rh.createExceptionReply (); 856 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 857 } catch (org.omg.mof.Reflective.MofError $ex) { 858 out = $rh.createExceptionReply (); 859 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 860 } 861 break; 862 } 863 864 case 55: { 866 try { 867 org.omg.mof.Model.Constraint old_element = org.omg.mof.Model.ConstraintHelper.read (in); 868 this.remove_constraints (old_element); 869 out = $rh.createReply(); 870 } catch (org.omg.mof.Reflective.NotFound $ex) { 871 out = $rh.createExceptionReply (); 872 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 873 } catch (org.omg.mof.Reflective.MofError $ex) { 874 out = $rh.createExceptionReply (); 875 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 876 } 877 break; 878 } 879 880 default: 881 throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE); 882 } 883 884 return out; 885 } 887 private static String [] __ids = { 889 "IDL:org/omg/mof/Model/Tag:1.0", 890 "IDL:org/omg/mof/Model/TagClass:1.0", 891 "IDL:org/omg/mof/Model/ModelElementClass:1.0", 892 "IDL:org/omg/mof/Reflective/RefObject:1.0", 893 "IDL:org/omg/mof/Reflective/RefBaseObject:1.0", 894 "IDL:org/omg/mof/Model/ModelElement:1.0"}; 895 896 public String [] _all_interfaces (org.omg.PortableServer.POA poa, byte[] objectId) 897 { 898 return (String [])__ids.clone (); 899 } 900 901 public Tag _this() 902 { 903 return TagHelper.narrow( 904 super._this_object()); 905 } 906 907 public Tag _this(org.omg.CORBA.ORB orb) 908 { 909 return TagHelper.narrow( 910 super._this_object(orb)); 911 } 912 913 914 } | Popular Tags |