1 package org.omg.mof.Model; 2 3 4 10 11 12 public abstract class ClassPOA extends org.omg.PortableServer.Servant 14 implements org.omg.mof.Model.ClassOperations, org.omg.CORBA.portable.InvokeHandler 15 { 16 17 19 private static java.util.Hashtable _methods = new java.util.Hashtable (); 20 static 21 { 22 _methods.put ("is_singleton", new java.lang.Integer (0)); 23 _methods.put ("set_is_singleton", new java.lang.Integer (1)); 24 _methods.put ("_get_all_of_type_class", new java.lang.Integer (2)); 25 _methods.put ("_get_all_of_class_class", new java.lang.Integer (3)); 26 _methods.put ("create_class", new java.lang.Integer (4)); 27 _methods.put ("_get_all_of_type_classifier", new java.lang.Integer (5)); 28 _methods.put ("_get_all_of_type_generalizable_element", new java.lang.Integer (6)); 29 _methods.put ("_get_all_of_type_namespace", new java.lang.Integer (7)); 30 _methods.put ("_get_all_of_type_model_element", new java.lang.Integer (8)); 31 _methods.put ("ref_is_instance_of", new java.lang.Integer (9)); 32 _methods.put ("ref_create_instance", new java.lang.Integer (10)); 33 _methods.put ("ref_all_objects", new java.lang.Integer (11)); 34 _methods.put ("ref_set_value", new java.lang.Integer (12)); 35 _methods.put ("ref_value", new java.lang.Integer (13)); 36 _methods.put ("ref_unset_value", new java.lang.Integer (14)); 37 _methods.put ("ref_add_value", new java.lang.Integer (15)); 38 _methods.put ("ref_add_value_before", new java.lang.Integer (16)); 39 _methods.put ("ref_add_value_at", new java.lang.Integer (17)); 40 _methods.put ("ref_modify_value", new java.lang.Integer (18)); 41 _methods.put ("ref_modify_value_at", new java.lang.Integer (19)); 42 _methods.put ("ref_remove_value", new java.lang.Integer (20)); 43 _methods.put ("ref_remove_value_at", new java.lang.Integer (21)); 44 _methods.put ("ref_immediate_composite", new java.lang.Integer (22)); 45 _methods.put ("ref_outermost_composite", new java.lang.Integer (23)); 46 _methods.put ("ref_invoke_operation", new java.lang.Integer (24)); 47 _methods.put ("ref_mof_id", new java.lang.Integer (25)); 48 _methods.put ("ref_meta_object", new java.lang.Integer (26)); 49 _methods.put ("ref_itself", new java.lang.Integer (27)); 50 _methods.put ("ref_immediate_package", new java.lang.Integer (28)); 51 _methods.put ("ref_outermost_package", new java.lang.Integer (29)); 52 _methods.put ("ref_delete", new java.lang.Integer (30)); 53 _methods.put ("name", new java.lang.Integer (31)); 54 _methods.put ("set_name", new java.lang.Integer (32)); 55 _methods.put ("annotation", new java.lang.Integer (33)); 56 _methods.put ("set_annotation", new java.lang.Integer (34)); 57 _methods.put ("qualified_name", new java.lang.Integer (35)); 58 _methods.put ("container", new java.lang.Integer (36)); 59 _methods.put ("set_container", new java.lang.Integer (37)); 60 _methods.put ("unset_container", new java.lang.Integer (38)); 61 _methods.put ("required_elements", new java.lang.Integer (39)); 62 _methods.put ("set_required_elements", new java.lang.Integer (40)); 63 _methods.put ("add_required_elements", new java.lang.Integer (41)); 64 _methods.put ("modify_required_elements", new java.lang.Integer (42)); 65 _methods.put ("remove_required_elements", new java.lang.Integer (43)); 66 _methods.put ("constraints", new java.lang.Integer (44)); 67 _methods.put ("set_constraints", new java.lang.Integer (45)); 68 _methods.put ("add_constraints", new java.lang.Integer (46)); 69 _methods.put ("modify_constraints", new java.lang.Integer (47)); 70 _methods.put ("remove_constraints", new java.lang.Integer (48)); 71 _methods.put ("contents", new java.lang.Integer (49)); 72 _methods.put ("set_contents", new java.lang.Integer (50)); 73 _methods.put ("add_contents", new java.lang.Integer (51)); 74 _methods.put ("add_contents_before", new java.lang.Integer (52)); 75 _methods.put ("modify_contents", new java.lang.Integer (53)); 76 _methods.put ("remove_contents", new java.lang.Integer (54)); 77 _methods.put ("visibility", new java.lang.Integer (55)); 78 _methods.put ("set_visibility", new java.lang.Integer (56)); 79 _methods.put ("is_leaf", new java.lang.Integer (57)); 80 _methods.put ("set_is_leaf", new java.lang.Integer (58)); 81 _methods.put ("is_root", new java.lang.Integer (59)); 82 _methods.put ("set_is_root", new java.lang.Integer (60)); 83 _methods.put ("is_abstract", new java.lang.Integer (61)); 84 _methods.put ("set_is_abstract", new java.lang.Integer (62)); 85 _methods.put ("all_supertypes", new java.lang.Integer (63)); 86 _methods.put ("supertypes", new java.lang.Integer (64)); 87 _methods.put ("set_supertypes", new java.lang.Integer (65)); 88 _methods.put ("add_supertypes", new java.lang.Integer (66)); 89 _methods.put ("add_supertypes_before", new java.lang.Integer (67)); 90 _methods.put ("modify_supertypes", new java.lang.Integer (68)); 91 _methods.put ("remove_supertypes", new java.lang.Integer (69)); 92 } 93 94 public org.omg.CORBA.portable.OutputStream _invoke (String $method, 95 org.omg.CORBA.portable.InputStream in, 96 org.omg.CORBA.portable.ResponseHandler $rh) 97 { 98 org.omg.CORBA.portable.OutputStream out = null; 99 java.lang.Integer __method = (java.lang.Integer )_methods.get ($method); 100 if (__method == null) 101 throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE); 102 103 switch (__method.intValue ()) 104 { 105 106 case 0: { 109 try { 110 boolean $result = false; 111 $result = this.is_singleton (); 112 out = $rh.createReply(); 113 out.write_boolean ($result); 114 } catch (org.omg.mof.Reflective.MofError $ex) { 115 out = $rh.createExceptionReply (); 116 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 117 } 118 break; 119 } 120 121 case 1: { 123 try { 124 boolean new_value = in.read_boolean (); 125 this.set_is_singleton (new_value); 126 out = $rh.createReply(); 127 } catch (org.omg.mof.Reflective.MofError $ex) { 128 out = $rh.createExceptionReply (); 129 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 130 } 131 break; 132 } 133 134 case 2: { 136 org.omg.mof.Model.Class $result[] = null; 137 $result = this.all_of_type_class (); 138 out = $rh.createReply(); 139 org.omg.mof.Model.ClassSetHelper.write (out, $result); 140 break; 141 } 142 143 case 3: { 145 org.omg.mof.Model.Class $result[] = null; 146 $result = this.all_of_class_class (); 147 out = $rh.createReply(); 148 org.omg.mof.Model.ClassSetHelper.write (out, $result); 149 break; 150 } 151 152 case 4: { 154 try { 155 String name = in.read_string (); 156 String annotation = in.read_string (); 157 org.omg.mof.Model.VisibilityKind visibility = org.omg.mof.Model.VisibilityKindHelper.read (in); 158 boolean is_leaf = in.read_boolean (); 159 boolean is_root = in.read_boolean (); 160 boolean is_abstract = in.read_boolean (); 161 boolean is_singleton = in.read_boolean (); 162 org.omg.mof.Model.Class $result = null; 163 $result = this.create_class (name, annotation, visibility, is_leaf, is_root, is_abstract, is_singleton); 164 out = $rh.createReply(); 165 org.omg.mof.Model.ClassHelper.write (out, $result); 166 } catch (org.omg.mof.Reflective.MofError $ex) { 167 out = $rh.createExceptionReply (); 168 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 169 } 170 break; 171 } 172 173 case 5: { 175 org.omg.mof.Model.Classifier $result[] = null; 176 $result = this.all_of_type_classifier (); 177 out = $rh.createReply(); 178 org.omg.mof.Model.ClassifierSetHelper.write (out, $result); 179 break; 180 } 181 182 case 6: { 184 org.omg.mof.Model.GeneralizableElement $result[] = null; 185 $result = this.all_of_type_generalizable_element (); 186 out = $rh.createReply(); 187 org.omg.mof.Model.GeneralizableElementSetHelper.write (out, $result); 188 break; 189 } 190 191 case 7: { 193 org.omg.mof.Model.Namespace $result[] = null; 194 $result = this.all_of_type_namespace (); 195 out = $rh.createReply(); 196 org.omg.mof.Model.NamespaceSetHelper.write (out, $result); 197 break; 198 } 199 200 case 8: { 202 org.omg.mof.Model.ModelElement $result[] = null; 203 $result = this.all_of_type_model_element (); 204 out = $rh.createReply(); 205 org.omg.mof.Model.ModelElementSetHelper.write (out, $result); 206 break; 207 } 208 209 case 9: { 211 org.omg.mof.Reflective.RefObject some_class = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 212 boolean consider_subtypes = in.read_boolean (); 213 boolean $result = false; 214 $result = this.ref_is_instance_of (some_class, consider_subtypes); 215 out = $rh.createReply(); 216 out.write_boolean ($result); 217 break; 218 } 219 220 case 10: { 222 try { 223 org.omg.CORBA.Any args[] = org.omg.mof.Reflective.ValueTypeListHelper.read (in); 224 org.omg.mof.Reflective.RefObject $result = null; 225 $result = this.ref_create_instance (args); 226 out = $rh.createReply(); 227 org.omg.mof.Reflective.RefObjectHelper.write (out, $result); 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 11: { 237 boolean include_subtypes = in.read_boolean (); 238 org.omg.mof.Reflective.RefObject $result[] = null; 239 $result = this.ref_all_objects (include_subtypes); 240 out = $rh.createReply(); 241 org.omg.mof.Reflective.RefObjectSetHelper.write (out, $result); 242 break; 243 } 244 245 case 12: { 247 try { 248 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 249 org.omg.CORBA.Any new_value = org.omg.mof.Reflective._ValueTypeHelper.read (in); 250 this.ref_set_value (feature, new_value); 251 out = $rh.createReply(); 252 } catch (org.omg.mof.Reflective.MofError $ex) { 253 out = $rh.createExceptionReply (); 254 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 255 } 256 break; 257 } 258 259 case 13: { 261 try { 262 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 263 org.omg.CORBA.Any $result = null; 264 $result = this.ref_value (feature); 265 out = $rh.createReply(); 266 out.write_any ($result); 267 } catch (org.omg.mof.Reflective.NotSet $ex) { 268 out = $rh.createExceptionReply (); 269 org.omg.mof.Reflective.NotSetHelper.write (out, $ex); 270 } catch (org.omg.mof.Reflective.MofError $ex) { 271 out = $rh.createExceptionReply (); 272 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 273 } 274 break; 275 } 276 277 case 14: { 279 try { 280 this.ref_unset_value (); 281 out = $rh.createReply(); 282 } catch (org.omg.mof.Reflective.MofError $ex) { 283 out = $rh.createExceptionReply (); 284 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 285 } 286 break; 287 } 288 289 case 15: { 291 try { 292 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 293 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 294 this.ref_add_value (feature, new_element); 295 out = $rh.createReply(); 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 org.omg.CORBA.Any before_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 309 this.ref_add_value_before (feature, new_element, before_element); 310 out = $rh.createReply(); 311 } catch (org.omg.mof.Reflective.NotFound $ex) { 312 out = $rh.createExceptionReply (); 313 org.omg.mof.Reflective.NotFoundHelper.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 new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 326 int position = in.read_ulong (); 327 this.ref_add_value_at (feature, new_element, position); 328 out = $rh.createReply(); 329 } catch (org.omg.mof.Reflective.BadPosition $ex) { 330 out = $rh.createExceptionReply (); 331 org.omg.mof.Reflective.BadPositionHelper.write (out, $ex); 332 } catch (org.omg.mof.Reflective.MofError $ex) { 333 out = $rh.createExceptionReply (); 334 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 335 } 336 break; 337 } 338 339 case 18: { 341 try { 342 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 343 org.omg.CORBA.Any old_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 344 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 345 this.ref_modify_value (feature, old_element, new_element); 346 out = $rh.createReply(); 347 } catch (org.omg.mof.Reflective.NotFound $ex) { 348 out = $rh.createExceptionReply (); 349 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 350 } catch (org.omg.mof.Reflective.MofError $ex) { 351 out = $rh.createExceptionReply (); 352 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 353 } 354 break; 355 } 356 357 case 19: { 359 try { 360 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 361 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 362 int position = in.read_ulong (); 363 this.ref_modify_value_at (feature, new_element, position); 364 out = $rh.createReply(); 365 } catch (org.omg.mof.Reflective.BadPosition $ex) { 366 out = $rh.createExceptionReply (); 367 org.omg.mof.Reflective.BadPositionHelper.write (out, $ex); 368 } catch (org.omg.mof.Reflective.MofError $ex) { 369 out = $rh.createExceptionReply (); 370 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 371 } 372 break; 373 } 374 375 case 20: { 377 try { 378 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 379 org.omg.CORBA.Any existing_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 380 this.ref_remove_value (feature, existing_element); 381 out = $rh.createReply(); 382 } catch (org.omg.mof.Reflective.NotFound $ex) { 383 out = $rh.createExceptionReply (); 384 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 385 } catch (org.omg.mof.Reflective.MofError $ex) { 386 out = $rh.createExceptionReply (); 387 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 388 } 389 break; 390 } 391 392 case 21: { 394 try { 395 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 396 int position = in.read_ulong (); 397 this.ref_remove_value_at (feature, position); 398 out = $rh.createReply(); 399 } catch (org.omg.mof.Reflective.BadPosition $ex) { 400 out = $rh.createExceptionReply (); 401 org.omg.mof.Reflective.BadPositionHelper.write (out, $ex); 402 } catch (org.omg.mof.Reflective.MofError $ex) { 403 out = $rh.createExceptionReply (); 404 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 405 } 406 break; 407 } 408 409 case 22: { 411 org.omg.mof.Reflective.RefObject $result = null; 412 $result = this.ref_immediate_composite (); 413 out = $rh.createReply(); 414 org.omg.mof.Reflective.RefObjectHelper.write (out, $result); 415 break; 416 } 417 418 case 23: { 420 org.omg.mof.Reflective.RefObject $result = null; 421 $result = this.ref_outermost_composite (); 422 out = $rh.createReply(); 423 org.omg.mof.Reflective.RefObjectHelper.write (out, $result); 424 break; 425 } 426 427 case 24: { 429 try { 430 org.omg.mof.Reflective.RefObject requested_operation = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 431 org.omg.mof.Reflective.ValueTypeListHolder args = new org.omg.mof.Reflective.ValueTypeListHolder (); 432 args.value = org.omg.mof.Reflective.ValueTypeListHelper.read (in); 433 org.omg.CORBA.Any $result = null; 434 $result = this.ref_invoke_operation (requested_operation, args); 435 out = $rh.createReply(); 436 out.write_any ($result); 437 org.omg.mof.Reflective.ValueTypeListHelper.write (out, args.value); 438 } catch (org.omg.mof.Reflective.OtherException $ex) { 439 out = $rh.createExceptionReply (); 440 org.omg.mof.Reflective.OtherExceptionHelper.write (out, $ex); 441 } catch (org.omg.mof.Reflective.MofError $ex) { 442 out = $rh.createExceptionReply (); 443 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 444 } 445 break; 446 } 447 448 case 25: { 450 String $result = null; 451 $result = this.ref_mof_id (); 452 out = $rh.createReply(); 453 out.write_string ($result); 454 break; 455 } 456 457 case 26: { 459 org.omg.mof.Reflective.RefObject $result = null; 460 $result = this.ref_meta_object (); 461 out = $rh.createReply(); 462 org.omg.mof.Reflective.RefObjectHelper.write (out, $result); 463 break; 464 } 465 466 case 27: { 468 org.omg.mof.Reflective.RefBaseObject other_object = org.omg.mof.Reflective.RefBaseObjectHelper.read (in); 469 boolean $result = false; 470 $result = this.ref_itself (other_object); 471 out = $rh.createReply(); 472 out.write_boolean ($result); 473 break; 474 } 475 476 case 28: { 478 org.omg.mof.Reflective._RefPackage $result = null; 479 $result = this.ref_immediate_package (); 480 out = $rh.createReply(); 481 org.omg.mof.Reflective._RefPackageHelper.write (out, $result); 482 break; 483 } 484 485 case 29: { 487 org.omg.mof.Reflective._RefPackage $result = null; 488 $result = this.ref_outermost_package (); 489 out = $rh.createReply(); 490 org.omg.mof.Reflective._RefPackageHelper.write (out, $result); 491 break; 492 } 493 494 case 30: { 496 try { 497 this.ref_delete (); 498 out = $rh.createReply(); 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 507 case 31: { 510 try { 511 String $result = null; 512 $result = this.name (); 513 out = $rh.createReply(); 514 out.write_string ($result); 515 } catch (org.omg.mof.Reflective.MofError $ex) { 516 out = $rh.createExceptionReply (); 517 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 518 } 519 break; 520 } 521 522 case 32: { 524 try { 525 String new_value = in.read_string (); 526 this.set_name (new_value); 527 out = $rh.createReply(); 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 33: { 539 try { 540 String $result = null; 541 $result = this.annotation (); 542 out = $rh.createReply(); 543 out.write_string ($result); 544 } catch (org.omg.mof.Reflective.MofError $ex) { 545 out = $rh.createExceptionReply (); 546 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 547 } 548 break; 549 } 550 551 case 34: { 553 try { 554 String new_value = in.read_string (); 555 this.set_annotation (new_value); 556 out = $rh.createReply(); 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 String $result[] = null; 570 $result = this.qualified_name (); 571 out = $rh.createReply(); 572 org.omg.mof.Model.StringListHelper.write (out, $result); 573 } catch (org.omg.mof.Reflective.MofError $ex) { 574 out = $rh.createExceptionReply (); 575 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 576 } 577 break; 578 } 579 580 581 case 36: { 584 try { 585 org.omg.mof.Model.Namespace $result = null; 586 $result = this.container (); 587 out = $rh.createReply(); 588 org.omg.mof.Model.NamespaceHelper.write (out, $result); 589 } catch (org.omg.mof.Reflective.NotSet $ex) { 590 out = $rh.createExceptionReply (); 591 org.omg.mof.Reflective.NotSetHelper.write (out, $ex); 592 } catch (org.omg.mof.Reflective.MofError $ex) { 593 out = $rh.createExceptionReply (); 594 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 595 } 596 break; 597 } 598 599 case 37: { 601 try { 602 org.omg.mof.Model.Namespace new_value = org.omg.mof.Model.NamespaceHelper.read (in); 603 this.set_container (new_value); 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 case 38: { 614 try { 615 this.unset_container (); 616 out = $rh.createReply(); 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 625 case 39: { 628 try { 629 org.omg.mof.Model.ModelElement $result[] = null; 630 $result = this.required_elements (); 631 out = $rh.createReply(); 632 org.omg.mof.Model.ModelElementBagHelper.write (out, $result); 633 } catch (org.omg.mof.Reflective.MofError $ex) { 634 out = $rh.createExceptionReply (); 635 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 636 } 637 break; 638 } 639 640 case 40: { 642 try { 643 org.omg.mof.Model.ModelElement new_value[] = org.omg.mof.Model.ModelElementBagHelper.read (in); 644 this.set_required_elements (new_value); 645 out = $rh.createReply(); 646 } catch (org.omg.mof.Reflective.MofError $ex) { 647 out = $rh.createExceptionReply (); 648 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 649 } 650 break; 651 } 652 653 case 41: { 655 try { 656 org.omg.mof.Model.ModelElement new_element = org.omg.mof.Model.ModelElementHelper.read (in); 657 this.add_required_elements (new_element); 658 out = $rh.createReply(); 659 } catch (org.omg.mof.Reflective.MofError $ex) { 660 out = $rh.createExceptionReply (); 661 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 662 } 663 break; 664 } 665 666 case 42: { 668 try { 669 org.omg.mof.Model.ModelElement old_element = org.omg.mof.Model.ModelElementHelper.read (in); 670 org.omg.mof.Model.ModelElement new_element = org.omg.mof.Model.ModelElementHelper.read (in); 671 this.modify_required_elements (old_element, new_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 case 43: { 685 try { 686 org.omg.mof.Model.ModelElement old_element = org.omg.mof.Model.ModelElementHelper.read (in); 687 this.remove_required_elements (old_element); 688 out = $rh.createReply(); 689 } catch (org.omg.mof.Reflective.NotFound $ex) { 690 out = $rh.createExceptionReply (); 691 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 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 700 case 44: { 703 try { 704 org.omg.mof.Model.Constraint $result[] = null; 705 $result = this.constraints (); 706 out = $rh.createReply(); 707 org.omg.mof.Model.ConstraintBagHelper.write (out, $result); 708 } catch (org.omg.mof.Reflective.MofError $ex) { 709 out = $rh.createExceptionReply (); 710 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 711 } 712 break; 713 } 714 715 case 45: { 717 try { 718 org.omg.mof.Model.Constraint new_value[] = org.omg.mof.Model.ConstraintBagHelper.read (in); 719 this.set_constraints (new_value); 720 out = $rh.createReply(); 721 } catch (org.omg.mof.Reflective.MofError $ex) { 722 out = $rh.createExceptionReply (); 723 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 724 } 725 break; 726 } 727 728 case 46: { 730 try { 731 org.omg.mof.Model.Constraint new_element = org.omg.mof.Model.ConstraintHelper.read (in); 732 this.add_constraints (new_element); 733 out = $rh.createReply(); 734 } catch (org.omg.mof.Reflective.MofError $ex) { 735 out = $rh.createExceptionReply (); 736 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 737 } 738 break; 739 } 740 741 case 47: { 743 try { 744 org.omg.mof.Model.Constraint old_element = org.omg.mof.Model.ConstraintHelper.read (in); 745 org.omg.mof.Model.Constraint new_element = org.omg.mof.Model.ConstraintHelper.read (in); 746 this.modify_constraints (old_element, new_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 case 48: { 760 try { 761 org.omg.mof.Model.Constraint old_element = org.omg.mof.Model.ConstraintHelper.read (in); 762 this.remove_constraints (old_element); 763 out = $rh.createReply(); 764 } catch (org.omg.mof.Reflective.NotFound $ex) { 765 out = $rh.createExceptionReply (); 766 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 767 } catch (org.omg.mof.Reflective.MofError $ex) { 768 out = $rh.createExceptionReply (); 769 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 770 } 771 break; 772 } 773 774 775 case 49: { 778 try { 779 org.omg.mof.Model.ModelElement $result[] = null; 780 $result = this.contents (); 781 out = $rh.createReply(); 782 org.omg.mof.Model.ModelElementListHelper.write (out, $result); 783 } catch (org.omg.mof.Reflective.MofError $ex) { 784 out = $rh.createExceptionReply (); 785 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 786 } 787 break; 788 } 789 790 case 50: { 792 try { 793 org.omg.mof.Model.ModelElement new_value[] = org.omg.mof.Model.ModelElementListHelper.read (in); 794 this.set_contents (new_value); 795 out = $rh.createReply(); 796 } catch (org.omg.mof.Reflective.MofError $ex) { 797 out = $rh.createExceptionReply (); 798 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 799 } 800 break; 801 } 802 803 case 51: { 805 try { 806 org.omg.mof.Model.ModelElement new_element = org.omg.mof.Model.ModelElementHelper.read (in); 807 this.add_contents (new_element); 808 out = $rh.createReply(); 809 } catch (org.omg.mof.Reflective.MofError $ex) { 810 out = $rh.createExceptionReply (); 811 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 812 } 813 break; 814 } 815 816 case 52: { 818 try { 819 org.omg.mof.Model.ModelElement new_element = org.omg.mof.Model.ModelElementHelper.read (in); 820 org.omg.mof.Model.ModelElement before_element = org.omg.mof.Model.ModelElementHelper.read (in); 821 this.add_contents_before (new_element, before_element); 822 out = $rh.createReply(); 823 } catch (org.omg.mof.Reflective.NotFound $ex) { 824 out = $rh.createExceptionReply (); 825 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 826 } catch (org.omg.mof.Reflective.MofError $ex) { 827 out = $rh.createExceptionReply (); 828 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 829 } 830 break; 831 } 832 833 case 53: { 835 try { 836 org.omg.mof.Model.ModelElement old_element = org.omg.mof.Model.ModelElementHelper.read (in); 837 org.omg.mof.Model.ModelElement new_element = org.omg.mof.Model.ModelElementHelper.read (in); 838 this.modify_contents (old_element, new_element); 839 out = $rh.createReply(); 840 } catch (org.omg.mof.Reflective.NotFound $ex) { 841 out = $rh.createExceptionReply (); 842 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 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 case 54: { 852 try { 853 org.omg.mof.Model.ModelElement old_element = org.omg.mof.Model.ModelElementHelper.read (in); 854 this.remove_contents (old_element); 855 out = $rh.createReply(); 856 } catch (org.omg.mof.Reflective.NotFound $ex) { 857 out = $rh.createExceptionReply (); 858 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 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 867 case 55: { 870 try { 871 org.omg.mof.Model.VisibilityKind $result = null; 872 $result = this.visibility (); 873 out = $rh.createReply(); 874 org.omg.mof.Model.VisibilityKindHelper.write (out, $result); 875 } catch (org.omg.mof.Reflective.MofError $ex) { 876 out = $rh.createExceptionReply (); 877 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 878 } 879 break; 880 } 881 882 case 56: { 884 try { 885 org.omg.mof.Model.VisibilityKind new_value = org.omg.mof.Model.VisibilityKindHelper.read (in); 886 this.set_visibility (new_value); 887 out = $rh.createReply(); 888 } catch (org.omg.mof.Reflective.MofError $ex) { 889 out = $rh.createExceptionReply (); 890 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 891 } 892 break; 893 } 894 895 896 case 57: { 899 try { 900 boolean $result = false; 901 $result = this.is_leaf (); 902 out = $rh.createReply(); 903 out.write_boolean ($result); 904 } catch (org.omg.mof.Reflective.MofError $ex) { 905 out = $rh.createExceptionReply (); 906 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 907 } 908 break; 909 } 910 911 case 58: { 913 try { 914 boolean new_value = in.read_boolean (); 915 this.set_is_leaf (new_value); 916 out = $rh.createReply(); 917 } catch (org.omg.mof.Reflective.MofError $ex) { 918 out = $rh.createExceptionReply (); 919 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 920 } 921 break; 922 } 923 924 925 case 59: { 928 try { 929 boolean $result = false; 930 $result = this.is_root (); 931 out = $rh.createReply(); 932 out.write_boolean ($result); 933 } catch (org.omg.mof.Reflective.MofError $ex) { 934 out = $rh.createExceptionReply (); 935 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 936 } 937 break; 938 } 939 940 case 60: { 942 try { 943 boolean new_value = in.read_boolean (); 944 this.set_is_root (new_value); 945 out = $rh.createReply(); 946 } catch (org.omg.mof.Reflective.MofError $ex) { 947 out = $rh.createExceptionReply (); 948 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 949 } 950 break; 951 } 952 953 954 case 61: { 957 try { 958 boolean $result = false; 959 $result = this.is_abstract (); 960 out = $rh.createReply(); 961 out.write_boolean ($result); 962 } catch (org.omg.mof.Reflective.MofError $ex) { 963 out = $rh.createExceptionReply (); 964 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 965 } 966 break; 967 } 968 969 case 62: { 971 try { 972 boolean new_value = in.read_boolean (); 973 this.set_is_abstract (new_value); 974 out = $rh.createReply(); 975 } catch (org.omg.mof.Reflective.MofError $ex) { 976 out = $rh.createExceptionReply (); 977 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 978 } 979 break; 980 } 981 982 983 case 63: { 986 try { 987 org.omg.mof.Model.GeneralizableElement $result[] = null; 988 $result = this.all_supertypes (); 989 out = $rh.createReply(); 990 org.omg.mof.Model.GeneralizableElementUListHelper.write (out, $result); 991 } catch (org.omg.mof.Reflective.MofError $ex) { 992 out = $rh.createExceptionReply (); 993 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 994 } 995 break; 996 } 997 998 999 case 64: { 1002 try { 1003 org.omg.mof.Model.GeneralizableElement $result[] = null; 1004 $result = this.supertypes (); 1005 out = $rh.createReply(); 1006 org.omg.mof.Model.GeneralizableElementListHelper.write (out, $result); 1007 } catch (org.omg.mof.Reflective.MofError $ex) { 1008 out = $rh.createExceptionReply (); 1009 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 1010 } 1011 break; 1012 } 1013 1014 case 65: { 1016 try { 1017 org.omg.mof.Model.GeneralizableElement new_value[] = org.omg.mof.Model.GeneralizableElementListHelper.read (in); 1018 this.set_supertypes (new_value); 1019 out = $rh.createReply(); 1020 } catch (org.omg.mof.Reflective.MofError $ex) { 1021 out = $rh.createExceptionReply (); 1022 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 1023 } 1024 break; 1025 } 1026 1027 case 66: { 1029 try { 1030 org.omg.mof.Model.GeneralizableElement new_element = org.omg.mof.Model.GeneralizableElementHelper.read (in); 1031 this.add_supertypes (new_element); 1032 out = $rh.createReply(); 1033 } catch (org.omg.mof.Reflective.MofError $ex) { 1034 out = $rh.createExceptionReply (); 1035 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 1036 } 1037 break; 1038 } 1039 1040 case 67: { 1042 try { 1043 org.omg.mof.Model.GeneralizableElement new_element = org.omg.mof.Model.GeneralizableElementHelper.read (in); 1044 org.omg.mof.Model.GeneralizableElement before_element = org.omg.mof.Model.GeneralizableElementHelper.read (in); 1045 this.add_supertypes_before (new_element, before_element); 1046 out = $rh.createReply(); 1047 } catch (org.omg.mof.Reflective.NotFound $ex) { 1048 out = $rh.createExceptionReply (); 1049 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 1050 } catch (org.omg.mof.Reflective.MofError $ex) { 1051 out = $rh.createExceptionReply (); 1052 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 1053 } 1054 break; 1055 } 1056 1057 case 68: { 1059 try { 1060 org.omg.mof.Model.GeneralizableElement old_element = org.omg.mof.Model.GeneralizableElementHelper.read (in); 1061 org.omg.mof.Model.GeneralizableElement new_element = org.omg.mof.Model.GeneralizableElementHelper.read (in); 1062 this.modify_supertypes (old_element, new_element); 1063 out = $rh.createReply(); 1064 } catch (org.omg.mof.Reflective.NotFound $ex) { 1065 out = $rh.createExceptionReply (); 1066 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 1067 } catch (org.omg.mof.Reflective.MofError $ex) { 1068 out = $rh.createExceptionReply (); 1069 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 1070 } 1071 break; 1072 } 1073 1074 case 69: { 1076 try { 1077 org.omg.mof.Model.GeneralizableElement old_element = org.omg.mof.Model.GeneralizableElementHelper.read (in); 1078 this.remove_supertypes (old_element); 1079 out = $rh.createReply(); 1080 } catch (org.omg.mof.Reflective.NotFound $ex) { 1081 out = $rh.createExceptionReply (); 1082 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 1083 } catch (org.omg.mof.Reflective.MofError $ex) { 1084 out = $rh.createExceptionReply (); 1085 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 1086 } 1087 break; 1088 } 1089 1090 default: 1091 throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE); 1092 } 1093 1094 return out; 1095 } 1097 private static String [] __ids = { 1099 "IDL:org/omg/mof/Model/Class:1.0", 1100 "IDL:org/omg/mof/Model/ClassClass:1.0", 1101 "IDL:org/omg/mof/Model/ClassifierClass:1.0", 1102 "IDL:org/omg/mof/Model/GeneralizableElementClass:1.0", 1103 "IDL:org/omg/mof/Model/NamespaceClass:1.0", 1104 "IDL:org/omg/mof/Model/ModelElementClass:1.0", 1105 "IDL:org/omg/mof/Reflective/RefObject:1.0", 1106 "IDL:org/omg/mof/Reflective/RefBaseObject:1.0", 1107 "IDL:org/omg/mof/Model/ModelElement:1.0", 1108 "IDL:org/omg/mof/Model/Namespace:1.0", 1109 "IDL:org/omg/mof/Model/GeneralizableElement:1.0", 1110 "IDL:org/omg/mof/Model/Classifier:1.0"}; 1111 1112 public String [] _all_interfaces (org.omg.PortableServer.POA poa, byte[] objectId) 1113 { 1114 return (String [])__ids.clone (); 1115 } 1116 1117 public Class _this() 1118 { 1119 return ClassHelper.narrow( 1120 super._this_object()); 1121 } 1122 1123 public Class _this(org.omg.CORBA.ORB orb) 1124 { 1125 return ClassHelper.narrow( 1126 super._this_object(orb)); 1127 } 1128 1129 1130} | Popular Tags |