1 package org.omg.mof.Model; 2 3 4 10 11 12 public abstract class MofAttributePOA extends org.omg.PortableServer.Servant 14 implements org.omg.mof.Model.MofAttributeOperations, 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_derived", new java.lang.Integer (0)); 23 _methods.put ("set_is_derived", new java.lang.Integer (1)); 24 _methods.put ("_get_all_of_type_mof_attribute", new java.lang.Integer (2)); 25 _methods.put ("_get_all_of_class_mof_attribute", new java.lang.Integer (3)); 26 _methods.put ("create_mof_attribute", new java.lang.Integer (4)); 27 _methods.put ("_get_all_of_type_structural_feature", new java.lang.Integer (5)); 28 _methods.put ("_get_all_of_type_typed_element", new java.lang.Integer (6)); 29 _methods.put ("_get_all_of_type_model_element", new java.lang.Integer (7)); 30 _methods.put ("ref_is_instance_of", new java.lang.Integer (8)); 31 _methods.put ("ref_create_instance", new java.lang.Integer (9)); 32 _methods.put ("ref_all_objects", new java.lang.Integer (10)); 33 _methods.put ("ref_set_value", new java.lang.Integer (11)); 34 _methods.put ("ref_value", new java.lang.Integer (12)); 35 _methods.put ("ref_unset_value", new java.lang.Integer (13)); 36 _methods.put ("ref_add_value", new java.lang.Integer (14)); 37 _methods.put ("ref_add_value_before", new java.lang.Integer (15)); 38 _methods.put ("ref_add_value_at", new java.lang.Integer (16)); 39 _methods.put ("ref_modify_value", new java.lang.Integer (17)); 40 _methods.put ("ref_modify_value_at", new java.lang.Integer (18)); 41 _methods.put ("ref_remove_value", new java.lang.Integer (19)); 42 _methods.put ("ref_remove_value_at", new java.lang.Integer (20)); 43 _methods.put ("ref_immediate_composite", new java.lang.Integer (21)); 44 _methods.put ("ref_outermost_composite", new java.lang.Integer (22)); 45 _methods.put ("ref_invoke_operation", new java.lang.Integer (23)); 46 _methods.put ("ref_mof_id", new java.lang.Integer (24)); 47 _methods.put ("ref_meta_object", new java.lang.Integer (25)); 48 _methods.put ("ref_itself", new java.lang.Integer (26)); 49 _methods.put ("ref_immediate_package", new java.lang.Integer (27)); 50 _methods.put ("ref_outermost_package", new java.lang.Integer (28)); 51 _methods.put ("ref_delete", new java.lang.Integer (29)); 52 _methods.put ("_get_all_of_type_feature", 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 ("type", new java.lang.Integer (49)); 72 _methods.put ("set_type", new java.lang.Integer (50)); 73 _methods.put ("visibility", new java.lang.Integer (51)); 74 _methods.put ("set_visibility", new java.lang.Integer (52)); 75 _methods.put ("scope", new java.lang.Integer (53)); 76 _methods.put ("set_scope", new java.lang.Integer (54)); 77 _methods.put ("multiplicity", new java.lang.Integer (55)); 78 _methods.put ("set_multiplicity", new java.lang.Integer (56)); 79 _methods.put ("is_changeable", new java.lang.Integer (57)); 80 _methods.put ("set_is_changeable", new java.lang.Integer (58)); 81 } 82 83 public org.omg.CORBA.portable.OutputStream _invoke (String $method, 84 org.omg.CORBA.portable.InputStream in, 85 org.omg.CORBA.portable.ResponseHandler $rh) 86 { 87 org.omg.CORBA.portable.OutputStream out = null; 88 java.lang.Integer __method = (java.lang.Integer )_methods.get ($method); 89 if (__method == null) 90 throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE); 91 92 switch (__method.intValue ()) 93 { 94 95 case 0: { 98 try { 99 boolean $result = false; 100 $result = this.is_derived (); 101 out = $rh.createReply(); 102 out.write_boolean ($result); 103 } catch (org.omg.mof.Reflective.MofError $ex) { 104 out = $rh.createExceptionReply (); 105 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 106 } 107 break; 108 } 109 110 case 1: { 112 try { 113 boolean new_value = in.read_boolean (); 114 this.set_is_derived (new_value); 115 out = $rh.createReply(); 116 } catch (org.omg.mof.Reflective.MofError $ex) { 117 out = $rh.createExceptionReply (); 118 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 119 } 120 break; 121 } 122 123 case 2: { 125 org.omg.mof.Model.MofAttribute $result[] = null; 126 $result = this.all_of_type_mof_attribute (); 127 out = $rh.createReply(); 128 org.omg.mof.Model.MofAttributeSetHelper.write (out, $result); 129 break; 130 } 131 132 case 3: { 134 org.omg.mof.Model.MofAttribute $result[] = null; 135 $result = this.all_of_class_mof_attribute (); 136 out = $rh.createReply(); 137 org.omg.mof.Model.MofAttributeSetHelper.write (out, $result); 138 break; 139 } 140 141 case 4: { 143 try { 144 String name = in.read_string (); 145 String annotation = in.read_string (); 146 org.omg.mof.Model.VisibilityKind visibility = org.omg.mof.Model.VisibilityKindHelper.read (in); 147 org.omg.mof.Model.ScopeKind scope = org.omg.mof.Model.ScopeKindHelper.read (in); 148 org.omg.mof.Model.MultiplicityType multiplicity = org.omg.mof.Model.MultiplicityTypeHelper.read (in); 149 boolean is_changeable = in.read_boolean (); 150 boolean is_derived = in.read_boolean (); 151 org.omg.mof.Model.MofAttribute $result = null; 152 $result = this.create_mof_attribute (name, annotation, visibility, scope, multiplicity, is_changeable, is_derived); 153 out = $rh.createReply(); 154 org.omg.mof.Model.MofAttributeHelper.write (out, $result); 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 org.omg.mof.Model.StructuralFeature $result[] = null; 165 $result = this.all_of_type_structural_feature (); 166 out = $rh.createReply(); 167 org.omg.mof.Model.StructuralFeatureSetHelper.write (out, $result); 168 break; 169 } 170 171 case 6: { 173 org.omg.mof.Model.TypedElement $result[] = null; 174 $result = this.all_of_type_typed_element (); 175 out = $rh.createReply(); 176 org.omg.mof.Model.TypedElementSetHelper.write (out, $result); 177 break; 178 } 179 180 case 7: { 182 org.omg.mof.Model.ModelElement $result[] = null; 183 $result = this.all_of_type_model_element (); 184 out = $rh.createReply(); 185 org.omg.mof.Model.ModelElementSetHelper.write (out, $result); 186 break; 187 } 188 189 case 8: { 191 org.omg.mof.Reflective.RefObject some_class = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 192 boolean consider_subtypes = in.read_boolean (); 193 boolean $result = false; 194 $result = this.ref_is_instance_of (some_class, consider_subtypes); 195 out = $rh.createReply(); 196 out.write_boolean ($result); 197 break; 198 } 199 200 case 9: { 202 try { 203 org.omg.CORBA.Any args[] = org.omg.mof.Reflective.ValueTypeListHelper.read (in); 204 org.omg.mof.Reflective.RefObject $result = null; 205 $result = this.ref_create_instance (args); 206 out = $rh.createReply(); 207 org.omg.mof.Reflective.RefObjectHelper.write (out, $result); 208 } catch (org.omg.mof.Reflective.MofError $ex) { 209 out = $rh.createExceptionReply (); 210 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 211 } 212 break; 213 } 214 215 case 10: { 217 boolean include_subtypes = in.read_boolean (); 218 org.omg.mof.Reflective.RefObject $result[] = null; 219 $result = this.ref_all_objects (include_subtypes); 220 out = $rh.createReply(); 221 org.omg.mof.Reflective.RefObjectSetHelper.write (out, $result); 222 break; 223 } 224 225 case 11: { 227 try { 228 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 229 org.omg.CORBA.Any new_value = org.omg.mof.Reflective._ValueTypeHelper.read (in); 230 this.ref_set_value (feature, new_value); 231 out = $rh.createReply(); 232 } catch (org.omg.mof.Reflective.MofError $ex) { 233 out = $rh.createExceptionReply (); 234 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 235 } 236 break; 237 } 238 239 case 12: { 241 try { 242 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 243 org.omg.CORBA.Any $result = null; 244 $result = this.ref_value (feature); 245 out = $rh.createReply(); 246 out.write_any ($result); 247 } catch (org.omg.mof.Reflective.NotSet $ex) { 248 out = $rh.createExceptionReply (); 249 org.omg.mof.Reflective.NotSetHelper.write (out, $ex); 250 } catch (org.omg.mof.Reflective.MofError $ex) { 251 out = $rh.createExceptionReply (); 252 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 253 } 254 break; 255 } 256 257 case 13: { 259 try { 260 this.ref_unset_value (); 261 out = $rh.createReply(); 262 } catch (org.omg.mof.Reflective.MofError $ex) { 263 out = $rh.createExceptionReply (); 264 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 265 } 266 break; 267 } 268 269 case 14: { 271 try { 272 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 273 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 274 this.ref_add_value (feature, new_element); 275 out = $rh.createReply(); 276 } catch (org.omg.mof.Reflective.MofError $ex) { 277 out = $rh.createExceptionReply (); 278 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 279 } 280 break; 281 } 282 283 case 15: { 285 try { 286 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 287 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 288 org.omg.CORBA.Any before_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 289 this.ref_add_value_before (feature, new_element, before_element); 290 out = $rh.createReply(); 291 } catch (org.omg.mof.Reflective.NotFound $ex) { 292 out = $rh.createExceptionReply (); 293 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 294 } catch (org.omg.mof.Reflective.MofError $ex) { 295 out = $rh.createExceptionReply (); 296 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 297 } 298 break; 299 } 300 301 case 16: { 303 try { 304 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 305 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 306 int position = in.read_ulong (); 307 this.ref_add_value_at (feature, new_element, position); 308 out = $rh.createReply(); 309 } catch (org.omg.mof.Reflective.BadPosition $ex) { 310 out = $rh.createExceptionReply (); 311 org.omg.mof.Reflective.BadPositionHelper.write (out, $ex); 312 } catch (org.omg.mof.Reflective.MofError $ex) { 313 out = $rh.createExceptionReply (); 314 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 315 } 316 break; 317 } 318 319 case 17: { 321 try { 322 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 323 org.omg.CORBA.Any old_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 324 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 325 this.ref_modify_value (feature, old_element, new_element); 326 out = $rh.createReply(); 327 } catch (org.omg.mof.Reflective.NotFound $ex) { 328 out = $rh.createExceptionReply (); 329 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 330 } catch (org.omg.mof.Reflective.MofError $ex) { 331 out = $rh.createExceptionReply (); 332 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 333 } 334 break; 335 } 336 337 case 18: { 339 try { 340 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 341 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 342 int position = in.read_ulong (); 343 this.ref_modify_value_at (feature, new_element, 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 try { 358 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 359 org.omg.CORBA.Any existing_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 360 this.ref_remove_value (feature, existing_element); 361 out = $rh.createReply(); 362 } catch (org.omg.mof.Reflective.NotFound $ex) { 363 out = $rh.createExceptionReply (); 364 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 365 } catch (org.omg.mof.Reflective.MofError $ex) { 366 out = $rh.createExceptionReply (); 367 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 368 } 369 break; 370 } 371 372 case 20: { 374 try { 375 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 376 int position = in.read_ulong (); 377 this.ref_remove_value_at (feature, position); 378 out = $rh.createReply(); 379 } catch (org.omg.mof.Reflective.BadPosition $ex) { 380 out = $rh.createExceptionReply (); 381 org.omg.mof.Reflective.BadPositionHelper.write (out, $ex); 382 } catch (org.omg.mof.Reflective.MofError $ex) { 383 out = $rh.createExceptionReply (); 384 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 385 } 386 break; 387 } 388 389 case 21: { 391 org.omg.mof.Reflective.RefObject $result = null; 392 $result = this.ref_immediate_composite (); 393 out = $rh.createReply(); 394 org.omg.mof.Reflective.RefObjectHelper.write (out, $result); 395 break; 396 } 397 398 case 22: { 400 org.omg.mof.Reflective.RefObject $result = null; 401 $result = this.ref_outermost_composite (); 402 out = $rh.createReply(); 403 org.omg.mof.Reflective.RefObjectHelper.write (out, $result); 404 break; 405 } 406 407 case 23: { 409 try { 410 org.omg.mof.Reflective.RefObject requested_operation = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 411 org.omg.mof.Reflective.ValueTypeListHolder args = new org.omg.mof.Reflective.ValueTypeListHolder (); 412 args.value = org.omg.mof.Reflective.ValueTypeListHelper.read (in); 413 org.omg.CORBA.Any $result = null; 414 $result = this.ref_invoke_operation (requested_operation, args); 415 out = $rh.createReply(); 416 out.write_any ($result); 417 org.omg.mof.Reflective.ValueTypeListHelper.write (out, args.value); 418 } catch (org.omg.mof.Reflective.OtherException $ex) { 419 out = $rh.createExceptionReply (); 420 org.omg.mof.Reflective.OtherExceptionHelper.write (out, $ex); 421 } catch (org.omg.mof.Reflective.MofError $ex) { 422 out = $rh.createExceptionReply (); 423 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 424 } 425 break; 426 } 427 428 case 24: { 430 String $result = null; 431 $result = this.ref_mof_id (); 432 out = $rh.createReply(); 433 out.write_string ($result); 434 break; 435 } 436 437 case 25: { 439 org.omg.mof.Reflective.RefObject $result = null; 440 $result = this.ref_meta_object (); 441 out = $rh.createReply(); 442 org.omg.mof.Reflective.RefObjectHelper.write (out, $result); 443 break; 444 } 445 446 case 26: { 448 org.omg.mof.Reflective.RefBaseObject other_object = org.omg.mof.Reflective.RefBaseObjectHelper.read (in); 449 boolean $result = false; 450 $result = this.ref_itself (other_object); 451 out = $rh.createReply(); 452 out.write_boolean ($result); 453 break; 454 } 455 456 case 27: { 458 org.omg.mof.Reflective._RefPackage $result = null; 459 $result = this.ref_immediate_package (); 460 out = $rh.createReply(); 461 org.omg.mof.Reflective._RefPackageHelper.write (out, $result); 462 break; 463 } 464 465 case 28: { 467 org.omg.mof.Reflective._RefPackage $result = null; 468 $result = this.ref_outermost_package (); 469 out = $rh.createReply(); 470 org.omg.mof.Reflective._RefPackageHelper.write (out, $result); 471 break; 472 } 473 474 case 29: { 476 try { 477 this.ref_delete (); 478 out = $rh.createReply(); 479 } catch (org.omg.mof.Reflective.MofError $ex) { 480 out = $rh.createExceptionReply (); 481 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 482 } 483 break; 484 } 485 486 case 30: { 488 org.omg.mof.Model.Feature $result[] = null; 489 $result = this.all_of_type_feature (); 490 out = $rh.createReply(); 491 org.omg.mof.Model.FeatureSetHelper.write (out, $result); 492 break; 493 } 494 495 496 case 31: { 499 try { 500 String $result = null; 501 $result = this.name (); 502 out = $rh.createReply(); 503 out.write_string ($result); 504 } catch (org.omg.mof.Reflective.MofError $ex) { 505 out = $rh.createExceptionReply (); 506 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 507 } 508 break; 509 } 510 511 case 32: { 513 try { 514 String new_value = in.read_string (); 515 this.set_name (new_value); 516 out = $rh.createReply(); 517 } catch (org.omg.mof.Reflective.MofError $ex) { 518 out = $rh.createExceptionReply (); 519 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 520 } 521 break; 522 } 523 524 525 case 33: { 528 try { 529 String $result = null; 530 $result = this.annotation (); 531 out = $rh.createReply(); 532 out.write_string ($result); 533 } catch (org.omg.mof.Reflective.MofError $ex) { 534 out = $rh.createExceptionReply (); 535 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 536 } 537 break; 538 } 539 540 case 34: { 542 try { 543 String new_value = in.read_string (); 544 this.set_annotation (new_value); 545 out = $rh.createReply(); 546 } catch (org.omg.mof.Reflective.MofError $ex) { 547 out = $rh.createExceptionReply (); 548 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 549 } 550 break; 551 } 552 553 554 case 35: { 557 try { 558 String $result[] = null; 559 $result = this.qualified_name (); 560 out = $rh.createReply(); 561 org.omg.mof.Model.StringListHelper.write (out, $result); 562 } catch (org.omg.mof.Reflective.MofError $ex) { 563 out = $rh.createExceptionReply (); 564 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 565 } 566 break; 567 } 568 569 570 case 36: { 573 try { 574 org.omg.mof.Model.Namespace $result = null; 575 $result = this.container (); 576 out = $rh.createReply(); 577 org.omg.mof.Model.NamespaceHelper.write (out, $result); 578 } catch (org.omg.mof.Reflective.NotSet $ex) { 579 out = $rh.createExceptionReply (); 580 org.omg.mof.Reflective.NotSetHelper.write (out, $ex); 581 } catch (org.omg.mof.Reflective.MofError $ex) { 582 out = $rh.createExceptionReply (); 583 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 584 } 585 break; 586 } 587 588 case 37: { 590 try { 591 org.omg.mof.Model.Namespace new_value = org.omg.mof.Model.NamespaceHelper.read (in); 592 this.set_container (new_value); 593 out = $rh.createReply(); 594 } catch (org.omg.mof.Reflective.MofError $ex) { 595 out = $rh.createExceptionReply (); 596 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 597 } 598 break; 599 } 600 601 case 38: { 603 try { 604 this.unset_container (); 605 out = $rh.createReply(); 606 } catch (org.omg.mof.Reflective.MofError $ex) { 607 out = $rh.createExceptionReply (); 608 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 609 } 610 break; 611 } 612 613 614 case 39: { 617 try { 618 org.omg.mof.Model.ModelElement $result[] = null; 619 $result = this.required_elements (); 620 out = $rh.createReply(); 621 org.omg.mof.Model.ModelElementBagHelper.write (out, $result); 622 } catch (org.omg.mof.Reflective.MofError $ex) { 623 out = $rh.createExceptionReply (); 624 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 625 } 626 break; 627 } 628 629 case 40: { 631 try { 632 org.omg.mof.Model.ModelElement new_value[] = org.omg.mof.Model.ModelElementBagHelper.read (in); 633 this.set_required_elements (new_value); 634 out = $rh.createReply(); 635 } catch (org.omg.mof.Reflective.MofError $ex) { 636 out = $rh.createExceptionReply (); 637 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 638 } 639 break; 640 } 641 642 case 41: { 644 try { 645 org.omg.mof.Model.ModelElement new_element = org.omg.mof.Model.ModelElementHelper.read (in); 646 this.add_required_elements (new_element); 647 out = $rh.createReply(); 648 } catch (org.omg.mof.Reflective.MofError $ex) { 649 out = $rh.createExceptionReply (); 650 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 651 } 652 break; 653 } 654 655 case 42: { 657 try { 658 org.omg.mof.Model.ModelElement old_element = org.omg.mof.Model.ModelElementHelper.read (in); 659 org.omg.mof.Model.ModelElement new_element = org.omg.mof.Model.ModelElementHelper.read (in); 660 this.modify_required_elements (old_element, new_element); 661 out = $rh.createReply(); 662 } catch (org.omg.mof.Reflective.NotFound $ex) { 663 out = $rh.createExceptionReply (); 664 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 665 } catch (org.omg.mof.Reflective.MofError $ex) { 666 out = $rh.createExceptionReply (); 667 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 668 } 669 break; 670 } 671 672 case 43: { 674 try { 675 org.omg.mof.Model.ModelElement old_element = org.omg.mof.Model.ModelElementHelper.read (in); 676 this.remove_required_elements (old_element); 677 out = $rh.createReply(); 678 } catch (org.omg.mof.Reflective.NotFound $ex) { 679 out = $rh.createExceptionReply (); 680 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 681 } catch (org.omg.mof.Reflective.MofError $ex) { 682 out = $rh.createExceptionReply (); 683 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 684 } 685 break; 686 } 687 688 689 case 44: { 692 try { 693 org.omg.mof.Model.Constraint $result[] = null; 694 $result = this.constraints (); 695 out = $rh.createReply(); 696 org.omg.mof.Model.ConstraintBagHelper.write (out, $result); 697 } catch (org.omg.mof.Reflective.MofError $ex) { 698 out = $rh.createExceptionReply (); 699 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 700 } 701 break; 702 } 703 704 case 45: { 706 try { 707 org.omg.mof.Model.Constraint new_value[] = org.omg.mof.Model.ConstraintBagHelper.read (in); 708 this.set_constraints (new_value); 709 out = $rh.createReply(); 710 } catch (org.omg.mof.Reflective.MofError $ex) { 711 out = $rh.createExceptionReply (); 712 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 713 } 714 break; 715 } 716 717 case 46: { 719 try { 720 org.omg.mof.Model.Constraint new_element = org.omg.mof.Model.ConstraintHelper.read (in); 721 this.add_constraints (new_element); 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 case 47: { 732 try { 733 org.omg.mof.Model.Constraint old_element = org.omg.mof.Model.ConstraintHelper.read (in); 734 org.omg.mof.Model.Constraint new_element = org.omg.mof.Model.ConstraintHelper.read (in); 735 this.modify_constraints (old_element, new_element); 736 out = $rh.createReply(); 737 } catch (org.omg.mof.Reflective.NotFound $ex) { 738 out = $rh.createExceptionReply (); 739 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 740 } catch (org.omg.mof.Reflective.MofError $ex) { 741 out = $rh.createExceptionReply (); 742 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 743 } 744 break; 745 } 746 747 case 48: { 749 try { 750 org.omg.mof.Model.Constraint old_element = org.omg.mof.Model.ConstraintHelper.read (in); 751 this.remove_constraints (old_element); 752 out = $rh.createReply(); 753 } catch (org.omg.mof.Reflective.NotFound $ex) { 754 out = $rh.createExceptionReply (); 755 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 756 } catch (org.omg.mof.Reflective.MofError $ex) { 757 out = $rh.createExceptionReply (); 758 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 759 } 760 break; 761 } 762 763 764 case 49: { 767 try { 768 org.omg.mof.Model.Classifier $result = null; 769 $result = this.type (); 770 out = $rh.createReply(); 771 org.omg.mof.Model.ClassifierHelper.write (out, $result); 772 } catch (org.omg.mof.Reflective.MofError $ex) { 773 out = $rh.createExceptionReply (); 774 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 775 } 776 break; 777 } 778 779 case 50: { 781 try { 782 org.omg.mof.Model.Classifier new_value = org.omg.mof.Model.ClassifierHelper.read (in); 783 this.set_type (new_value); 784 out = $rh.createReply(); 785 } catch (org.omg.mof.Reflective.MofError $ex) { 786 out = $rh.createExceptionReply (); 787 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 788 } 789 break; 790 } 791 792 793 case 51: { 796 try { 797 org.omg.mof.Model.VisibilityKind $result = null; 798 $result = this.visibility (); 799 out = $rh.createReply(); 800 org.omg.mof.Model.VisibilityKindHelper.write (out, $result); 801 } catch (org.omg.mof.Reflective.MofError $ex) { 802 out = $rh.createExceptionReply (); 803 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 804 } 805 break; 806 } 807 808 case 52: { 810 try { 811 org.omg.mof.Model.VisibilityKind new_value = org.omg.mof.Model.VisibilityKindHelper.read (in); 812 this.set_visibility (new_value); 813 out = $rh.createReply(); 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.ScopeKind $result = null; 827 $result = this.scope (); 828 out = $rh.createReply(); 829 org.omg.mof.Model.ScopeKindHelper.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.ScopeKind new_value = org.omg.mof.Model.ScopeKindHelper.read (in); 841 this.set_scope (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.MultiplicityType $result = null; 856 $result = this.multiplicity (); 857 out = $rh.createReply(); 858 org.omg.mof.Model.MultiplicityTypeHelper.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.MultiplicityType new_value = org.omg.mof.Model.MultiplicityTypeHelper.read (in); 870 this.set_multiplicity (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 880 case 57: { 883 try { 884 boolean $result = false; 885 $result = this.is_changeable (); 886 out = $rh.createReply(); 887 out.write_boolean ($result); 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 case 58: { 897 try { 898 boolean new_value = in.read_boolean (); 899 this.set_is_changeable (new_value); 900 out = $rh.createReply(); 901 } catch (org.omg.mof.Reflective.MofError $ex) { 902 out = $rh.createExceptionReply (); 903 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 904 } 905 break; 906 } 907 908 default: 909 throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE); 910 } 911 912 return out; 913 } 915 private static String [] __ids = { 917 "IDL:org/omg/mof/Model/MofAttribute:1.0", 918 "IDL:org/omg/mof/Model/MofAttributeClass:1.0", 919 "IDL:org/omg/mof/Model/StructuralFeatureClass:1.0", 920 "IDL:org/omg/mof/Model/TypedElementClass:1.0", 921 "IDL:org/omg/mof/Model/ModelElementClass:1.0", 922 "IDL:org/omg/mof/Reflective/RefObject:1.0", 923 "IDL:org/omg/mof/Reflective/RefBaseObject:1.0", 924 "IDL:org/omg/mof/Model/FeatureClass:1.0", 925 "IDL:org/omg/mof/Model/ModelElement:1.0", 926 "IDL:org/omg/mof/Model/TypedElement:1.0", 927 "IDL:org/omg/mof/Model/Feature:1.0", 928 "IDL:org/omg/mof/Model/StructuralFeature:1.0"}; 929 930 public String [] _all_interfaces (org.omg.PortableServer.POA poa, byte[] objectId) 931 { 932 return (String [])__ids.clone (); 933 } 934 935 public MofAttribute _this() 936 { 937 return MofAttributeHelper.narrow( 938 super._this_object()); 939 } 940 941 public MofAttribute _this(org.omg.CORBA.ORB orb) 942 { 943 return MofAttributeHelper.narrow( 944 super._this_object(orb)); 945 } 946 947 948 } | Popular Tags |