1------------------------------------------------------------------------------ 2-- -- 3-- Matreshka Project -- 4-- -- 5-- Ada Modeling Framework -- 6-- -- 7-- Runtime Library Component -- 8-- -- 9------------------------------------------------------------------------------ 10-- -- 11-- Copyright © 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: 2671 $ $Date: 2012-03-23 00:51:37 +0400 (Fri, 23 Mar 2012) $ 43------------------------------------------------------------------------------ 44-- This file is generated, don't edit it. 45------------------------------------------------------------------------------ 46with AMF.Elements; 47with AMF.Internals.Element_Collections; 48with AMF.Internals.Helpers; 49with AMF.Internals.Tables.OCL_Attributes; 50with AMF.String_Collections; 51with AMF.UML.Classifier_Template_Parameters; 52with AMF.UML.Classifiers.Collections; 53with AMF.UML.Collaboration_Uses.Collections; 54with AMF.UML.Comments.Collections; 55with AMF.UML.Constraints.Collections; 56with AMF.UML.Dependencies.Collections; 57with AMF.UML.Element_Imports.Collections; 58with AMF.UML.Elements.Collections; 59with AMF.UML.Features.Collections; 60with AMF.UML.Generalization_Sets.Collections; 61with AMF.UML.Generalizations.Collections; 62with AMF.UML.Named_Elements.Collections; 63with AMF.UML.Namespaces.Collections; 64with AMF.UML.Operations.Collections; 65with AMF.UML.Package_Imports.Collections; 66with AMF.UML.Packageable_Elements.Collections; 67with AMF.UML.Packages.Collections; 68with AMF.UML.Parameterable_Elements.Collections; 69with AMF.UML.Properties.Collections; 70with AMF.UML.Redefinable_Elements.Collections; 71with AMF.UML.Redefinable_Template_Signatures; 72with AMF.UML.String_Expressions; 73with AMF.UML.Substitutions.Collections; 74with AMF.UML.Template_Bindings.Collections; 75with AMF.UML.Template_Parameters; 76with AMF.UML.Template_Signatures; 77with AMF.UML.Types; 78with AMF.UML.Use_Cases.Collections; 79with AMF.Visitors.OCL_Iterators; 80with AMF.Visitors.OCL_Visitors; 81with League.Strings.Internals; 82with Matreshka.Internals.Strings; 83 84package body AMF.Internals.OCL_Tuple_Types is 85 86 ------------------------- 87 -- Get_Owned_Attribute -- 88 ------------------------- 89 90 overriding function Get_Owned_Attribute 91 (Self : not null access constant OCL_Tuple_Type_Proxy) 92 return AMF.UML.Properties.Collections.Ordered_Set_Of_UML_Property is 93 begin 94 return 95 AMF.UML.Properties.Collections.Wrap 96 (AMF.Internals.Element_Collections.Wrap 97 (AMF.Internals.Tables.OCL_Attributes.Internal_Get_Owned_Attribute 98 (Self.Element))); 99 end Get_Owned_Attribute; 100 101 ------------------------- 102 -- Get_Owned_Operation -- 103 ------------------------- 104 105 overriding function Get_Owned_Operation 106 (Self : not null access constant OCL_Tuple_Type_Proxy) 107 return AMF.UML.Operations.Collections.Ordered_Set_Of_UML_Operation is 108 begin 109 return 110 AMF.UML.Operations.Collections.Wrap 111 (AMF.Internals.Element_Collections.Wrap 112 (AMF.Internals.Tables.OCL_Attributes.Internal_Get_Owned_Operation 113 (Self.Element))); 114 end Get_Owned_Operation; 115 116 ------------------- 117 -- Get_Attribute -- 118 ------------------- 119 120 overriding function Get_Attribute 121 (Self : not null access constant OCL_Tuple_Type_Proxy) 122 return AMF.UML.Properties.Collections.Set_Of_UML_Property is 123 begin 124 return 125 AMF.UML.Properties.Collections.Wrap 126 (AMF.Internals.Element_Collections.Wrap 127 (AMF.Internals.Tables.OCL_Attributes.Internal_Get_Attribute 128 (Self.Element))); 129 end Get_Attribute; 130 131 --------------------------- 132 -- Get_Collaboration_Use -- 133 --------------------------- 134 135 overriding function Get_Collaboration_Use 136 (Self : not null access constant OCL_Tuple_Type_Proxy) 137 return AMF.UML.Collaboration_Uses.Collections.Set_Of_UML_Collaboration_Use is 138 begin 139 return 140 AMF.UML.Collaboration_Uses.Collections.Wrap 141 (AMF.Internals.Element_Collections.Wrap 142 (AMF.Internals.Tables.OCL_Attributes.Internal_Get_Collaboration_Use 143 (Self.Element))); 144 end Get_Collaboration_Use; 145 146 ----------------- 147 -- Get_Feature -- 148 ----------------- 149 150 overriding function Get_Feature 151 (Self : not null access constant OCL_Tuple_Type_Proxy) 152 return AMF.UML.Features.Collections.Set_Of_UML_Feature is 153 begin 154 return 155 AMF.UML.Features.Collections.Wrap 156 (AMF.Internals.Element_Collections.Wrap 157 (AMF.Internals.Tables.OCL_Attributes.Internal_Get_Feature 158 (Self.Element))); 159 end Get_Feature; 160 161 ----------------- 162 -- Get_General -- 163 ----------------- 164 165 overriding function Get_General 166 (Self : not null access constant OCL_Tuple_Type_Proxy) 167 return AMF.UML.Classifiers.Collections.Set_Of_UML_Classifier is 168 begin 169 return 170 AMF.UML.Classifiers.Collections.Wrap 171 (AMF.Internals.Element_Collections.Wrap 172 (AMF.Internals.Tables.OCL_Attributes.Internal_Get_General 173 (Self.Element))); 174 end Get_General; 175 176 ------------------------ 177 -- Get_Generalization -- 178 ------------------------ 179 180 overriding function Get_Generalization 181 (Self : not null access constant OCL_Tuple_Type_Proxy) 182 return AMF.UML.Generalizations.Collections.Set_Of_UML_Generalization is 183 begin 184 return 185 AMF.UML.Generalizations.Collections.Wrap 186 (AMF.Internals.Element_Collections.Wrap 187 (AMF.Internals.Tables.OCL_Attributes.Internal_Get_Generalization 188 (Self.Element))); 189 end Get_Generalization; 190 191 -------------------------- 192 -- Get_Inherited_Member -- 193 -------------------------- 194 195 overriding function Get_Inherited_Member 196 (Self : not null access constant OCL_Tuple_Type_Proxy) 197 return AMF.UML.Named_Elements.Collections.Set_Of_UML_Named_Element is 198 begin 199 return 200 AMF.UML.Named_Elements.Collections.Wrap 201 (AMF.Internals.Element_Collections.Wrap 202 (AMF.Internals.Tables.OCL_Attributes.Internal_Get_Inherited_Member 203 (Self.Element))); 204 end Get_Inherited_Member; 205 206 --------------------- 207 -- Get_Is_Abstract -- 208 --------------------- 209 210 overriding function Get_Is_Abstract 211 (Self : not null access constant OCL_Tuple_Type_Proxy) 212 return Boolean is 213 begin 214 return 215 AMF.Internals.Tables.OCL_Attributes.Internal_Get_Is_Abstract 216 (Self.Element); 217 end Get_Is_Abstract; 218 219 --------------------- 220 -- Set_Is_Abstract -- 221 --------------------- 222 223 overriding procedure Set_Is_Abstract 224 (Self : not null access OCL_Tuple_Type_Proxy; 225 To : Boolean) is 226 begin 227 AMF.Internals.Tables.OCL_Attributes.Internal_Set_Is_Abstract 228 (Self.Element, To); 229 end Set_Is_Abstract; 230 231 --------------------------------- 232 -- Get_Is_Final_Specialization -- 233 --------------------------------- 234 235 overriding function Get_Is_Final_Specialization 236 (Self : not null access constant OCL_Tuple_Type_Proxy) 237 return Boolean is 238 begin 239 return 240 AMF.Internals.Tables.OCL_Attributes.Internal_Get_Is_Final_Specialization 241 (Self.Element); 242 end Get_Is_Final_Specialization; 243 244 --------------------------------- 245 -- Set_Is_Final_Specialization -- 246 --------------------------------- 247 248 overriding procedure Set_Is_Final_Specialization 249 (Self : not null access OCL_Tuple_Type_Proxy; 250 To : Boolean) is 251 begin 252 AMF.Internals.Tables.OCL_Attributes.Internal_Set_Is_Final_Specialization 253 (Self.Element, To); 254 end Set_Is_Final_Specialization; 255 256 ---------------------------------- 257 -- Get_Owned_Template_Signature -- 258 ---------------------------------- 259 260 overriding function Get_Owned_Template_Signature 261 (Self : not null access constant OCL_Tuple_Type_Proxy) 262 return AMF.UML.Redefinable_Template_Signatures.UML_Redefinable_Template_Signature_Access is 263 begin 264 return 265 AMF.UML.Redefinable_Template_Signatures.UML_Redefinable_Template_Signature_Access 266 (AMF.Internals.Helpers.To_Element 267 (AMF.Internals.Tables.OCL_Attributes.Internal_Get_Owned_Template_Signature 268 (Self.Element))); 269 end Get_Owned_Template_Signature; 270 271 ---------------------------------- 272 -- Set_Owned_Template_Signature -- 273 ---------------------------------- 274 275 overriding procedure Set_Owned_Template_Signature 276 (Self : not null access OCL_Tuple_Type_Proxy; 277 To : AMF.UML.Redefinable_Template_Signatures.UML_Redefinable_Template_Signature_Access) is 278 begin 279 AMF.Internals.Tables.OCL_Attributes.Internal_Set_Owned_Template_Signature 280 (Self.Element, 281 AMF.Internals.Helpers.To_Element 282 (AMF.Elements.Element_Access (To))); 283 end Set_Owned_Template_Signature; 284 285 ------------------------ 286 -- Get_Owned_Use_Case -- 287 ------------------------ 288 289 overriding function Get_Owned_Use_Case 290 (Self : not null access constant OCL_Tuple_Type_Proxy) 291 return AMF.UML.Use_Cases.Collections.Set_Of_UML_Use_Case is 292 begin 293 return 294 AMF.UML.Use_Cases.Collections.Wrap 295 (AMF.Internals.Element_Collections.Wrap 296 (AMF.Internals.Tables.OCL_Attributes.Internal_Get_Owned_Use_Case 297 (Self.Element))); 298 end Get_Owned_Use_Case; 299 300 -------------------------- 301 -- Get_Powertype_Extent -- 302 -------------------------- 303 304 overriding function Get_Powertype_Extent 305 (Self : not null access constant OCL_Tuple_Type_Proxy) 306 return AMF.UML.Generalization_Sets.Collections.Set_Of_UML_Generalization_Set is 307 begin 308 return 309 AMF.UML.Generalization_Sets.Collections.Wrap 310 (AMF.Internals.Element_Collections.Wrap 311 (AMF.Internals.Tables.OCL_Attributes.Internal_Get_Powertype_Extent 312 (Self.Element))); 313 end Get_Powertype_Extent; 314 315 ------------------------------ 316 -- Get_Redefined_Classifier -- 317 ------------------------------ 318 319 overriding function Get_Redefined_Classifier 320 (Self : not null access constant OCL_Tuple_Type_Proxy) 321 return AMF.UML.Classifiers.Collections.Set_Of_UML_Classifier is 322 begin 323 return 324 AMF.UML.Classifiers.Collections.Wrap 325 (AMF.Internals.Element_Collections.Wrap 326 (AMF.Internals.Tables.OCL_Attributes.Internal_Get_Redefined_Classifier 327 (Self.Element))); 328 end Get_Redefined_Classifier; 329 330 ------------------------ 331 -- Get_Representation -- 332 ------------------------ 333 334 overriding function Get_Representation 335 (Self : not null access constant OCL_Tuple_Type_Proxy) 336 return AMF.UML.Collaboration_Uses.UML_Collaboration_Use_Access is 337 begin 338 return 339 AMF.UML.Collaboration_Uses.UML_Collaboration_Use_Access 340 (AMF.Internals.Helpers.To_Element 341 (AMF.Internals.Tables.OCL_Attributes.Internal_Get_Representation 342 (Self.Element))); 343 end Get_Representation; 344 345 ------------------------ 346 -- Set_Representation -- 347 ------------------------ 348 349 overriding procedure Set_Representation 350 (Self : not null access OCL_Tuple_Type_Proxy; 351 To : AMF.UML.Collaboration_Uses.UML_Collaboration_Use_Access) is 352 begin 353 AMF.Internals.Tables.OCL_Attributes.Internal_Set_Representation 354 (Self.Element, 355 AMF.Internals.Helpers.To_Element 356 (AMF.Elements.Element_Access (To))); 357 end Set_Representation; 358 359 ---------------------- 360 -- Get_Substitution -- 361 ---------------------- 362 363 overriding function Get_Substitution 364 (Self : not null access constant OCL_Tuple_Type_Proxy) 365 return AMF.UML.Substitutions.Collections.Set_Of_UML_Substitution is 366 begin 367 return 368 AMF.UML.Substitutions.Collections.Wrap 369 (AMF.Internals.Element_Collections.Wrap 370 (AMF.Internals.Tables.OCL_Attributes.Internal_Get_Substitution 371 (Self.Element))); 372 end Get_Substitution; 373 374 ---------------------------- 375 -- Get_Template_Parameter -- 376 ---------------------------- 377 378 overriding function Get_Template_Parameter 379 (Self : not null access constant OCL_Tuple_Type_Proxy) 380 return AMF.UML.Classifier_Template_Parameters.UML_Classifier_Template_Parameter_Access is 381 begin 382 return 383 AMF.UML.Classifier_Template_Parameters.UML_Classifier_Template_Parameter_Access 384 (AMF.Internals.Helpers.To_Element 385 (AMF.Internals.Tables.OCL_Attributes.Internal_Get_Template_Parameter 386 (Self.Element))); 387 end Get_Template_Parameter; 388 389 ---------------------------- 390 -- Set_Template_Parameter -- 391 ---------------------------- 392 393 overriding procedure Set_Template_Parameter 394 (Self : not null access OCL_Tuple_Type_Proxy; 395 To : AMF.UML.Classifier_Template_Parameters.UML_Classifier_Template_Parameter_Access) is 396 begin 397 AMF.Internals.Tables.OCL_Attributes.Internal_Set_Template_Parameter 398 (Self.Element, 399 AMF.Internals.Helpers.To_Element 400 (AMF.Elements.Element_Access (To))); 401 end Set_Template_Parameter; 402 403 ------------------ 404 -- Get_Use_Case -- 405 ------------------ 406 407 overriding function Get_Use_Case 408 (Self : not null access constant OCL_Tuple_Type_Proxy) 409 return AMF.UML.Use_Cases.Collections.Set_Of_UML_Use_Case is 410 begin 411 return 412 AMF.UML.Use_Cases.Collections.Wrap 413 (AMF.Internals.Element_Collections.Wrap 414 (AMF.Internals.Tables.OCL_Attributes.Internal_Get_Use_Case 415 (Self.Element))); 416 end Get_Use_Case; 417 418 ------------------------ 419 -- Get_Element_Import -- 420 ------------------------ 421 422 overriding function Get_Element_Import 423 (Self : not null access constant OCL_Tuple_Type_Proxy) 424 return AMF.UML.Element_Imports.Collections.Set_Of_UML_Element_Import is 425 begin 426 return 427 AMF.UML.Element_Imports.Collections.Wrap 428 (AMF.Internals.Element_Collections.Wrap 429 (AMF.Internals.Tables.OCL_Attributes.Internal_Get_Element_Import 430 (Self.Element))); 431 end Get_Element_Import; 432 433 ------------------------- 434 -- Get_Imported_Member -- 435 ------------------------- 436 437 overriding function Get_Imported_Member 438 (Self : not null access constant OCL_Tuple_Type_Proxy) 439 return AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element is 440 begin 441 return 442 AMF.UML.Packageable_Elements.Collections.Wrap 443 (AMF.Internals.Element_Collections.Wrap 444 (AMF.Internals.Tables.OCL_Attributes.Internal_Get_Imported_Member 445 (Self.Element))); 446 end Get_Imported_Member; 447 448 ---------------- 449 -- Get_Member -- 450 ---------------- 451 452 overriding function Get_Member 453 (Self : not null access constant OCL_Tuple_Type_Proxy) 454 return AMF.UML.Named_Elements.Collections.Set_Of_UML_Named_Element is 455 begin 456 return 457 AMF.UML.Named_Elements.Collections.Wrap 458 (AMF.Internals.Element_Collections.Wrap 459 (AMF.Internals.Tables.OCL_Attributes.Internal_Get_Member 460 (Self.Element))); 461 end Get_Member; 462 463 ---------------------- 464 -- Get_Owned_Member -- 465 ---------------------- 466 467 overriding function Get_Owned_Member 468 (Self : not null access constant OCL_Tuple_Type_Proxy) 469 return AMF.UML.Named_Elements.Collections.Set_Of_UML_Named_Element is 470 begin 471 return 472 AMF.UML.Named_Elements.Collections.Wrap 473 (AMF.Internals.Element_Collections.Wrap 474 (AMF.Internals.Tables.OCL_Attributes.Internal_Get_Owned_Member 475 (Self.Element))); 476 end Get_Owned_Member; 477 478 -------------------- 479 -- Get_Owned_Rule -- 480 -------------------- 481 482 overriding function Get_Owned_Rule 483 (Self : not null access constant OCL_Tuple_Type_Proxy) 484 return AMF.UML.Constraints.Collections.Set_Of_UML_Constraint is 485 begin 486 return 487 AMF.UML.Constraints.Collections.Wrap 488 (AMF.Internals.Element_Collections.Wrap 489 (AMF.Internals.Tables.OCL_Attributes.Internal_Get_Owned_Rule 490 (Self.Element))); 491 end Get_Owned_Rule; 492 493 ------------------------ 494 -- Get_Package_Import -- 495 ------------------------ 496 497 overriding function Get_Package_Import 498 (Self : not null access constant OCL_Tuple_Type_Proxy) 499 return AMF.UML.Package_Imports.Collections.Set_Of_UML_Package_Import is 500 begin 501 return 502 AMF.UML.Package_Imports.Collections.Wrap 503 (AMF.Internals.Element_Collections.Wrap 504 (AMF.Internals.Tables.OCL_Attributes.Internal_Get_Package_Import 505 (Self.Element))); 506 end Get_Package_Import; 507 508 --------------------------- 509 -- Get_Client_Dependency -- 510 --------------------------- 511 512 overriding function Get_Client_Dependency 513 (Self : not null access constant OCL_Tuple_Type_Proxy) 514 return AMF.UML.Dependencies.Collections.Set_Of_UML_Dependency is 515 begin 516 return 517 AMF.UML.Dependencies.Collections.Wrap 518 (AMF.Internals.Element_Collections.Wrap 519 (AMF.Internals.Tables.OCL_Attributes.Internal_Get_Client_Dependency 520 (Self.Element))); 521 end Get_Client_Dependency; 522 523 -------------- 524 -- Get_Name -- 525 -------------- 526 527 overriding function Get_Name 528 (Self : not null access constant OCL_Tuple_Type_Proxy) 529 return AMF.Optional_String is 530 begin 531 declare 532 use type Matreshka.Internals.Strings.Shared_String_Access; 533 534 Aux : constant Matreshka.Internals.Strings.Shared_String_Access 535 := AMF.Internals.Tables.OCL_Attributes.Internal_Get_Name (Self.Element); 536 537 begin 538 if Aux = null then 539 return (Is_Empty => True); 540 541 else 542 return (False, League.Strings.Internals.Create (Aux)); 543 end if; 544 end; 545 end Get_Name; 546 547 -------------- 548 -- Set_Name -- 549 -------------- 550 551 overriding procedure Set_Name 552 (Self : not null access OCL_Tuple_Type_Proxy; 553 To : AMF.Optional_String) is 554 begin 555 if To.Is_Empty then 556 AMF.Internals.Tables.OCL_Attributes.Internal_Set_Name 557 (Self.Element, null); 558 559 else 560 AMF.Internals.Tables.OCL_Attributes.Internal_Set_Name 561 (Self.Element, 562 League.Strings.Internals.Internal (To.Value)); 563 end if; 564 end Set_Name; 565 566 ------------------------- 567 -- Get_Name_Expression -- 568 ------------------------- 569 570 overriding function Get_Name_Expression 571 (Self : not null access constant OCL_Tuple_Type_Proxy) 572 return AMF.UML.String_Expressions.UML_String_Expression_Access is 573 begin 574 return 575 AMF.UML.String_Expressions.UML_String_Expression_Access 576 (AMF.Internals.Helpers.To_Element 577 (AMF.Internals.Tables.OCL_Attributes.Internal_Get_Name_Expression 578 (Self.Element))); 579 end Get_Name_Expression; 580 581 ------------------------- 582 -- Set_Name_Expression -- 583 ------------------------- 584 585 overriding procedure Set_Name_Expression 586 (Self : not null access OCL_Tuple_Type_Proxy; 587 To : AMF.UML.String_Expressions.UML_String_Expression_Access) is 588 begin 589 AMF.Internals.Tables.OCL_Attributes.Internal_Set_Name_Expression 590 (Self.Element, 591 AMF.Internals.Helpers.To_Element 592 (AMF.Elements.Element_Access (To))); 593 end Set_Name_Expression; 594 595 ------------------- 596 -- Get_Namespace -- 597 ------------------- 598 599 overriding function Get_Namespace 600 (Self : not null access constant OCL_Tuple_Type_Proxy) 601 return AMF.UML.Namespaces.UML_Namespace_Access is 602 begin 603 return 604 AMF.UML.Namespaces.UML_Namespace_Access 605 (AMF.Internals.Helpers.To_Element 606 (AMF.Internals.Tables.OCL_Attributes.Internal_Get_Namespace 607 (Self.Element))); 608 end Get_Namespace; 609 610 ------------------------ 611 -- Get_Qualified_Name -- 612 ------------------------ 613 614 overriding function Get_Qualified_Name 615 (Self : not null access constant OCL_Tuple_Type_Proxy) 616 return AMF.Optional_String is 617 begin 618 declare 619 use type Matreshka.Internals.Strings.Shared_String_Access; 620 621 Aux : constant Matreshka.Internals.Strings.Shared_String_Access 622 := AMF.Internals.Tables.OCL_Attributes.Internal_Get_Qualified_Name (Self.Element); 623 624 begin 625 if Aux = null then 626 return (Is_Empty => True); 627 628 else 629 return (False, League.Strings.Internals.Create (Aux)); 630 end if; 631 end; 632 end Get_Qualified_Name; 633 634 -------------------- 635 -- Get_Visibility -- 636 -------------------- 637 638 overriding function Get_Visibility 639 (Self : not null access constant OCL_Tuple_Type_Proxy) 640 return AMF.UML.Optional_UML_Visibility_Kind is 641 begin 642 return 643 AMF.Internals.Tables.OCL_Attributes.Internal_Get_Visibility 644 (Self.Element); 645 end Get_Visibility; 646 647 -------------------- 648 -- Set_Visibility -- 649 -------------------- 650 651 overriding procedure Set_Visibility 652 (Self : not null access OCL_Tuple_Type_Proxy; 653 To : AMF.UML.Optional_UML_Visibility_Kind) is 654 begin 655 AMF.Internals.Tables.OCL_Attributes.Internal_Set_Visibility 656 (Self.Element, To); 657 end Set_Visibility; 658 659 ----------------------- 660 -- Get_Owned_Comment -- 661 ----------------------- 662 663 overriding function Get_Owned_Comment 664 (Self : not null access constant OCL_Tuple_Type_Proxy) 665 return AMF.UML.Comments.Collections.Set_Of_UML_Comment is 666 begin 667 return 668 AMF.UML.Comments.Collections.Wrap 669 (AMF.Internals.Element_Collections.Wrap 670 (AMF.Internals.Tables.OCL_Attributes.Internal_Get_Owned_Comment 671 (Self.Element))); 672 end Get_Owned_Comment; 673 674 ----------------------- 675 -- Get_Owned_Element -- 676 ----------------------- 677 678 overriding function Get_Owned_Element 679 (Self : not null access constant OCL_Tuple_Type_Proxy) 680 return AMF.UML.Elements.Collections.Set_Of_UML_Element is 681 begin 682 return 683 AMF.UML.Elements.Collections.Wrap 684 (AMF.Internals.Element_Collections.Wrap 685 (AMF.Internals.Tables.OCL_Attributes.Internal_Get_Owned_Element 686 (Self.Element))); 687 end Get_Owned_Element; 688 689 --------------- 690 -- Get_Owner -- 691 --------------- 692 693 overriding function Get_Owner 694 (Self : not null access constant OCL_Tuple_Type_Proxy) 695 return AMF.UML.Elements.UML_Element_Access is 696 begin 697 return 698 AMF.UML.Elements.UML_Element_Access 699 (AMF.Internals.Helpers.To_Element 700 (AMF.Internals.Tables.OCL_Attributes.Internal_Get_Owner 701 (Self.Element))); 702 end Get_Owner; 703 704 ----------------- 705 -- Get_Package -- 706 ----------------- 707 708 overriding function Get_Package 709 (Self : not null access constant OCL_Tuple_Type_Proxy) 710 return AMF.UML.Packages.UML_Package_Access is 711 begin 712 return 713 AMF.UML.Packages.UML_Package_Access 714 (AMF.Internals.Helpers.To_Element 715 (AMF.Internals.Tables.OCL_Attributes.Internal_Get_Package 716 (Self.Element))); 717 end Get_Package; 718 719 ----------------- 720 -- Set_Package -- 721 ----------------- 722 723 overriding procedure Set_Package 724 (Self : not null access OCL_Tuple_Type_Proxy; 725 To : AMF.UML.Packages.UML_Package_Access) is 726 begin 727 AMF.Internals.Tables.OCL_Attributes.Internal_Set_Package 728 (Self.Element, 729 AMF.Internals.Helpers.To_Element 730 (AMF.Elements.Element_Access (To))); 731 end Set_Package; 732 733 -------------------- 734 -- Get_Visibility -- 735 -------------------- 736 737 overriding function Get_Visibility 738 (Self : not null access constant OCL_Tuple_Type_Proxy) 739 return AMF.UML.UML_Visibility_Kind is 740 begin 741 return 742 AMF.Internals.Tables.OCL_Attributes.Internal_Get_Visibility 743 (Self.Element).Value; 744 end Get_Visibility; 745 746 -------------------- 747 -- Set_Visibility -- 748 -------------------- 749 750 overriding procedure Set_Visibility 751 (Self : not null access OCL_Tuple_Type_Proxy; 752 To : AMF.UML.UML_Visibility_Kind) is 753 begin 754 AMF.Internals.Tables.OCL_Attributes.Internal_Set_Visibility 755 (Self.Element, (False, To)); 756 end Set_Visibility; 757 758 ----------------------------------- 759 -- Get_Owning_Template_Parameter -- 760 ----------------------------------- 761 762 overriding function Get_Owning_Template_Parameter 763 (Self : not null access constant OCL_Tuple_Type_Proxy) 764 return AMF.UML.Template_Parameters.UML_Template_Parameter_Access is 765 begin 766 return 767 AMF.UML.Template_Parameters.UML_Template_Parameter_Access 768 (AMF.Internals.Helpers.To_Element 769 (AMF.Internals.Tables.OCL_Attributes.Internal_Get_Owning_Template_Parameter 770 (Self.Element))); 771 end Get_Owning_Template_Parameter; 772 773 ----------------------------------- 774 -- Set_Owning_Template_Parameter -- 775 ----------------------------------- 776 777 overriding procedure Set_Owning_Template_Parameter 778 (Self : not null access OCL_Tuple_Type_Proxy; 779 To : AMF.UML.Template_Parameters.UML_Template_Parameter_Access) is 780 begin 781 AMF.Internals.Tables.OCL_Attributes.Internal_Set_Owning_Template_Parameter 782 (Self.Element, 783 AMF.Internals.Helpers.To_Element 784 (AMF.Elements.Element_Access (To))); 785 end Set_Owning_Template_Parameter; 786 787 ---------------------------- 788 -- Get_Template_Parameter -- 789 ---------------------------- 790 791 overriding function Get_Template_Parameter 792 (Self : not null access constant OCL_Tuple_Type_Proxy) 793 return AMF.UML.Template_Parameters.UML_Template_Parameter_Access is 794 begin 795 return 796 AMF.UML.Template_Parameters.UML_Template_Parameter_Access 797 (AMF.Internals.Helpers.To_Element 798 (AMF.Internals.Tables.OCL_Attributes.Internal_Get_Template_Parameter 799 (Self.Element))); 800 end Get_Template_Parameter; 801 802 ---------------------------- 803 -- Set_Template_Parameter -- 804 ---------------------------- 805 806 overriding procedure Set_Template_Parameter 807 (Self : not null access OCL_Tuple_Type_Proxy; 808 To : AMF.UML.Template_Parameters.UML_Template_Parameter_Access) is 809 begin 810 AMF.Internals.Tables.OCL_Attributes.Internal_Set_Template_Parameter 811 (Self.Element, 812 AMF.Internals.Helpers.To_Element 813 (AMF.Elements.Element_Access (To))); 814 end Set_Template_Parameter; 815 816 ---------------------------------- 817 -- Get_Owned_Template_Signature -- 818 ---------------------------------- 819 820 overriding function Get_Owned_Template_Signature 821 (Self : not null access constant OCL_Tuple_Type_Proxy) 822 return AMF.UML.Template_Signatures.UML_Template_Signature_Access is 823 begin 824 return 825 AMF.UML.Template_Signatures.UML_Template_Signature_Access 826 (AMF.Internals.Helpers.To_Element 827 (AMF.Internals.Tables.OCL_Attributes.Internal_Get_Owned_Template_Signature 828 (Self.Element))); 829 end Get_Owned_Template_Signature; 830 831 ---------------------------------- 832 -- Set_Owned_Template_Signature -- 833 ---------------------------------- 834 835 overriding procedure Set_Owned_Template_Signature 836 (Self : not null access OCL_Tuple_Type_Proxy; 837 To : AMF.UML.Template_Signatures.UML_Template_Signature_Access) is 838 begin 839 AMF.Internals.Tables.OCL_Attributes.Internal_Set_Owned_Template_Signature 840 (Self.Element, 841 AMF.Internals.Helpers.To_Element 842 (AMF.Elements.Element_Access (To))); 843 end Set_Owned_Template_Signature; 844 845 -------------------------- 846 -- Get_Template_Binding -- 847 -------------------------- 848 849 overriding function Get_Template_Binding 850 (Self : not null access constant OCL_Tuple_Type_Proxy) 851 return AMF.UML.Template_Bindings.Collections.Set_Of_UML_Template_Binding is 852 begin 853 return 854 AMF.UML.Template_Bindings.Collections.Wrap 855 (AMF.Internals.Element_Collections.Wrap 856 (AMF.Internals.Tables.OCL_Attributes.Internal_Get_Template_Binding 857 (Self.Element))); 858 end Get_Template_Binding; 859 860 ----------------- 861 -- Get_Is_Leaf -- 862 ----------------- 863 864 overriding function Get_Is_Leaf 865 (Self : not null access constant OCL_Tuple_Type_Proxy) 866 return Boolean is 867 begin 868 return 869 AMF.Internals.Tables.OCL_Attributes.Internal_Get_Is_Leaf 870 (Self.Element); 871 end Get_Is_Leaf; 872 873 ----------------- 874 -- Set_Is_Leaf -- 875 ----------------- 876 877 overriding procedure Set_Is_Leaf 878 (Self : not null access OCL_Tuple_Type_Proxy; 879 To : Boolean) is 880 begin 881 AMF.Internals.Tables.OCL_Attributes.Internal_Set_Is_Leaf 882 (Self.Element, To); 883 end Set_Is_Leaf; 884 885 --------------------------- 886 -- Get_Redefined_Element -- 887 --------------------------- 888 889 overriding function Get_Redefined_Element 890 (Self : not null access constant OCL_Tuple_Type_Proxy) 891 return AMF.UML.Redefinable_Elements.Collections.Set_Of_UML_Redefinable_Element is 892 begin 893 return 894 AMF.UML.Redefinable_Elements.Collections.Wrap 895 (AMF.Internals.Element_Collections.Wrap 896 (AMF.Internals.Tables.OCL_Attributes.Internal_Get_Redefined_Element 897 (Self.Element))); 898 end Get_Redefined_Element; 899 900 ------------------------------ 901 -- Get_Redefinition_Context -- 902 ------------------------------ 903 904 overriding function Get_Redefinition_Context 905 (Self : not null access constant OCL_Tuple_Type_Proxy) 906 return AMF.UML.Classifiers.Collections.Set_Of_UML_Classifier is 907 begin 908 return 909 AMF.UML.Classifiers.Collections.Wrap 910 (AMF.Internals.Element_Collections.Wrap 911 (AMF.Internals.Tables.OCL_Attributes.Internal_Get_Redefinition_Context 912 (Self.Element))); 913 end Get_Redefinition_Context; 914 915 ------------- 916 -- Inherit -- 917 ------------- 918 919 overriding function Inherit 920 (Self : not null access constant OCL_Tuple_Type_Proxy; 921 Inhs : AMF.UML.Named_Elements.Collections.Set_Of_UML_Named_Element) 922 return AMF.UML.Named_Elements.Collections.Set_Of_UML_Named_Element is 923 begin 924 -- Generated stub: replace with real body! 925 pragma Compile_Time_Warning (Standard.True, "Inherit unimplemented"); 926 raise Program_Error with "Unimplemented procedure OCL_Tuple_Type_Proxy.Inherit"; 927 return Inherit (Self, Inhs); 928 end Inherit; 929 930 ------------------ 931 -- All_Features -- 932 ------------------ 933 934 overriding function All_Features 935 (Self : not null access constant OCL_Tuple_Type_Proxy) 936 return AMF.UML.Features.Collections.Set_Of_UML_Feature is 937 begin 938 -- Generated stub: replace with real body! 939 pragma Compile_Time_Warning (Standard.True, "All_Features unimplemented"); 940 raise Program_Error with "Unimplemented procedure OCL_Tuple_Type_Proxy.All_Features"; 941 return All_Features (Self); 942 end All_Features; 943 944 ----------------- 945 -- All_Parents -- 946 ----------------- 947 948 overriding function All_Parents 949 (Self : not null access constant OCL_Tuple_Type_Proxy) 950 return AMF.UML.Classifiers.Collections.Set_Of_UML_Classifier is 951 begin 952 -- Generated stub: replace with real body! 953 pragma Compile_Time_Warning (Standard.True, "All_Parents unimplemented"); 954 raise Program_Error with "Unimplemented procedure OCL_Tuple_Type_Proxy.All_Parents"; 955 return All_Parents (Self); 956 end All_Parents; 957 958 ----------------- 959 -- Conforms_To -- 960 ----------------- 961 962 overriding function Conforms_To 963 (Self : not null access constant OCL_Tuple_Type_Proxy; 964 Other : AMF.UML.Classifiers.UML_Classifier_Access) 965 return Boolean is 966 begin 967 -- Generated stub: replace with real body! 968 pragma Compile_Time_Warning (Standard.True, "Conforms_To unimplemented"); 969 raise Program_Error with "Unimplemented procedure OCL_Tuple_Type_Proxy.Conforms_To"; 970 return Conforms_To (Self, Other); 971 end Conforms_To; 972 973 ------------- 974 -- General -- 975 ------------- 976 977 overriding function General 978 (Self : not null access constant OCL_Tuple_Type_Proxy) 979 return AMF.UML.Classifiers.Collections.Set_Of_UML_Classifier is 980 begin 981 -- Generated stub: replace with real body! 982 pragma Compile_Time_Warning (Standard.True, "General unimplemented"); 983 raise Program_Error with "Unimplemented procedure OCL_Tuple_Type_Proxy.General"; 984 return General (Self); 985 end General; 986 987 ----------------------- 988 -- Has_Visibility_Of -- 989 ----------------------- 990 991 overriding function Has_Visibility_Of 992 (Self : not null access constant OCL_Tuple_Type_Proxy; 993 N : AMF.UML.Named_Elements.UML_Named_Element_Access) 994 return Boolean is 995 begin 996 -- Generated stub: replace with real body! 997 pragma Compile_Time_Warning (Standard.True, "Has_Visibility_Of unimplemented"); 998 raise Program_Error with "Unimplemented procedure OCL_Tuple_Type_Proxy.Has_Visibility_Of"; 999 return Has_Visibility_Of (Self, N); 1000 end Has_Visibility_Of; 1001 1002 ------------------------- 1003 -- Inheritable_Members -- 1004 ------------------------- 1005 1006 overriding function Inheritable_Members 1007 (Self : not null access constant OCL_Tuple_Type_Proxy; 1008 C : AMF.UML.Classifiers.UML_Classifier_Access) 1009 return AMF.UML.Named_Elements.Collections.Set_Of_UML_Named_Element is 1010 begin 1011 -- Generated stub: replace with real body! 1012 pragma Compile_Time_Warning (Standard.True, "Inheritable_Members unimplemented"); 1013 raise Program_Error with "Unimplemented procedure OCL_Tuple_Type_Proxy.Inheritable_Members"; 1014 return Inheritable_Members (Self, C); 1015 end Inheritable_Members; 1016 1017 ---------------------- 1018 -- Inherited_Member -- 1019 ---------------------- 1020 1021 overriding function Inherited_Member 1022 (Self : not null access constant OCL_Tuple_Type_Proxy) 1023 return AMF.UML.Named_Elements.Collections.Set_Of_UML_Named_Element is 1024 begin 1025 -- Generated stub: replace with real body! 1026 pragma Compile_Time_Warning (Standard.True, "Inherited_Member unimplemented"); 1027 raise Program_Error with "Unimplemented procedure OCL_Tuple_Type_Proxy.Inherited_Member"; 1028 return Inherited_Member (Self); 1029 end Inherited_Member; 1030 1031 ----------------- 1032 -- Is_Template -- 1033 ----------------- 1034 1035 overriding function Is_Template 1036 (Self : not null access constant OCL_Tuple_Type_Proxy) 1037 return Boolean is 1038 begin 1039 -- Generated stub: replace with real body! 1040 pragma Compile_Time_Warning (Standard.True, "Is_Template unimplemented"); 1041 raise Program_Error with "Unimplemented procedure OCL_Tuple_Type_Proxy.Is_Template"; 1042 return Is_Template (Self); 1043 end Is_Template; 1044 1045 ------------------------- 1046 -- May_Specialize_Type -- 1047 ------------------------- 1048 1049 overriding function May_Specialize_Type 1050 (Self : not null access constant OCL_Tuple_Type_Proxy; 1051 C : AMF.UML.Classifiers.UML_Classifier_Access) 1052 return Boolean is 1053 begin 1054 -- Generated stub: replace with real body! 1055 pragma Compile_Time_Warning (Standard.True, "May_Specialize_Type unimplemented"); 1056 raise Program_Error with "Unimplemented procedure OCL_Tuple_Type_Proxy.May_Specialize_Type"; 1057 return May_Specialize_Type (Self, C); 1058 end May_Specialize_Type; 1059 1060 ------------- 1061 -- Parents -- 1062 ------------- 1063 1064 overriding function Parents 1065 (Self : not null access constant OCL_Tuple_Type_Proxy) 1066 return AMF.UML.Classifiers.Collections.Set_Of_UML_Classifier is 1067 begin 1068 -- Generated stub: replace with real body! 1069 pragma Compile_Time_Warning (Standard.True, "Parents unimplemented"); 1070 raise Program_Error with "Unimplemented procedure OCL_Tuple_Type_Proxy.Parents"; 1071 return Parents (Self); 1072 end Parents; 1073 1074 ------------------------ 1075 -- Exclude_Collisions -- 1076 ------------------------ 1077 1078 overriding function Exclude_Collisions 1079 (Self : not null access constant OCL_Tuple_Type_Proxy; 1080 Imps : AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element) 1081 return AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element is 1082 begin 1083 -- Generated stub: replace with real body! 1084 pragma Compile_Time_Warning (Standard.True, "Exclude_Collisions unimplemented"); 1085 raise Program_Error with "Unimplemented procedure OCL_Tuple_Type_Proxy.Exclude_Collisions"; 1086 return Exclude_Collisions (Self, Imps); 1087 end Exclude_Collisions; 1088 1089 ------------------------- 1090 -- Get_Names_Of_Member -- 1091 ------------------------- 1092 1093 overriding function Get_Names_Of_Member 1094 (Self : not null access constant OCL_Tuple_Type_Proxy; 1095 Element : AMF.UML.Named_Elements.UML_Named_Element_Access) 1096 return AMF.String_Collections.Set_Of_String is 1097 begin 1098 -- Generated stub: replace with real body! 1099 pragma Compile_Time_Warning (Standard.True, "Get_Names_Of_Member unimplemented"); 1100 raise Program_Error with "Unimplemented procedure OCL_Tuple_Type_Proxy.Get_Names_Of_Member"; 1101 return Get_Names_Of_Member (Self, Element); 1102 end Get_Names_Of_Member; 1103 1104 -------------------- 1105 -- Import_Members -- 1106 -------------------- 1107 1108 overriding function Import_Members 1109 (Self : not null access constant OCL_Tuple_Type_Proxy; 1110 Imps : AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element) 1111 return AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element is 1112 begin 1113 -- Generated stub: replace with real body! 1114 pragma Compile_Time_Warning (Standard.True, "Import_Members unimplemented"); 1115 raise Program_Error with "Unimplemented procedure OCL_Tuple_Type_Proxy.Import_Members"; 1116 return Import_Members (Self, Imps); 1117 end Import_Members; 1118 1119 --------------------- 1120 -- Imported_Member -- 1121 --------------------- 1122 1123 overriding function Imported_Member 1124 (Self : not null access constant OCL_Tuple_Type_Proxy) 1125 return AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element is 1126 begin 1127 -- Generated stub: replace with real body! 1128 pragma Compile_Time_Warning (Standard.True, "Imported_Member unimplemented"); 1129 raise Program_Error with "Unimplemented procedure OCL_Tuple_Type_Proxy.Imported_Member"; 1130 return Imported_Member (Self); 1131 end Imported_Member; 1132 1133 --------------------------------- 1134 -- Members_Are_Distinguishable -- 1135 --------------------------------- 1136 1137 overriding function Members_Are_Distinguishable 1138 (Self : not null access constant OCL_Tuple_Type_Proxy) 1139 return Boolean is 1140 begin 1141 -- Generated stub: replace with real body! 1142 pragma Compile_Time_Warning (Standard.True, "Members_Are_Distinguishable unimplemented"); 1143 raise Program_Error with "Unimplemented procedure OCL_Tuple_Type_Proxy.Members_Are_Distinguishable"; 1144 return Members_Are_Distinguishable (Self); 1145 end Members_Are_Distinguishable; 1146 1147 ------------------ 1148 -- Owned_Member -- 1149 ------------------ 1150 1151 overriding function Owned_Member 1152 (Self : not null access constant OCL_Tuple_Type_Proxy) 1153 return AMF.UML.Named_Elements.Collections.Set_Of_UML_Named_Element is 1154 begin 1155 -- Generated stub: replace with real body! 1156 pragma Compile_Time_Warning (Standard.True, "Owned_Member unimplemented"); 1157 raise Program_Error with "Unimplemented procedure OCL_Tuple_Type_Proxy.Owned_Member"; 1158 return Owned_Member (Self); 1159 end Owned_Member; 1160 1161 -------------------- 1162 -- All_Namespaces -- 1163 -------------------- 1164 1165 overriding function All_Namespaces 1166 (Self : not null access constant OCL_Tuple_Type_Proxy) 1167 return AMF.UML.Namespaces.Collections.Ordered_Set_Of_UML_Namespace is 1168 begin 1169 -- Generated stub: replace with real body! 1170 pragma Compile_Time_Warning (Standard.True, "All_Namespaces unimplemented"); 1171 raise Program_Error with "Unimplemented procedure OCL_Tuple_Type_Proxy.All_Namespaces"; 1172 return All_Namespaces (Self); 1173 end All_Namespaces; 1174 1175 ------------------------- 1176 -- All_Owning_Packages -- 1177 ------------------------- 1178 1179 overriding function All_Owning_Packages 1180 (Self : not null access constant OCL_Tuple_Type_Proxy) 1181 return AMF.UML.Packages.Collections.Set_Of_UML_Package is 1182 begin 1183 -- Generated stub: replace with real body! 1184 pragma Compile_Time_Warning (Standard.True, "All_Owning_Packages unimplemented"); 1185 raise Program_Error with "Unimplemented procedure OCL_Tuple_Type_Proxy.All_Owning_Packages"; 1186 return All_Owning_Packages (Self); 1187 end All_Owning_Packages; 1188 1189 ----------------------------- 1190 -- Is_Distinguishable_From -- 1191 ----------------------------- 1192 1193 overriding function Is_Distinguishable_From 1194 (Self : not null access constant OCL_Tuple_Type_Proxy; 1195 N : AMF.UML.Named_Elements.UML_Named_Element_Access; 1196 Ns : AMF.UML.Namespaces.UML_Namespace_Access) 1197 return Boolean is 1198 begin 1199 -- Generated stub: replace with real body! 1200 pragma Compile_Time_Warning (Standard.True, "Is_Distinguishable_From unimplemented"); 1201 raise Program_Error with "Unimplemented procedure OCL_Tuple_Type_Proxy.Is_Distinguishable_From"; 1202 return Is_Distinguishable_From (Self, N, Ns); 1203 end Is_Distinguishable_From; 1204 1205 --------------- 1206 -- Namespace -- 1207 --------------- 1208 1209 overriding function Namespace 1210 (Self : not null access constant OCL_Tuple_Type_Proxy) 1211 return AMF.UML.Namespaces.UML_Namespace_Access is 1212 begin 1213 -- Generated stub: replace with real body! 1214 pragma Compile_Time_Warning (Standard.True, "Namespace unimplemented"); 1215 raise Program_Error with "Unimplemented procedure OCL_Tuple_Type_Proxy.Namespace"; 1216 return Namespace (Self); 1217 end Namespace; 1218 1219 -------------------- 1220 -- Qualified_Name -- 1221 -------------------- 1222 1223 overriding function Qualified_Name 1224 (Self : not null access constant OCL_Tuple_Type_Proxy) 1225 return League.Strings.Universal_String is 1226 begin 1227 -- Generated stub: replace with real body! 1228 pragma Compile_Time_Warning (Standard.True, "Qualified_Name unimplemented"); 1229 raise Program_Error with "Unimplemented procedure OCL_Tuple_Type_Proxy.Qualified_Name"; 1230 return Qualified_Name (Self); 1231 end Qualified_Name; 1232 1233 --------------- 1234 -- Separator -- 1235 --------------- 1236 1237 overriding function Separator 1238 (Self : not null access constant OCL_Tuple_Type_Proxy) 1239 return League.Strings.Universal_String is 1240 begin 1241 -- Generated stub: replace with real body! 1242 pragma Compile_Time_Warning (Standard.True, "Separator unimplemented"); 1243 raise Program_Error with "Unimplemented procedure OCL_Tuple_Type_Proxy.Separator"; 1244 return Separator (Self); 1245 end Separator; 1246 1247 ------------------------ 1248 -- All_Owned_Elements -- 1249 ------------------------ 1250 1251 overriding function All_Owned_Elements 1252 (Self : not null access constant OCL_Tuple_Type_Proxy) 1253 return AMF.UML.Elements.Collections.Set_Of_UML_Element is 1254 begin 1255 -- Generated stub: replace with real body! 1256 pragma Compile_Time_Warning (Standard.True, "All_Owned_Elements unimplemented"); 1257 raise Program_Error with "Unimplemented procedure OCL_Tuple_Type_Proxy.All_Owned_Elements"; 1258 return All_Owned_Elements (Self); 1259 end All_Owned_Elements; 1260 1261 ------------------- 1262 -- Must_Be_Owned -- 1263 ------------------- 1264 1265 overriding function Must_Be_Owned 1266 (Self : not null access constant OCL_Tuple_Type_Proxy) 1267 return Boolean is 1268 begin 1269 -- Generated stub: replace with real body! 1270 pragma Compile_Time_Warning (Standard.True, "Must_Be_Owned unimplemented"); 1271 raise Program_Error with "Unimplemented procedure OCL_Tuple_Type_Proxy.Must_Be_Owned"; 1272 return Must_Be_Owned (Self); 1273 end Must_Be_Owned; 1274 1275 ----------------- 1276 -- Conforms_To -- 1277 ----------------- 1278 1279 overriding function Conforms_To 1280 (Self : not null access constant OCL_Tuple_Type_Proxy; 1281 Other : AMF.UML.Types.UML_Type_Access) 1282 return Boolean is 1283 begin 1284 -- Generated stub: replace with real body! 1285 pragma Compile_Time_Warning (Standard.True, "Conforms_To unimplemented"); 1286 raise Program_Error with "Unimplemented procedure OCL_Tuple_Type_Proxy.Conforms_To"; 1287 return Conforms_To (Self, Other); 1288 end Conforms_To; 1289 1290 ------------------------ 1291 -- Is_Compatible_With -- 1292 ------------------------ 1293 1294 overriding function Is_Compatible_With 1295 (Self : not null access constant OCL_Tuple_Type_Proxy; 1296 P : AMF.UML.Parameterable_Elements.UML_Parameterable_Element_Access) 1297 return Boolean is 1298 begin 1299 -- Generated stub: replace with real body! 1300 pragma Compile_Time_Warning (Standard.True, "Is_Compatible_With unimplemented"); 1301 raise Program_Error with "Unimplemented procedure OCL_Tuple_Type_Proxy.Is_Compatible_With"; 1302 return Is_Compatible_With (Self, P); 1303 end Is_Compatible_With; 1304 1305 --------------------------- 1306 -- Is_Template_Parameter -- 1307 --------------------------- 1308 1309 overriding function Is_Template_Parameter 1310 (Self : not null access constant OCL_Tuple_Type_Proxy) 1311 return Boolean is 1312 begin 1313 -- Generated stub: replace with real body! 1314 pragma Compile_Time_Warning (Standard.True, "Is_Template_Parameter unimplemented"); 1315 raise Program_Error with "Unimplemented procedure OCL_Tuple_Type_Proxy.Is_Template_Parameter"; 1316 return Is_Template_Parameter (Self); 1317 end Is_Template_Parameter; 1318 1319 ---------------------------- 1320 -- Parameterable_Elements -- 1321 ---------------------------- 1322 1323 overriding function Parameterable_Elements 1324 (Self : not null access constant OCL_Tuple_Type_Proxy) 1325 return AMF.UML.Parameterable_Elements.Collections.Set_Of_UML_Parameterable_Element is 1326 begin 1327 -- Generated stub: replace with real body! 1328 pragma Compile_Time_Warning (Standard.True, "Parameterable_Elements unimplemented"); 1329 raise Program_Error with "Unimplemented procedure OCL_Tuple_Type_Proxy.Parameterable_Elements"; 1330 return Parameterable_Elements (Self); 1331 end Parameterable_Elements; 1332 1333 ------------------------ 1334 -- Is_Consistent_With -- 1335 ------------------------ 1336 1337 overriding function Is_Consistent_With 1338 (Self : not null access constant OCL_Tuple_Type_Proxy; 1339 Redefinee : AMF.UML.Redefinable_Elements.UML_Redefinable_Element_Access) 1340 return Boolean is 1341 begin 1342 -- Generated stub: replace with real body! 1343 pragma Compile_Time_Warning (Standard.True, "Is_Consistent_With unimplemented"); 1344 raise Program_Error with "Unimplemented procedure OCL_Tuple_Type_Proxy.Is_Consistent_With"; 1345 return Is_Consistent_With (Self, Redefinee); 1346 end Is_Consistent_With; 1347 1348 ----------------------------------- 1349 -- Is_Redefinition_Context_Valid -- 1350 ----------------------------------- 1351 1352 overriding function Is_Redefinition_Context_Valid 1353 (Self : not null access constant OCL_Tuple_Type_Proxy; 1354 Redefined : AMF.UML.Redefinable_Elements.UML_Redefinable_Element_Access) 1355 return Boolean is 1356 begin 1357 -- Generated stub: replace with real body! 1358 pragma Compile_Time_Warning (Standard.True, "Is_Redefinition_Context_Valid unimplemented"); 1359 raise Program_Error with "Unimplemented procedure OCL_Tuple_Type_Proxy.Is_Redefinition_Context_Valid"; 1360 return Is_Redefinition_Context_Valid (Self, Redefined); 1361 end Is_Redefinition_Context_Valid; 1362 1363 ------------------- 1364 -- Enter_Element -- 1365 ------------------- 1366 1367 overriding procedure Enter_Element 1368 (Self : not null access constant OCL_Tuple_Type_Proxy; 1369 Visitor : in out AMF.Visitors.Abstract_Visitor'Class; 1370 Control : in out AMF.Visitors.Traverse_Control) is 1371 begin 1372 if Visitor in AMF.Visitors.OCL_Visitors.OCL_Visitor'Class then 1373 AMF.Visitors.OCL_Visitors.OCL_Visitor'Class 1374 (Visitor).Enter_Tuple_Type 1375 (AMF.OCL.Tuple_Types.OCL_Tuple_Type_Access (Self), 1376 Control); 1377 end if; 1378 end Enter_Element; 1379 1380 ------------------- 1381 -- Leave_Element -- 1382 ------------------- 1383 1384 overriding procedure Leave_Element 1385 (Self : not null access constant OCL_Tuple_Type_Proxy; 1386 Visitor : in out AMF.Visitors.Abstract_Visitor'Class; 1387 Control : in out AMF.Visitors.Traverse_Control) is 1388 begin 1389 if Visitor in AMF.Visitors.OCL_Visitors.OCL_Visitor'Class then 1390 AMF.Visitors.OCL_Visitors.OCL_Visitor'Class 1391 (Visitor).Leave_Tuple_Type 1392 (AMF.OCL.Tuple_Types.OCL_Tuple_Type_Access (Self), 1393 Control); 1394 end if; 1395 end Leave_Element; 1396 1397 ------------------- 1398 -- Visit_Element -- 1399 ------------------- 1400 1401 overriding procedure Visit_Element 1402 (Self : not null access constant OCL_Tuple_Type_Proxy; 1403 Iterator : in out AMF.Visitors.Abstract_Iterator'Class; 1404 Visitor : in out AMF.Visitors.Abstract_Visitor'Class; 1405 Control : in out AMF.Visitors.Traverse_Control) is 1406 begin 1407 if Iterator in AMF.Visitors.OCL_Iterators.OCL_Iterator'Class then 1408 AMF.Visitors.OCL_Iterators.OCL_Iterator'Class 1409 (Iterator).Visit_Tuple_Type 1410 (Visitor, 1411 AMF.OCL.Tuple_Types.OCL_Tuple_Type_Access (Self), 1412 Control); 1413 end if; 1414 end Visit_Element; 1415 1416end AMF.Internals.OCL_Tuple_Types; 1417