1 package org.omg.mof.Model; 2 3 4 10 11 12 public abstract class ConstraintPOA extends org.omg.PortableServer.Servant 14 implements org.omg.mof.Model.ConstraintOperations, 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 ("evaluation_policy", new java.lang.Integer (0)); 23 _methods.put ("set_evaluation_policy", new java.lang.Integer (1)); 24 _methods.put ("expression", new java.lang.Integer (2)); 25 _methods.put ("set_expression", new java.lang.Integer (3)); 26 _methods.put ("language", new java.lang.Integer (4)); 27 _methods.put ("set_language", new java.lang.Integer (5)); 28 _methods.put ("constrained_elements", new java.lang.Integer (6)); 29 _methods.put ("set_constrained_elements", new java.lang.Integer (7)); 30 _methods.put ("add_constrained_elements", new java.lang.Integer (8)); 31 _methods.put ("modify_constrained_elements", new java.lang.Integer (9)); 32 _methods.put ("remove_constrained_elements", new java.lang.Integer (10)); 33 _methods.put ("_get_all_of_type_constraint", new java.lang.Integer (11)); 34 _methods.put ("_get_all_of_class_constraint", new java.lang.Integer (12)); 35 _methods.put ("create_constraint", new java.lang.Integer (13)); 36 _methods.put ("_get_all_of_type_model_element", new java.lang.Integer (14)); 37 _methods.put ("ref_is_instance_of", new java.lang.Integer (15)); 38 _methods.put ("ref_create_instance", new java.lang.Integer (16)); 39 _methods.put ("ref_all_objects", new java.lang.Integer (17)); 40 _methods.put ("ref_set_value", new java.lang.Integer (18)); 41 _methods.put ("ref_value", new java.lang.Integer (19)); 42 _methods.put ("ref_unset_value", new java.lang.Integer (20)); 43 _methods.put ("ref_add_value", new java.lang.Integer (21)); 44 _methods.put ("ref_add_value_before", new java.lang.Integer (22)); 45 _methods.put ("ref_add_value_at", new java.lang.Integer (23)); 46 _methods.put ("ref_modify_value", new java.lang.Integer (24)); 47 _methods.put ("ref_modify_value_at", new java.lang.Integer (25)); 48 _methods.put ("ref_remove_value", new java.lang.Integer (26)); 49 _methods.put ("ref_remove_value_at", new java.lang.Integer (27)); 50 _methods.put ("ref_immediate_composite", new java.lang.Integer (28)); 51 _methods.put ("ref_outermost_composite", new java.lang.Integer (29)); 52 _methods.put ("ref_invoke_operation", new java.lang.Integer (30)); 53 _methods.put ("ref_mof_id", new java.lang.Integer (31)); 54 _methods.put ("ref_meta_object", new java.lang.Integer (32)); 55 _methods.put ("ref_itself", new java.lang.Integer (33)); 56 _methods.put ("ref_immediate_package", new java.lang.Integer (34)); 57 _methods.put ("ref_outermost_package", new java.lang.Integer (35)); 58 _methods.put ("ref_delete", new java.lang.Integer (36)); 59 _methods.put ("name", new java.lang.Integer (37)); 60 _methods.put ("set_name", new java.lang.Integer (38)); 61 _methods.put ("annotation", new java.lang.Integer (39)); 62 _methods.put ("set_annotation", new java.lang.Integer (40)); 63 _methods.put ("qualified_name", new java.lang.Integer (41)); 64 _methods.put ("container", new java.lang.Integer (42)); 65 _methods.put ("set_container", new java.lang.Integer (43)); 66 _methods.put ("unset_container", new java.lang.Integer (44)); 67 _methods.put ("required_elements", new java.lang.Integer (45)); 68 _methods.put ("set_required_elements", new java.lang.Integer (46)); 69 _methods.put ("add_required_elements", new java.lang.Integer (47)); 70 _methods.put ("modify_required_elements", new java.lang.Integer (48)); 71 _methods.put ("remove_required_elements", new java.lang.Integer (49)); 72 _methods.put ("constraints", new java.lang.Integer (50)); 73 _methods.put ("set_constraints", new java.lang.Integer (51)); 74 _methods.put ("add_constraints", new java.lang.Integer (52)); 75 _methods.put ("modify_constraints", new java.lang.Integer (53)); 76 _methods.put ("remove_constraints", new java.lang.Integer (54)); 77 } 78 79 public org.omg.CORBA.portable.OutputStream _invoke (String $method, 80 org.omg.CORBA.portable.InputStream in, 81 org.omg.CORBA.portable.ResponseHandler $rh) 82 { 83 org.omg.CORBA.portable.OutputStream out = null; 84 java.lang.Integer __method = (java.lang.Integer )_methods.get ($method); 85 if (__method == null) 86 throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE); 87 88 switch (__method.intValue ()) 89 { 90 91 case 0: { 94 try { 95 org.omg.mof.Model.ConstraintClassPackage.EvaluationKind $result = null; 96 $result = this.evaluation_policy (); 97 out = $rh.createReply(); 98 org.omg.mof.Model.ConstraintClassPackage.EvaluationKindHelper.write (out, $result); 99 } catch (org.omg.mof.Reflective.MofError $ex) { 100 out = $rh.createExceptionReply (); 101 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 102 } 103 break; 104 } 105 106 case 1: { 108 try { 109 org.omg.mof.Model.ConstraintClassPackage.EvaluationKind new_value = org.omg.mof.Model.ConstraintClassPackage.EvaluationKindHelper.read (in); 110 this.set_evaluation_policy (new_value); 111 out = $rh.createReply(); 112 } catch (org.omg.mof.Reflective.MofError $ex) { 113 out = $rh.createExceptionReply (); 114 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 115 } 116 break; 117 } 118 119 120 case 2: { 123 try { 124 org.omg.CORBA.Any $result = null; 125 $result = this.expression (); 126 out = $rh.createReply(); 127 out.write_any ($result); 128 } catch (org.omg.mof.Reflective.MofError $ex) { 129 out = $rh.createExceptionReply (); 130 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 131 } 132 break; 133 } 134 135 case 3: { 137 try { 138 org.omg.CORBA.Any new_value = in.read_any (); 139 this.set_expression (new_value); 140 out = $rh.createReply(); 141 } catch (org.omg.mof.Reflective.MofError $ex) { 142 out = $rh.createExceptionReply (); 143 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 144 } 145 break; 146 } 147 148 149 case 4: { 152 try { 153 String $result = null; 154 $result = this.language (); 155 out = $rh.createReply(); 156 out.write_string ($result); 157 } catch (org.omg.mof.Reflective.MofError $ex) { 158 out = $rh.createExceptionReply (); 159 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 160 } 161 break; 162 } 163 164 case 5: { 166 try { 167 String new_value = in.read_string (); 168 this.set_language (new_value); 169 out = $rh.createReply(); 170 } catch (org.omg.mof.Reflective.MofError $ex) { 171 out = $rh.createExceptionReply (); 172 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 173 } 174 break; 175 } 176 177 178 case 6: { 181 try { 182 org.omg.mof.Model.ModelElement $result[] = null; 183 $result = this.constrained_elements (); 184 out = $rh.createReply(); 185 org.omg.mof.Model.ModelElementBagHelper.write (out, $result); 186 } catch (org.omg.mof.Reflective.MofError $ex) { 187 out = $rh.createExceptionReply (); 188 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 189 } 190 break; 191 } 192 193 case 7: { 195 try { 196 org.omg.mof.Model.ModelElement new_value[] = org.omg.mof.Model.ModelElementBagHelper.read (in); 197 this.set_constrained_elements (new_value); 198 out = $rh.createReply(); 199 } catch (org.omg.mof.Reflective.MofError $ex) { 200 out = $rh.createExceptionReply (); 201 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 202 } 203 break; 204 } 205 206 case 8: { 208 try { 209 org.omg.mof.Model.ModelElement new_element = org.omg.mof.Model.ModelElementHelper.read (in); 210 this.add_constrained_elements (new_element); 211 out = $rh.createReply(); 212 } catch (org.omg.mof.Reflective.MofError $ex) { 213 out = $rh.createExceptionReply (); 214 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 215 } 216 break; 217 } 218 219 case 9: { 221 try { 222 org.omg.mof.Model.ModelElement old_element = org.omg.mof.Model.ModelElementHelper.read (in); 223 org.omg.mof.Model.ModelElement new_element = org.omg.mof.Model.ModelElementHelper.read (in); 224 this.modify_constrained_elements (old_element, new_element); 225 out = $rh.createReply(); 226 } catch (org.omg.mof.Reflective.NotFound $ex) { 227 out = $rh.createExceptionReply (); 228 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 229 } catch (org.omg.mof.Reflective.MofError $ex) { 230 out = $rh.createExceptionReply (); 231 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 232 } 233 break; 234 } 235 236 case 10: { 238 try { 239 org.omg.mof.Model.ModelElement old_element = org.omg.mof.Model.ModelElementHelper.read (in); 240 this.remove_constrained_elements (old_element); 241 out = $rh.createReply(); 242 } catch (org.omg.mof.Reflective.NotFound $ex) { 243 out = $rh.createExceptionReply (); 244 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 245 } catch (org.omg.mof.Reflective.MofError $ex) { 246 out = $rh.createExceptionReply (); 247 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 248 } 249 break; 250 } 251 252 case 11: { 254 org.omg.mof.Model.Constraint $result[] = null; 255 $result = this.all_of_type_constraint (); 256 out = $rh.createReply(); 257 org.omg.mof.Model.ConstraintSetHelper.write (out, $result); 258 break; 259 } 260 261 case 12: { 263 org.omg.mof.Model.Constraint $result[] = null; 264 $result = this.all_of_class_constraint (); 265 out = $rh.createReply(); 266 org.omg.mof.Model.ConstraintSetHelper.write (out, $result); 267 break; 268 } 269 270 case 13: { 272 try { 273 String name = in.read_string (); 274 String annotation = in.read_string (); 275 org.omg.mof.Model.ConstraintClassPackage.EvaluationKind evaluation_policy = org.omg.mof.Model.ConstraintClassPackage.EvaluationKindHelper.read (in); 276 org.omg.CORBA.Any expression = in.read_any (); 277 String language = in.read_string (); 278 org.omg.mof.Model.Constraint $result = null; 279 $result = this.create_constraint (name, annotation, evaluation_policy, expression, language); 280 out = $rh.createReply(); 281 org.omg.mof.Model.ConstraintHelper.write (out, $result); 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 14: { 291 org.omg.mof.Model.ModelElement $result[] = null; 292 $result = this.all_of_type_model_element (); 293 out = $rh.createReply(); 294 org.omg.mof.Model.ModelElementSetHelper.write (out, $result); 295 break; 296 } 297 298 case 15: { 300 org.omg.mof.Reflective.RefObject some_class = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 301 boolean consider_subtypes = in.read_boolean (); 302 boolean $result = false; 303 $result = this.ref_is_instance_of (some_class, consider_subtypes); 304 out = $rh.createReply(); 305 out.write_boolean ($result); 306 break; 307 } 308 309 case 16: { 311 try { 312 org.omg.CORBA.Any args[] = org.omg.mof.Reflective.ValueTypeListHelper.read (in); 313 org.omg.mof.Reflective.RefObject $result = null; 314 $result = this.ref_create_instance (args); 315 out = $rh.createReply(); 316 org.omg.mof.Reflective.RefObjectHelper.write (out, $result); 317 } catch (org.omg.mof.Reflective.MofError $ex) { 318 out = $rh.createExceptionReply (); 319 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 320 } 321 break; 322 } 323 324 case 17: { 326 boolean include_subtypes = in.read_boolean (); 327 org.omg.mof.Reflective.RefObject $result[] = null; 328 $result = this.ref_all_objects (include_subtypes); 329 out = $rh.createReply(); 330 org.omg.mof.Reflective.RefObjectSetHelper.write (out, $result); 331 break; 332 } 333 334 case 18: { 336 try { 337 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 338 org.omg.CORBA.Any new_value = org.omg.mof.Reflective._ValueTypeHelper.read (in); 339 this.ref_set_value (feature, new_value); 340 out = $rh.createReply(); 341 } catch (org.omg.mof.Reflective.MofError $ex) { 342 out = $rh.createExceptionReply (); 343 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 344 } 345 break; 346 } 347 348 case 19: { 350 try { 351 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 352 org.omg.CORBA.Any $result = null; 353 $result = this.ref_value (feature); 354 out = $rh.createReply(); 355 out.write_any ($result); 356 } catch (org.omg.mof.Reflective.NotSet $ex) { 357 out = $rh.createExceptionReply (); 358 org.omg.mof.Reflective.NotSetHelper.write (out, $ex); 359 } catch (org.omg.mof.Reflective.MofError $ex) { 360 out = $rh.createExceptionReply (); 361 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 362 } 363 break; 364 } 365 366 case 20: { 368 try { 369 this.ref_unset_value (); 370 out = $rh.createReply(); 371 } catch (org.omg.mof.Reflective.MofError $ex) { 372 out = $rh.createExceptionReply (); 373 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 374 } 375 break; 376 } 377 378 case 21: { 380 try { 381 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 382 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 383 this.ref_add_value (feature, new_element); 384 out = $rh.createReply(); 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 22: { 394 try { 395 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 396 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 397 org.omg.CORBA.Any before_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 398 this.ref_add_value_before (feature, new_element, before_element); 399 out = $rh.createReply(); 400 } catch (org.omg.mof.Reflective.NotFound $ex) { 401 out = $rh.createExceptionReply (); 402 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 403 } catch (org.omg.mof.Reflective.MofError $ex) { 404 out = $rh.createExceptionReply (); 405 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 406 } 407 break; 408 } 409 410 case 23: { 412 try { 413 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 414 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 415 int position = in.read_ulong (); 416 this.ref_add_value_at (feature, new_element, position); 417 out = $rh.createReply(); 418 } catch (org.omg.mof.Reflective.BadPosition $ex) { 419 out = $rh.createExceptionReply (); 420 org.omg.mof.Reflective.BadPositionHelper.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 try { 431 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 432 org.omg.CORBA.Any old_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 433 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 434 this.ref_modify_value (feature, old_element, new_element); 435 out = $rh.createReply(); 436 } catch (org.omg.mof.Reflective.NotFound $ex) { 437 out = $rh.createExceptionReply (); 438 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 439 } catch (org.omg.mof.Reflective.MofError $ex) { 440 out = $rh.createExceptionReply (); 441 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 442 } 443 break; 444 } 445 446 case 25: { 448 try { 449 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 450 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 451 int position = in.read_ulong (); 452 this.ref_modify_value_at (feature, new_element, position); 453 out = $rh.createReply(); 454 } catch (org.omg.mof.Reflective.BadPosition $ex) { 455 out = $rh.createExceptionReply (); 456 org.omg.mof.Reflective.BadPositionHelper.write (out, $ex); 457 } catch (org.omg.mof.Reflective.MofError $ex) { 458 out = $rh.createExceptionReply (); 459 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 460 } 461 break; 462 } 463 464 case 26: { 466 try { 467 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 468 org.omg.CORBA.Any existing_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 469 this.ref_remove_value (feature, existing_element); 470 out = $rh.createReply(); 471 } catch (org.omg.mof.Reflective.NotFound $ex) { 472 out = $rh.createExceptionReply (); 473 org.omg.mof.Reflective.NotFoundHelper.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 int position = in.read_ulong (); 486 this.ref_remove_value_at (feature, position); 487 out = $rh.createReply(); 488 } catch (org.omg.mof.Reflective.BadPosition $ex) { 489 out = $rh.createExceptionReply (); 490 org.omg.mof.Reflective.BadPositionHelper.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 org.omg.mof.Reflective.RefObject $result = null; 501 $result = this.ref_immediate_composite (); 502 out = $rh.createReply(); 503 org.omg.mof.Reflective.RefObjectHelper.write (out, $result); 504 break; 505 } 506 507 case 29: { 509 org.omg.mof.Reflective.RefObject $result = null; 510 $result = this.ref_outermost_composite (); 511 out = $rh.createReply(); 512 org.omg.mof.Reflective.RefObjectHelper.write (out, $result); 513 break; 514 } 515 516 case 30: { 518 try { 519 org.omg.mof.Reflective.RefObject requested_operation = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 520 org.omg.mof.Reflective.ValueTypeListHolder args = new org.omg.mof.Reflective.ValueTypeListHolder (); 521 args.value = org.omg.mof.Reflective.ValueTypeListHelper.read (in); 522 org.omg.CORBA.Any $result = null; 523 $result = this.ref_invoke_operation (requested_operation, args); 524 out = $rh.createReply(); 525 out.write_any ($result); 526 org.omg.mof.Reflective.ValueTypeListHelper.write (out, args.value); 527 } catch (org.omg.mof.Reflective.OtherException $ex) { 528 out = $rh.createExceptionReply (); 529 org.omg.mof.Reflective.OtherExceptionHelper.write (out, $ex); 530 } catch (org.omg.mof.Reflective.MofError $ex) { 531 out = $rh.createExceptionReply (); 532 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 533 } 534 break; 535 } 536 537 case 31: { 539 String $result = null; 540 $result = this.ref_mof_id (); 541 out = $rh.createReply(); 542 out.write_string ($result); 543 break; 544 } 545 546 case 32: { 548 org.omg.mof.Reflective.RefObject $result = null; 549 $result = this.ref_meta_object (); 550 out = $rh.createReply(); 551 org.omg.mof.Reflective.RefObjectHelper.write (out, $result); 552 break; 553 } 554 555 case 33: { 557 org.omg.mof.Reflective.RefBaseObject other_object = org.omg.mof.Reflective.RefBaseObjectHelper.read (in); 558 boolean $result = false; 559 $result = this.ref_itself (other_object); 560 out = $rh.createReply(); 561 out.write_boolean ($result); 562 break; 563 } 564 565 case 34: { 567 org.omg.mof.Reflective._RefPackage $result = null; 568 $result = this.ref_immediate_package (); 569 out = $rh.createReply(); 570 org.omg.mof.Reflective._RefPackageHelper.write (out, $result); 571 break; 572 } 573 574 case 35: { 576 org.omg.mof.Reflective._RefPackage $result = null; 577 $result = this.ref_outermost_package (); 578 out = $rh.createReply(); 579 org.omg.mof.Reflective._RefPackageHelper.write (out, $result); 580 break; 581 } 582 583 case 36: { 585 try { 586 this.ref_delete (); 587 out = $rh.createReply(); 588 } catch (org.omg.mof.Reflective.MofError $ex) { 589 out = $rh.createExceptionReply (); 590 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 591 } 592 break; 593 } 594 595 596 case 37: { 599 try { 600 String $result = null; 601 $result = this.name (); 602 out = $rh.createReply(); 603 out.write_string ($result); 604 } catch (org.omg.mof.Reflective.MofError $ex) { 605 out = $rh.createExceptionReply (); 606 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 607 } 608 break; 609 } 610 611 case 38: { 613 try { 614 String new_value = in.read_string (); 615 this.set_name (new_value); 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 String $result = null; 630 $result = this.annotation (); 631 out = $rh.createReply(); 632 out.write_string ($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 String new_value = in.read_string (); 644 this.set_annotation (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 654 case 41: { 657 try { 658 String $result[] = null; 659 $result = this.qualified_name (); 660 out = $rh.createReply(); 661 org.omg.mof.Model.StringListHelper.write (out, $result); 662 } catch (org.omg.mof.Reflective.MofError $ex) { 663 out = $rh.createExceptionReply (); 664 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 665 } 666 break; 667 } 668 669 670 case 42: { 673 try { 674 org.omg.mof.Model.Namespace $result = null; 675 $result = this.container (); 676 out = $rh.createReply(); 677 org.omg.mof.Model.NamespaceHelper.write (out, $result); 678 } catch (org.omg.mof.Reflective.NotSet $ex) { 679 out = $rh.createExceptionReply (); 680 org.omg.mof.Reflective.NotSetHelper.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 case 43: { 690 try { 691 org.omg.mof.Model.Namespace new_value = org.omg.mof.Model.NamespaceHelper.read (in); 692 this.set_container (new_value); 693 out = $rh.createReply(); 694 } catch (org.omg.mof.Reflective.MofError $ex) { 695 out = $rh.createExceptionReply (); 696 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 697 } 698 break; 699 } 700 701 case 44: { 703 try { 704 this.unset_container (); 705 out = $rh.createReply(); 706 } catch (org.omg.mof.Reflective.MofError $ex) { 707 out = $rh.createExceptionReply (); 708 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 709 } 710 break; 711 } 712 713 714 case 45: { 717 try { 718 org.omg.mof.Model.ModelElement $result[] = null; 719 $result = this.required_elements (); 720 out = $rh.createReply(); 721 org.omg.mof.Model.ModelElementBagHelper.write (out, $result); 722 } catch (org.omg.mof.Reflective.MofError $ex) { 723 out = $rh.createExceptionReply (); 724 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 725 } 726 break; 727 } 728 729 case 46: { 731 try { 732 org.omg.mof.Model.ModelElement new_value[] = org.omg.mof.Model.ModelElementBagHelper.read (in); 733 this.set_required_elements (new_value); 734 out = $rh.createReply(); 735 } catch (org.omg.mof.Reflective.MofError $ex) { 736 out = $rh.createExceptionReply (); 737 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 738 } 739 break; 740 } 741 742 case 47: { 744 try { 745 org.omg.mof.Model.ModelElement new_element = org.omg.mof.Model.ModelElementHelper.read (in); 746 this.add_required_elements (new_element); 747 out = $rh.createReply(); 748 } catch (org.omg.mof.Reflective.MofError $ex) { 749 out = $rh.createExceptionReply (); 750 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 751 } 752 break; 753 } 754 755 case 48: { 757 try { 758 org.omg.mof.Model.ModelElement old_element = org.omg.mof.Model.ModelElementHelper.read (in); 759 org.omg.mof.Model.ModelElement new_element = org.omg.mof.Model.ModelElementHelper.read (in); 760 this.modify_required_elements (old_element, new_element); 761 out = $rh.createReply(); 762 } catch (org.omg.mof.Reflective.NotFound $ex) { 763 out = $rh.createExceptionReply (); 764 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 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 this.remove_required_elements (old_element); 777 out = $rh.createReply(); 778 } catch (org.omg.mof.Reflective.NotFound $ex) { 779 out = $rh.createExceptionReply (); 780 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 781 } catch (org.omg.mof.Reflective.MofError $ex) { 782 out = $rh.createExceptionReply (); 783 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 784 } 785 break; 786 } 787 788 789 case 50: { 792 try { 793 org.omg.mof.Model.Constraint $result[] = null; 794 $result = this.constraints (); 795 out = $rh.createReply(); 796 org.omg.mof.Model.ConstraintBagHelper.write (out, $result); 797 } catch (org.omg.mof.Reflective.MofError $ex) { 798 out = $rh.createExceptionReply (); 799 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 800 } 801 break; 802 } 803 804 case 51: { 806 try { 807 org.omg.mof.Model.Constraint new_value[] = org.omg.mof.Model.ConstraintBagHelper.read (in); 808 this.set_constraints (new_value); 809 out = $rh.createReply(); 810 } catch (org.omg.mof.Reflective.MofError $ex) { 811 out = $rh.createExceptionReply (); 812 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 813 } 814 break; 815 } 816 817 case 52: { 819 try { 820 org.omg.mof.Model.Constraint new_element = org.omg.mof.Model.ConstraintHelper.read (in); 821 this.add_constraints (new_element); 822 out = $rh.createReply(); 823 } catch (org.omg.mof.Reflective.MofError $ex) { 824 out = $rh.createExceptionReply (); 825 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 826 } 827 break; 828 } 829 830 case 53: { 832 try { 833 org.omg.mof.Model.Constraint old_element = org.omg.mof.Model.ConstraintHelper.read (in); 834 org.omg.mof.Model.Constraint new_element = org.omg.mof.Model.ConstraintHelper.read (in); 835 this.modify_constraints (old_element, new_element); 836 out = $rh.createReply(); 837 } catch (org.omg.mof.Reflective.NotFound $ex) { 838 out = $rh.createExceptionReply (); 839 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 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 this.remove_constraints (old_element); 852 out = $rh.createReply(); 853 } catch (org.omg.mof.Reflective.NotFound $ex) { 854 out = $rh.createExceptionReply (); 855 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 856 } catch (org.omg.mof.Reflective.MofError $ex) { 857 out = $rh.createExceptionReply (); 858 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 859 } 860 break; 861 } 862 863 default: 864 throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE); 865 } 866 867 return out; 868 } 870 private static String [] __ids = { 872 "IDL:org/omg/mof/Model/Constraint:1.0", 873 "IDL:org/omg/mof/Model/ConstraintClass:1.0", 874 "IDL:org/omg/mof/Model/ModelElementClass:1.0", 875 "IDL:org/omg/mof/Reflective/RefObject:1.0", 876 "IDL:org/omg/mof/Reflective/RefBaseObject:1.0", 877 "IDL:org/omg/mof/Model/ModelElement:1.0"}; 878 879 public String [] _all_interfaces (org.omg.PortableServer.POA poa, byte[] objectId) 880 { 881 return (String [])__ids.clone (); 882 } 883 884 public Constraint _this() 885 { 886 return ConstraintHelper.narrow( 887 super._this_object()); 888 } 889 890 public Constraint _this(org.omg.CORBA.ORB orb) 891 { 892 return ConstraintHelper.narrow( 893 super._this_object(orb)); 894 } 895 896 897 } | Popular Tags |