1------------------------------------------------------------------------------ 2-- -- 3-- Matreshka Project -- 4-- -- 5-- Ada Modeling Framework -- 6-- -- 7-- Runtime Library Component -- 8-- -- 9------------------------------------------------------------------------------ 10-- -- 11-- Copyright © 2011-2012, Vadim Godunko <vgodunko@gmail.com> -- 12-- All rights reserved. -- 13-- -- 14-- Redistribution and use in source and binary forms, with or without -- 15-- modification, are permitted provided that the following conditions -- 16-- are met: -- 17-- -- 18-- * Redistributions of source code must retain the above copyright -- 19-- notice, this list of conditions and the following disclaimer. -- 20-- -- 21-- * Redistributions in binary form must reproduce the above copyright -- 22-- notice, this list of conditions and the following disclaimer in the -- 23-- documentation and/or other materials provided with the distribution. -- 24-- -- 25-- * Neither the name of the Vadim Godunko, IE nor the names of its -- 26-- contributors may be used to endorse or promote products derived from -- 27-- this software without specific prior written permission. -- 28-- -- 29-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- 30-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- 31-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- 32-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- 33-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- 34-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- 35-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- 36-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- 37-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- 38-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- 39-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- 40-- -- 41------------------------------------------------------------------------------ 42-- $Revision: 2937 $ $Date: 2012-05-01 21:07:27 +0400 (Tue, 01 May 2012) $ 43------------------------------------------------------------------------------ 44with AMF.Elements; 45with AMF.Internals.Element_Collections; 46with AMF.Internals.Helpers; 47with AMF.Internals.Tables.UML_Attributes; 48with AMF.Visitors.UML_Iterators; 49with AMF.Visitors.UML_Visitors; 50with League.Strings.Internals; 51with Matreshka.Internals.Strings; 52 53package body AMF.Internals.UML_Sequence_Nodes is 54 55 ------------------- 56 -- Enter_Element -- 57 ------------------- 58 59 overriding procedure Enter_Element 60 (Self : not null access constant UML_Sequence_Node_Proxy; 61 Visitor : in out AMF.Visitors.Abstract_Visitor'Class; 62 Control : in out AMF.Visitors.Traverse_Control) is 63 begin 64 if Visitor in AMF.Visitors.UML_Visitors.UML_Visitor'Class then 65 AMF.Visitors.UML_Visitors.UML_Visitor'Class 66 (Visitor).Enter_Sequence_Node 67 (AMF.UML.Sequence_Nodes.UML_Sequence_Node_Access (Self), 68 Control); 69 end if; 70 end Enter_Element; 71 72 ------------------- 73 -- Leave_Element -- 74 ------------------- 75 76 overriding procedure Leave_Element 77 (Self : not null access constant UML_Sequence_Node_Proxy; 78 Visitor : in out AMF.Visitors.Abstract_Visitor'Class; 79 Control : in out AMF.Visitors.Traverse_Control) is 80 begin 81 if Visitor in AMF.Visitors.UML_Visitors.UML_Visitor'Class then 82 AMF.Visitors.UML_Visitors.UML_Visitor'Class 83 (Visitor).Leave_Sequence_Node 84 (AMF.UML.Sequence_Nodes.UML_Sequence_Node_Access (Self), 85 Control); 86 end if; 87 end Leave_Element; 88 89 ------------------- 90 -- Visit_Element -- 91 ------------------- 92 93 overriding procedure Visit_Element 94 (Self : not null access constant UML_Sequence_Node_Proxy; 95 Iterator : in out AMF.Visitors.Abstract_Iterator'Class; 96 Visitor : in out AMF.Visitors.Abstract_Visitor'Class; 97 Control : in out AMF.Visitors.Traverse_Control) is 98 begin 99 if Iterator in AMF.Visitors.UML_Iterators.UML_Iterator'Class then 100 AMF.Visitors.UML_Iterators.UML_Iterator'Class 101 (Iterator).Visit_Sequence_Node 102 (Visitor, 103 AMF.UML.Sequence_Nodes.UML_Sequence_Node_Access (Self), 104 Control); 105 end if; 106 end Visit_Element; 107 108 ------------------------- 109 -- Get_Executable_Node -- 110 ------------------------- 111 112 overriding function Get_Executable_Node 113 (Self : not null access constant UML_Sequence_Node_Proxy) 114 return AMF.UML.Executable_Nodes.Collections.Ordered_Set_Of_UML_Executable_Node is 115 begin 116 return 117 AMF.UML.Executable_Nodes.Collections.Wrap 118 (AMF.Internals.Element_Collections.Wrap 119 (AMF.Internals.Tables.UML_Attributes.Internal_Get_Executable_Node 120 (Self.Element))); 121 end Get_Executable_Node; 122 123 ------------------ 124 -- Get_Activity -- 125 ------------------ 126 127 overriding function Get_Activity 128 (Self : not null access constant UML_Sequence_Node_Proxy) 129 return AMF.UML.Activities.UML_Activity_Access is 130 begin 131 return 132 AMF.UML.Activities.UML_Activity_Access 133 (AMF.Internals.Helpers.To_Element 134 (AMF.Internals.Tables.UML_Attributes.Internal_Get_Activity 135 (Self.Element))); 136 end Get_Activity; 137 138 ------------------ 139 -- Set_Activity -- 140 ------------------ 141 142 overriding procedure Set_Activity 143 (Self : not null access UML_Sequence_Node_Proxy; 144 To : AMF.UML.Activities.UML_Activity_Access) is 145 begin 146 AMF.Internals.Tables.UML_Attributes.Internal_Set_Activity 147 (Self.Element, 148 AMF.Internals.Helpers.To_Element 149 (AMF.Elements.Element_Access (To))); 150 end Set_Activity; 151 152 -------------- 153 -- Get_Edge -- 154 -------------- 155 156 overriding function Get_Edge 157 (Self : not null access constant UML_Sequence_Node_Proxy) 158 return AMF.UML.Activity_Edges.Collections.Set_Of_UML_Activity_Edge is 159 begin 160 return 161 AMF.UML.Activity_Edges.Collections.Wrap 162 (AMF.Internals.Element_Collections.Wrap 163 (AMF.Internals.Tables.UML_Attributes.Internal_Get_Edge 164 (Self.Element))); 165 end Get_Edge; 166 167 ---------------------- 168 -- Get_Must_Isolate -- 169 ---------------------- 170 171 overriding function Get_Must_Isolate 172 (Self : not null access constant UML_Sequence_Node_Proxy) 173 return Boolean is 174 begin 175 return 176 AMF.Internals.Tables.UML_Attributes.Internal_Get_Must_Isolate 177 (Self.Element); 178 end Get_Must_Isolate; 179 180 ---------------------- 181 -- Set_Must_Isolate -- 182 ---------------------- 183 184 overriding procedure Set_Must_Isolate 185 (Self : not null access UML_Sequence_Node_Proxy; 186 To : Boolean) is 187 begin 188 AMF.Internals.Tables.UML_Attributes.Internal_Set_Must_Isolate 189 (Self.Element, To); 190 end Set_Must_Isolate; 191 192 -------------- 193 -- Get_Node -- 194 -------------- 195 196 overriding function Get_Node 197 (Self : not null access constant UML_Sequence_Node_Proxy) 198 return AMF.UML.Activity_Nodes.Collections.Set_Of_UML_Activity_Node is 199 begin 200 return 201 AMF.UML.Activity_Nodes.Collections.Wrap 202 (AMF.Internals.Element_Collections.Wrap 203 (AMF.Internals.Tables.UML_Attributes.Internal_Get_Node 204 (Self.Element))); 205 end Get_Node; 206 207 ------------------------------- 208 -- Get_Structured_Node_Input -- 209 ------------------------------- 210 211 overriding function Get_Structured_Node_Input 212 (Self : not null access constant UML_Sequence_Node_Proxy) 213 return AMF.UML.Input_Pins.Collections.Set_Of_UML_Input_Pin is 214 begin 215 return 216 AMF.UML.Input_Pins.Collections.Wrap 217 (AMF.Internals.Element_Collections.Wrap 218 (AMF.Internals.Tables.UML_Attributes.Internal_Get_Structured_Node_Input 219 (Self.Element))); 220 end Get_Structured_Node_Input; 221 222 -------------------------------- 223 -- Get_Structured_Node_Output -- 224 -------------------------------- 225 226 overriding function Get_Structured_Node_Output 227 (Self : not null access constant UML_Sequence_Node_Proxy) 228 return AMF.UML.Output_Pins.Collections.Set_Of_UML_Output_Pin is 229 begin 230 return 231 AMF.UML.Output_Pins.Collections.Wrap 232 (AMF.Internals.Element_Collections.Wrap 233 (AMF.Internals.Tables.UML_Attributes.Internal_Get_Structured_Node_Output 234 (Self.Element))); 235 end Get_Structured_Node_Output; 236 237 ------------------ 238 -- Get_Variable -- 239 ------------------ 240 241 overriding function Get_Variable 242 (Self : not null access constant UML_Sequence_Node_Proxy) 243 return AMF.UML.Variables.Collections.Set_Of_UML_Variable is 244 begin 245 return 246 AMF.UML.Variables.Collections.Wrap 247 (AMF.Internals.Element_Collections.Wrap 248 (AMF.Internals.Tables.UML_Attributes.Internal_Get_Variable 249 (Self.Element))); 250 end Get_Variable; 251 252 ------------------------ 253 -- Get_Element_Import -- 254 ------------------------ 255 256 overriding function Get_Element_Import 257 (Self : not null access constant UML_Sequence_Node_Proxy) 258 return AMF.UML.Element_Imports.Collections.Set_Of_UML_Element_Import is 259 begin 260 return 261 AMF.UML.Element_Imports.Collections.Wrap 262 (AMF.Internals.Element_Collections.Wrap 263 (AMF.Internals.Tables.UML_Attributes.Internal_Get_Element_Import 264 (Self.Element))); 265 end Get_Element_Import; 266 267 ------------------------- 268 -- Get_Imported_Member -- 269 ------------------------- 270 271 overriding function Get_Imported_Member 272 (Self : not null access constant UML_Sequence_Node_Proxy) 273 return AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element is 274 begin 275 return 276 AMF.UML.Packageable_Elements.Collections.Wrap 277 (AMF.Internals.Element_Collections.Wrap 278 (AMF.Internals.Tables.UML_Attributes.Internal_Get_Imported_Member 279 (Self.Element))); 280 end Get_Imported_Member; 281 282 ---------------- 283 -- Get_Member -- 284 ---------------- 285 286 overriding function Get_Member 287 (Self : not null access constant UML_Sequence_Node_Proxy) 288 return AMF.UML.Named_Elements.Collections.Set_Of_UML_Named_Element is 289 begin 290 return 291 AMF.UML.Named_Elements.Collections.Wrap 292 (AMF.Internals.Element_Collections.Wrap 293 (AMF.Internals.Tables.UML_Attributes.Internal_Get_Member 294 (Self.Element))); 295 end Get_Member; 296 297 ---------------------- 298 -- Get_Owned_Member -- 299 ---------------------- 300 301 overriding function Get_Owned_Member 302 (Self : not null access constant UML_Sequence_Node_Proxy) 303 return AMF.UML.Named_Elements.Collections.Set_Of_UML_Named_Element is 304 begin 305 return 306 AMF.UML.Named_Elements.Collections.Wrap 307 (AMF.Internals.Element_Collections.Wrap 308 (AMF.Internals.Tables.UML_Attributes.Internal_Get_Owned_Member 309 (Self.Element))); 310 end Get_Owned_Member; 311 312 -------------------- 313 -- Get_Owned_Rule -- 314 -------------------- 315 316 overriding function Get_Owned_Rule 317 (Self : not null access constant UML_Sequence_Node_Proxy) 318 return AMF.UML.Constraints.Collections.Set_Of_UML_Constraint is 319 begin 320 return 321 AMF.UML.Constraints.Collections.Wrap 322 (AMF.Internals.Element_Collections.Wrap 323 (AMF.Internals.Tables.UML_Attributes.Internal_Get_Owned_Rule 324 (Self.Element))); 325 end Get_Owned_Rule; 326 327 ------------------------ 328 -- Get_Package_Import -- 329 ------------------------ 330 331 overriding function Get_Package_Import 332 (Self : not null access constant UML_Sequence_Node_Proxy) 333 return AMF.UML.Package_Imports.Collections.Set_Of_UML_Package_Import is 334 begin 335 return 336 AMF.UML.Package_Imports.Collections.Wrap 337 (AMF.Internals.Element_Collections.Wrap 338 (AMF.Internals.Tables.UML_Attributes.Internal_Get_Package_Import 339 (Self.Element))); 340 end Get_Package_Import; 341 342 --------------------------- 343 -- Get_Client_Dependency -- 344 --------------------------- 345 346 overriding function Get_Client_Dependency 347 (Self : not null access constant UML_Sequence_Node_Proxy) 348 return AMF.UML.Dependencies.Collections.Set_Of_UML_Dependency is 349 begin 350 return 351 AMF.UML.Dependencies.Collections.Wrap 352 (AMF.Internals.Element_Collections.Wrap 353 (AMF.Internals.Tables.UML_Attributes.Internal_Get_Client_Dependency 354 (Self.Element))); 355 end Get_Client_Dependency; 356 357 ------------------------- 358 -- Get_Name_Expression -- 359 ------------------------- 360 361 overriding function Get_Name_Expression 362 (Self : not null access constant UML_Sequence_Node_Proxy) 363 return AMF.UML.String_Expressions.UML_String_Expression_Access is 364 begin 365 return 366 AMF.UML.String_Expressions.UML_String_Expression_Access 367 (AMF.Internals.Helpers.To_Element 368 (AMF.Internals.Tables.UML_Attributes.Internal_Get_Name_Expression 369 (Self.Element))); 370 end Get_Name_Expression; 371 372 ------------------------- 373 -- Set_Name_Expression -- 374 ------------------------- 375 376 overriding procedure Set_Name_Expression 377 (Self : not null access UML_Sequence_Node_Proxy; 378 To : AMF.UML.String_Expressions.UML_String_Expression_Access) is 379 begin 380 AMF.Internals.Tables.UML_Attributes.Internal_Set_Name_Expression 381 (Self.Element, 382 AMF.Internals.Helpers.To_Element 383 (AMF.Elements.Element_Access (To))); 384 end Set_Name_Expression; 385 386 ------------------- 387 -- Get_Namespace -- 388 ------------------- 389 390 overriding function Get_Namespace 391 (Self : not null access constant UML_Sequence_Node_Proxy) 392 return AMF.UML.Namespaces.UML_Namespace_Access is 393 begin 394 return 395 AMF.UML.Namespaces.UML_Namespace_Access 396 (AMF.Internals.Helpers.To_Element 397 (AMF.Internals.Tables.UML_Attributes.Internal_Get_Namespace 398 (Self.Element))); 399 end Get_Namespace; 400 401 ------------------------ 402 -- Get_Qualified_Name -- 403 ------------------------ 404 405 overriding function Get_Qualified_Name 406 (Self : not null access constant UML_Sequence_Node_Proxy) 407 return AMF.Optional_String is 408 begin 409 declare 410 use type Matreshka.Internals.Strings.Shared_String_Access; 411 412 Aux : constant Matreshka.Internals.Strings.Shared_String_Access 413 := AMF.Internals.Tables.UML_Attributes.Internal_Get_Qualified_Name (Self.Element); 414 415 begin 416 if Aux = null then 417 return (Is_Empty => True); 418 419 else 420 return (False, League.Strings.Internals.Create (Aux)); 421 end if; 422 end; 423 end Get_Qualified_Name; 424 425 ------------------------ 426 -- Get_Contained_Edge -- 427 ------------------------ 428 429 overriding function Get_Contained_Edge 430 (Self : not null access constant UML_Sequence_Node_Proxy) 431 return AMF.UML.Activity_Edges.Collections.Set_Of_UML_Activity_Edge is 432 begin 433 return 434 AMF.UML.Activity_Edges.Collections.Wrap 435 (AMF.Internals.Element_Collections.Wrap 436 (AMF.Internals.Tables.UML_Attributes.Internal_Get_Contained_Edge 437 (Self.Element))); 438 end Get_Contained_Edge; 439 440 ------------------------ 441 -- Get_Contained_Node -- 442 ------------------------ 443 444 overriding function Get_Contained_Node 445 (Self : not null access constant UML_Sequence_Node_Proxy) 446 return AMF.UML.Activity_Nodes.Collections.Set_Of_UML_Activity_Node is 447 begin 448 return 449 AMF.UML.Activity_Nodes.Collections.Wrap 450 (AMF.Internals.Element_Collections.Wrap 451 (AMF.Internals.Tables.UML_Attributes.Internal_Get_Contained_Node 452 (Self.Element))); 453 end Get_Contained_Node; 454 455 --------------------- 456 -- Get_In_Activity -- 457 --------------------- 458 459 overriding function Get_In_Activity 460 (Self : not null access constant UML_Sequence_Node_Proxy) 461 return AMF.UML.Activities.UML_Activity_Access is 462 begin 463 return 464 AMF.UML.Activities.UML_Activity_Access 465 (AMF.Internals.Helpers.To_Element 466 (AMF.Internals.Tables.UML_Attributes.Internal_Get_In_Activity 467 (Self.Element))); 468 end Get_In_Activity; 469 470 --------------------- 471 -- Set_In_Activity -- 472 --------------------- 473 474 overriding procedure Set_In_Activity 475 (Self : not null access UML_Sequence_Node_Proxy; 476 To : AMF.UML.Activities.UML_Activity_Access) is 477 begin 478 AMF.Internals.Tables.UML_Attributes.Internal_Set_In_Activity 479 (Self.Element, 480 AMF.Internals.Helpers.To_Element 481 (AMF.Elements.Element_Access (To))); 482 end Set_In_Activity; 483 484 ------------------ 485 -- Get_Subgroup -- 486 ------------------ 487 488 overriding function Get_Subgroup 489 (Self : not null access constant UML_Sequence_Node_Proxy) 490 return AMF.UML.Activity_Groups.Collections.Set_Of_UML_Activity_Group is 491 begin 492 return 493 AMF.UML.Activity_Groups.Collections.Wrap 494 (AMF.Internals.Element_Collections.Wrap 495 (AMF.Internals.Tables.UML_Attributes.Internal_Get_Subgroup 496 (Self.Element))); 497 end Get_Subgroup; 498 499 --------------------- 500 -- Get_Super_Group -- 501 --------------------- 502 503 overriding function Get_Super_Group 504 (Self : not null access constant UML_Sequence_Node_Proxy) 505 return AMF.UML.Activity_Groups.UML_Activity_Group_Access is 506 begin 507 return 508 AMF.UML.Activity_Groups.UML_Activity_Group_Access 509 (AMF.Internals.Helpers.To_Element 510 (AMF.Internals.Tables.UML_Attributes.Internal_Get_Super_Group 511 (Self.Element))); 512 end Get_Super_Group; 513 514 ----------------- 515 -- Get_Context -- 516 ----------------- 517 518 overriding function Get_Context 519 (Self : not null access constant UML_Sequence_Node_Proxy) 520 return AMF.UML.Classifiers.UML_Classifier_Access is 521 begin 522 return 523 AMF.UML.Classifiers.UML_Classifier_Access 524 (AMF.Internals.Helpers.To_Element 525 (AMF.Internals.Tables.UML_Attributes.Internal_Get_Context 526 (Self.Element))); 527 end Get_Context; 528 529 --------------- 530 -- Get_Input -- 531 --------------- 532 533 overriding function Get_Input 534 (Self : not null access constant UML_Sequence_Node_Proxy) 535 return AMF.UML.Input_Pins.Collections.Ordered_Set_Of_UML_Input_Pin is 536 begin 537 return 538 AMF.UML.Input_Pins.Collections.Wrap 539 (AMF.Internals.Element_Collections.Wrap 540 (AMF.Internals.Tables.UML_Attributes.Internal_Get_Input 541 (Self.Element))); 542 end Get_Input; 543 544 ------------------------------ 545 -- Get_Is_Locally_Reentrant -- 546 ------------------------------ 547 548 overriding function Get_Is_Locally_Reentrant 549 (Self : not null access constant UML_Sequence_Node_Proxy) 550 return Boolean is 551 begin 552 return 553 AMF.Internals.Tables.UML_Attributes.Internal_Get_Is_Locally_Reentrant 554 (Self.Element); 555 end Get_Is_Locally_Reentrant; 556 557 ------------------------------ 558 -- Set_Is_Locally_Reentrant -- 559 ------------------------------ 560 561 overriding procedure Set_Is_Locally_Reentrant 562 (Self : not null access UML_Sequence_Node_Proxy; 563 To : Boolean) is 564 begin 565 AMF.Internals.Tables.UML_Attributes.Internal_Set_Is_Locally_Reentrant 566 (Self.Element, To); 567 end Set_Is_Locally_Reentrant; 568 569 ----------------------------- 570 -- Get_Local_Postcondition -- 571 ----------------------------- 572 573 overriding function Get_Local_Postcondition 574 (Self : not null access constant UML_Sequence_Node_Proxy) 575 return AMF.UML.Constraints.Collections.Set_Of_UML_Constraint is 576 begin 577 return 578 AMF.UML.Constraints.Collections.Wrap 579 (AMF.Internals.Element_Collections.Wrap 580 (AMF.Internals.Tables.UML_Attributes.Internal_Get_Local_Postcondition 581 (Self.Element))); 582 end Get_Local_Postcondition; 583 584 ---------------------------- 585 -- Get_Local_Precondition -- 586 ---------------------------- 587 588 overriding function Get_Local_Precondition 589 (Self : not null access constant UML_Sequence_Node_Proxy) 590 return AMF.UML.Constraints.Collections.Set_Of_UML_Constraint is 591 begin 592 return 593 AMF.UML.Constraints.Collections.Wrap 594 (AMF.Internals.Element_Collections.Wrap 595 (AMF.Internals.Tables.UML_Attributes.Internal_Get_Local_Precondition 596 (Self.Element))); 597 end Get_Local_Precondition; 598 599 ---------------- 600 -- Get_Output -- 601 ---------------- 602 603 overriding function Get_Output 604 (Self : not null access constant UML_Sequence_Node_Proxy) 605 return AMF.UML.Output_Pins.Collections.Ordered_Set_Of_UML_Output_Pin is 606 begin 607 return 608 AMF.UML.Output_Pins.Collections.Wrap 609 (AMF.Internals.Element_Collections.Wrap 610 (AMF.Internals.Tables.UML_Attributes.Internal_Get_Output 611 (Self.Element))); 612 end Get_Output; 613 614 ----------------- 615 -- Get_Handler -- 616 ----------------- 617 618 overriding function Get_Handler 619 (Self : not null access constant UML_Sequence_Node_Proxy) 620 return AMF.UML.Exception_Handlers.Collections.Set_Of_UML_Exception_Handler is 621 begin 622 return 623 AMF.UML.Exception_Handlers.Collections.Wrap 624 (AMF.Internals.Element_Collections.Wrap 625 (AMF.Internals.Tables.UML_Attributes.Internal_Get_Handler 626 (Self.Element))); 627 end Get_Handler; 628 629 ------------------ 630 -- Get_In_Group -- 631 ------------------ 632 633 overriding function Get_In_Group 634 (Self : not null access constant UML_Sequence_Node_Proxy) 635 return AMF.UML.Activity_Groups.Collections.Set_Of_UML_Activity_Group is 636 begin 637 return 638 AMF.UML.Activity_Groups.Collections.Wrap 639 (AMF.Internals.Element_Collections.Wrap 640 (AMF.Internals.Tables.UML_Attributes.Internal_Get_In_Group 641 (Self.Element))); 642 end Get_In_Group; 643 644 --------------------------------- 645 -- Get_In_Interruptible_Region -- 646 --------------------------------- 647 648 overriding function Get_In_Interruptible_Region 649 (Self : not null access constant UML_Sequence_Node_Proxy) 650 return AMF.UML.Interruptible_Activity_Regions.Collections.Set_Of_UML_Interruptible_Activity_Region is 651 begin 652 return 653 AMF.UML.Interruptible_Activity_Regions.Collections.Wrap 654 (AMF.Internals.Element_Collections.Wrap 655 (AMF.Internals.Tables.UML_Attributes.Internal_Get_In_Interruptible_Region 656 (Self.Element))); 657 end Get_In_Interruptible_Region; 658 659 ---------------------- 660 -- Get_In_Partition -- 661 ---------------------- 662 663 overriding function Get_In_Partition 664 (Self : not null access constant UML_Sequence_Node_Proxy) 665 return AMF.UML.Activity_Partitions.Collections.Set_Of_UML_Activity_Partition is 666 begin 667 return 668 AMF.UML.Activity_Partitions.Collections.Wrap 669 (AMF.Internals.Element_Collections.Wrap 670 (AMF.Internals.Tables.UML_Attributes.Internal_Get_In_Partition 671 (Self.Element))); 672 end Get_In_Partition; 673 674 ---------------------------- 675 -- Get_In_Structured_Node -- 676 ---------------------------- 677 678 overriding function Get_In_Structured_Node 679 (Self : not null access constant UML_Sequence_Node_Proxy) 680 return AMF.UML.Structured_Activity_Nodes.UML_Structured_Activity_Node_Access is 681 begin 682 return 683 AMF.UML.Structured_Activity_Nodes.UML_Structured_Activity_Node_Access 684 (AMF.Internals.Helpers.To_Element 685 (AMF.Internals.Tables.UML_Attributes.Internal_Get_In_Structured_Node 686 (Self.Element))); 687 end Get_In_Structured_Node; 688 689 ---------------------------- 690 -- Set_In_Structured_Node -- 691 ---------------------------- 692 693 overriding procedure Set_In_Structured_Node 694 (Self : not null access UML_Sequence_Node_Proxy; 695 To : AMF.UML.Structured_Activity_Nodes.UML_Structured_Activity_Node_Access) is 696 begin 697 AMF.Internals.Tables.UML_Attributes.Internal_Set_In_Structured_Node 698 (Self.Element, 699 AMF.Internals.Helpers.To_Element 700 (AMF.Elements.Element_Access (To))); 701 end Set_In_Structured_Node; 702 703 ------------------ 704 -- Get_Incoming -- 705 ------------------ 706 707 overriding function Get_Incoming 708 (Self : not null access constant UML_Sequence_Node_Proxy) 709 return AMF.UML.Activity_Edges.Collections.Set_Of_UML_Activity_Edge is 710 begin 711 return 712 AMF.UML.Activity_Edges.Collections.Wrap 713 (AMF.Internals.Element_Collections.Wrap 714 (AMF.Internals.Tables.UML_Attributes.Internal_Get_Incoming 715 (Self.Element))); 716 end Get_Incoming; 717 718 ------------------ 719 -- Get_Outgoing -- 720 ------------------ 721 722 overriding function Get_Outgoing 723 (Self : not null access constant UML_Sequence_Node_Proxy) 724 return AMF.UML.Activity_Edges.Collections.Set_Of_UML_Activity_Edge is 725 begin 726 return 727 AMF.UML.Activity_Edges.Collections.Wrap 728 (AMF.Internals.Element_Collections.Wrap 729 (AMF.Internals.Tables.UML_Attributes.Internal_Get_Outgoing 730 (Self.Element))); 731 end Get_Outgoing; 732 733 ------------------------ 734 -- Get_Redefined_Node -- 735 ------------------------ 736 737 overriding function Get_Redefined_Node 738 (Self : not null access constant UML_Sequence_Node_Proxy) 739 return AMF.UML.Activity_Nodes.Collections.Set_Of_UML_Activity_Node is 740 begin 741 return 742 AMF.UML.Activity_Nodes.Collections.Wrap 743 (AMF.Internals.Element_Collections.Wrap 744 (AMF.Internals.Tables.UML_Attributes.Internal_Get_Redefined_Node 745 (Self.Element))); 746 end Get_Redefined_Node; 747 748 ----------------- 749 -- Get_Is_Leaf -- 750 ----------------- 751 752 overriding function Get_Is_Leaf 753 (Self : not null access constant UML_Sequence_Node_Proxy) 754 return Boolean is 755 begin 756 return 757 AMF.Internals.Tables.UML_Attributes.Internal_Get_Is_Leaf 758 (Self.Element); 759 end Get_Is_Leaf; 760 761 ----------------- 762 -- Set_Is_Leaf -- 763 ----------------- 764 765 overriding procedure Set_Is_Leaf 766 (Self : not null access UML_Sequence_Node_Proxy; 767 To : Boolean) is 768 begin 769 AMF.Internals.Tables.UML_Attributes.Internal_Set_Is_Leaf 770 (Self.Element, To); 771 end Set_Is_Leaf; 772 773 --------------------------- 774 -- Get_Redefined_Element -- 775 --------------------------- 776 777 overriding function Get_Redefined_Element 778 (Self : not null access constant UML_Sequence_Node_Proxy) 779 return AMF.UML.Redefinable_Elements.Collections.Set_Of_UML_Redefinable_Element is 780 begin 781 return 782 AMF.UML.Redefinable_Elements.Collections.Wrap 783 (AMF.Internals.Element_Collections.Wrap 784 (AMF.Internals.Tables.UML_Attributes.Internal_Get_Redefined_Element 785 (Self.Element))); 786 end Get_Redefined_Element; 787 788 ------------------------------ 789 -- Get_Redefinition_Context -- 790 ------------------------------ 791 792 overriding function Get_Redefinition_Context 793 (Self : not null access constant UML_Sequence_Node_Proxy) 794 return AMF.UML.Classifiers.Collections.Set_Of_UML_Classifier is 795 begin 796 return 797 AMF.UML.Classifiers.Collections.Wrap 798 (AMF.Internals.Element_Collections.Wrap 799 (AMF.Internals.Tables.UML_Attributes.Internal_Get_Redefinition_Context 800 (Self.Element))); 801 end Get_Redefinition_Context; 802 803 ------------------------ 804 -- Exclude_Collisions -- 805 ------------------------ 806 807 overriding function Exclude_Collisions 808 (Self : not null access constant UML_Sequence_Node_Proxy; 809 Imps : AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element) 810 return AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element is 811 begin 812 -- Generated stub: replace with real body! 813 pragma Compile_Time_Warning (Standard.True, "Exclude_Collisions unimplemented"); 814 raise Program_Error with "Unimplemented procedure UML_Sequence_Node_Proxy.Exclude_Collisions"; 815 return Exclude_Collisions (Self, Imps); 816 end Exclude_Collisions; 817 818 ------------------------- 819 -- Get_Names_Of_Member -- 820 ------------------------- 821 822 overriding function Get_Names_Of_Member 823 (Self : not null access constant UML_Sequence_Node_Proxy; 824 Element : AMF.UML.Named_Elements.UML_Named_Element_Access) 825 return AMF.String_Collections.Set_Of_String is 826 begin 827 -- Generated stub: replace with real body! 828 pragma Compile_Time_Warning (Standard.True, "Get_Names_Of_Member unimplemented"); 829 raise Program_Error with "Unimplemented procedure UML_Sequence_Node_Proxy.Get_Names_Of_Member"; 830 return Get_Names_Of_Member (Self, Element); 831 end Get_Names_Of_Member; 832 833 -------------------- 834 -- Import_Members -- 835 -------------------- 836 837 overriding function Import_Members 838 (Self : not null access constant UML_Sequence_Node_Proxy; 839 Imps : AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element) 840 return AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element is 841 begin 842 -- Generated stub: replace with real body! 843 pragma Compile_Time_Warning (Standard.True, "Import_Members unimplemented"); 844 raise Program_Error with "Unimplemented procedure UML_Sequence_Node_Proxy.Import_Members"; 845 return Import_Members (Self, Imps); 846 end Import_Members; 847 848 --------------------- 849 -- Imported_Member -- 850 --------------------- 851 852 overriding function Imported_Member 853 (Self : not null access constant UML_Sequence_Node_Proxy) 854 return AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element is 855 begin 856 -- Generated stub: replace with real body! 857 pragma Compile_Time_Warning (Standard.True, "Imported_Member unimplemented"); 858 raise Program_Error with "Unimplemented procedure UML_Sequence_Node_Proxy.Imported_Member"; 859 return Imported_Member (Self); 860 end Imported_Member; 861 862 --------------------------------- 863 -- Members_Are_Distinguishable -- 864 --------------------------------- 865 866 overriding function Members_Are_Distinguishable 867 (Self : not null access constant UML_Sequence_Node_Proxy) 868 return Boolean is 869 begin 870 -- Generated stub: replace with real body! 871 pragma Compile_Time_Warning (Standard.True, "Members_Are_Distinguishable unimplemented"); 872 raise Program_Error with "Unimplemented procedure UML_Sequence_Node_Proxy.Members_Are_Distinguishable"; 873 return Members_Are_Distinguishable (Self); 874 end Members_Are_Distinguishable; 875 876 ------------------ 877 -- Owned_Member -- 878 ------------------ 879 880 overriding function Owned_Member 881 (Self : not null access constant UML_Sequence_Node_Proxy) 882 return AMF.UML.Named_Elements.Collections.Set_Of_UML_Named_Element is 883 begin 884 -- Generated stub: replace with real body! 885 pragma Compile_Time_Warning (Standard.True, "Owned_Member unimplemented"); 886 raise Program_Error with "Unimplemented procedure UML_Sequence_Node_Proxy.Owned_Member"; 887 return Owned_Member (Self); 888 end Owned_Member; 889 890 ------------------------- 891 -- All_Owning_Packages -- 892 ------------------------- 893 894 overriding function All_Owning_Packages 895 (Self : not null access constant UML_Sequence_Node_Proxy) 896 return AMF.UML.Packages.Collections.Set_Of_UML_Package is 897 begin 898 -- Generated stub: replace with real body! 899 pragma Compile_Time_Warning (Standard.True, "All_Owning_Packages unimplemented"); 900 raise Program_Error with "Unimplemented procedure UML_Sequence_Node_Proxy.All_Owning_Packages"; 901 return All_Owning_Packages (Self); 902 end All_Owning_Packages; 903 904 ----------------------------- 905 -- Is_Distinguishable_From -- 906 ----------------------------- 907 908 overriding function Is_Distinguishable_From 909 (Self : not null access constant UML_Sequence_Node_Proxy; 910 N : AMF.UML.Named_Elements.UML_Named_Element_Access; 911 Ns : AMF.UML.Namespaces.UML_Namespace_Access) 912 return Boolean is 913 begin 914 -- Generated stub: replace with real body! 915 pragma Compile_Time_Warning (Standard.True, "Is_Distinguishable_From unimplemented"); 916 raise Program_Error with "Unimplemented procedure UML_Sequence_Node_Proxy.Is_Distinguishable_From"; 917 return Is_Distinguishable_From (Self, N, Ns); 918 end Is_Distinguishable_From; 919 920 --------------- 921 -- Namespace -- 922 --------------- 923 924 overriding function Namespace 925 (Self : not null access constant UML_Sequence_Node_Proxy) 926 return AMF.UML.Namespaces.UML_Namespace_Access is 927 begin 928 -- Generated stub: replace with real body! 929 pragma Compile_Time_Warning (Standard.True, "Namespace unimplemented"); 930 raise Program_Error with "Unimplemented procedure UML_Sequence_Node_Proxy.Namespace"; 931 return Namespace (Self); 932 end Namespace; 933 934 ------------- 935 -- Context -- 936 ------------- 937 938 overriding function Context 939 (Self : not null access constant UML_Sequence_Node_Proxy) 940 return AMF.UML.Classifiers.UML_Classifier_Access is 941 begin 942 -- Generated stub: replace with real body! 943 pragma Compile_Time_Warning (Standard.True, "Context unimplemented"); 944 raise Program_Error with "Unimplemented procedure UML_Sequence_Node_Proxy.Context"; 945 return Context (Self); 946 end Context; 947 948 ------------------------ 949 -- Is_Consistent_With -- 950 ------------------------ 951 952 overriding function Is_Consistent_With 953 (Self : not null access constant UML_Sequence_Node_Proxy; 954 Redefinee : AMF.UML.Redefinable_Elements.UML_Redefinable_Element_Access) 955 return Boolean is 956 begin 957 -- Generated stub: replace with real body! 958 pragma Compile_Time_Warning (Standard.True, "Is_Consistent_With unimplemented"); 959 raise Program_Error with "Unimplemented procedure UML_Sequence_Node_Proxy.Is_Consistent_With"; 960 return Is_Consistent_With (Self, Redefinee); 961 end Is_Consistent_With; 962 963 ----------------------------------- 964 -- Is_Redefinition_Context_Valid -- 965 ----------------------------------- 966 967 overriding function Is_Redefinition_Context_Valid 968 (Self : not null access constant UML_Sequence_Node_Proxy; 969 Redefined : AMF.UML.Redefinable_Elements.UML_Redefinable_Element_Access) 970 return Boolean is 971 begin 972 -- Generated stub: replace with real body! 973 pragma Compile_Time_Warning (Standard.True, "Is_Redefinition_Context_Valid unimplemented"); 974 raise Program_Error with "Unimplemented procedure UML_Sequence_Node_Proxy.Is_Redefinition_Context_Valid"; 975 return Is_Redefinition_Context_Valid (Self, Redefined); 976 end Is_Redefinition_Context_Valid; 977 978end AMF.Internals.UML_Sequence_Nodes; 979