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_Models is 54 55 ------------------- 56 -- Enter_Element -- 57 ------------------- 58 59 overriding procedure Enter_Element 60 (Self : not null access constant UML_Model_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_Model 67 (AMF.UML.Models.UML_Model_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_Model_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_Model 84 (AMF.UML.Models.UML_Model_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_Model_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_Model 102 (Visitor, 103 AMF.UML.Models.UML_Model_Access (Self), 104 Control); 105 end if; 106 end Visit_Element; 107 108 ------------------- 109 -- Get_Viewpoint -- 110 ------------------- 111 112 overriding function Get_Viewpoint 113 (Self : not null access constant UML_Model_Proxy) 114 return AMF.Optional_String is 115 begin 116 declare 117 use type Matreshka.Internals.Strings.Shared_String_Access; 118 119 Aux : constant Matreshka.Internals.Strings.Shared_String_Access 120 := AMF.Internals.Tables.UML_Attributes.Internal_Get_Viewpoint (Self.Element); 121 122 begin 123 if Aux = null then 124 return (Is_Empty => True); 125 126 else 127 return (False, League.Strings.Internals.Create (Aux)); 128 end if; 129 end; 130 end Get_Viewpoint; 131 132 ------------------- 133 -- Set_Viewpoint -- 134 ------------------- 135 136 overriding procedure Set_Viewpoint 137 (Self : not null access UML_Model_Proxy; 138 To : AMF.Optional_String) is 139 begin 140 if To.Is_Empty then 141 AMF.Internals.Tables.UML_Attributes.Internal_Set_Viewpoint 142 (Self.Element, null); 143 144 else 145 AMF.Internals.Tables.UML_Attributes.Internal_Set_Viewpoint 146 (Self.Element, 147 League.Strings.Internals.Internal (To.Value)); 148 end if; 149 end Set_Viewpoint; 150 151 ------------- 152 -- Get_URI -- 153 ------------- 154 155 overriding function Get_URI 156 (Self : not null access constant UML_Model_Proxy) 157 return AMF.Optional_String is 158 begin 159 declare 160 use type Matreshka.Internals.Strings.Shared_String_Access; 161 162 Aux : constant Matreshka.Internals.Strings.Shared_String_Access 163 := AMF.Internals.Tables.UML_Attributes.Internal_Get_URI (Self.Element); 164 165 begin 166 if Aux = null then 167 return (Is_Empty => True); 168 169 else 170 return (False, League.Strings.Internals.Create (Aux)); 171 end if; 172 end; 173 end Get_URI; 174 175 ------------- 176 -- Set_URI -- 177 ------------- 178 179 overriding procedure Set_URI 180 (Self : not null access UML_Model_Proxy; 181 To : AMF.Optional_String) is 182 begin 183 if To.Is_Empty then 184 AMF.Internals.Tables.UML_Attributes.Internal_Set_URI 185 (Self.Element, null); 186 187 else 188 AMF.Internals.Tables.UML_Attributes.Internal_Set_URI 189 (Self.Element, 190 League.Strings.Internals.Internal (To.Value)); 191 end if; 192 end Set_URI; 193 194 ------------------------ 195 -- Get_Nested_Package -- 196 ------------------------ 197 198 overriding function Get_Nested_Package 199 (Self : not null access constant UML_Model_Proxy) 200 return AMF.UML.Packages.Collections.Set_Of_UML_Package is 201 begin 202 return 203 AMF.UML.Packages.Collections.Wrap 204 (AMF.Internals.Element_Collections.Wrap 205 (AMF.Internals.Tables.UML_Attributes.Internal_Get_Nested_Package 206 (Self.Element))); 207 end Get_Nested_Package; 208 209 ------------------------- 210 -- Get_Nesting_Package -- 211 ------------------------- 212 213 overriding function Get_Nesting_Package 214 (Self : not null access constant UML_Model_Proxy) 215 return AMF.UML.Packages.UML_Package_Access is 216 begin 217 return 218 AMF.UML.Packages.UML_Package_Access 219 (AMF.Internals.Helpers.To_Element 220 (AMF.Internals.Tables.UML_Attributes.Internal_Get_Nesting_Package 221 (Self.Element))); 222 end Get_Nesting_Package; 223 224 ------------------------- 225 -- Set_Nesting_Package -- 226 ------------------------- 227 228 overriding procedure Set_Nesting_Package 229 (Self : not null access UML_Model_Proxy; 230 To : AMF.UML.Packages.UML_Package_Access) is 231 begin 232 AMF.Internals.Tables.UML_Attributes.Internal_Set_Nesting_Package 233 (Self.Element, 234 AMF.Internals.Helpers.To_Element 235 (AMF.Elements.Element_Access (To))); 236 end Set_Nesting_Package; 237 238 -------------------------- 239 -- Get_Owned_Stereotype -- 240 -------------------------- 241 242 overriding function Get_Owned_Stereotype 243 (Self : not null access constant UML_Model_Proxy) 244 return AMF.UML.Stereotypes.Collections.Set_Of_UML_Stereotype is 245 begin 246 return 247 AMF.UML.Stereotypes.Collections.Wrap 248 (AMF.Internals.Element_Collections.Wrap 249 (AMF.Internals.Tables.UML_Attributes.Internal_Get_Owned_Stereotype 250 (Self.Element))); 251 end Get_Owned_Stereotype; 252 253 -------------------- 254 -- Get_Owned_Type -- 255 -------------------- 256 257 overriding function Get_Owned_Type 258 (Self : not null access constant UML_Model_Proxy) 259 return AMF.UML.Types.Collections.Set_Of_UML_Type is 260 begin 261 return 262 AMF.UML.Types.Collections.Wrap 263 (AMF.Internals.Element_Collections.Wrap 264 (AMF.Internals.Tables.UML_Attributes.Internal_Get_Owned_Type 265 (Self.Element))); 266 end Get_Owned_Type; 267 268 ----------------------- 269 -- Get_Package_Merge -- 270 ----------------------- 271 272 overriding function Get_Package_Merge 273 (Self : not null access constant UML_Model_Proxy) 274 return AMF.UML.Package_Merges.Collections.Set_Of_UML_Package_Merge is 275 begin 276 return 277 AMF.UML.Package_Merges.Collections.Wrap 278 (AMF.Internals.Element_Collections.Wrap 279 (AMF.Internals.Tables.UML_Attributes.Internal_Get_Package_Merge 280 (Self.Element))); 281 end Get_Package_Merge; 282 283 -------------------------- 284 -- Get_Packaged_Element -- 285 -------------------------- 286 287 overriding function Get_Packaged_Element 288 (Self : not null access constant UML_Model_Proxy) 289 return AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element is 290 begin 291 return 292 AMF.UML.Packageable_Elements.Collections.Wrap 293 (AMF.Internals.Element_Collections.Wrap 294 (AMF.Internals.Tables.UML_Attributes.Internal_Get_Packaged_Element 295 (Self.Element))); 296 end Get_Packaged_Element; 297 298 ----------------------------- 299 -- Get_Profile_Application -- 300 ----------------------------- 301 302 overriding function Get_Profile_Application 303 (Self : not null access constant UML_Model_Proxy) 304 return AMF.UML.Profile_Applications.Collections.Set_Of_UML_Profile_Application is 305 begin 306 return 307 AMF.UML.Profile_Applications.Collections.Wrap 308 (AMF.Internals.Element_Collections.Wrap 309 (AMF.Internals.Tables.UML_Attributes.Internal_Get_Profile_Application 310 (Self.Element))); 311 end Get_Profile_Application; 312 313 ------------------------ 314 -- Get_Element_Import -- 315 ------------------------ 316 317 overriding function Get_Element_Import 318 (Self : not null access constant UML_Model_Proxy) 319 return AMF.UML.Element_Imports.Collections.Set_Of_UML_Element_Import is 320 begin 321 return 322 AMF.UML.Element_Imports.Collections.Wrap 323 (AMF.Internals.Element_Collections.Wrap 324 (AMF.Internals.Tables.UML_Attributes.Internal_Get_Element_Import 325 (Self.Element))); 326 end Get_Element_Import; 327 328 ------------------------- 329 -- Get_Imported_Member -- 330 ------------------------- 331 332 overriding function Get_Imported_Member 333 (Self : not null access constant UML_Model_Proxy) 334 return AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element is 335 begin 336 return 337 AMF.UML.Packageable_Elements.Collections.Wrap 338 (AMF.Internals.Element_Collections.Wrap 339 (AMF.Internals.Tables.UML_Attributes.Internal_Get_Imported_Member 340 (Self.Element))); 341 end Get_Imported_Member; 342 343 ---------------- 344 -- Get_Member -- 345 ---------------- 346 347 overriding function Get_Member 348 (Self : not null access constant UML_Model_Proxy) 349 return AMF.UML.Named_Elements.Collections.Set_Of_UML_Named_Element is 350 begin 351 return 352 AMF.UML.Named_Elements.Collections.Wrap 353 (AMF.Internals.Element_Collections.Wrap 354 (AMF.Internals.Tables.UML_Attributes.Internal_Get_Member 355 (Self.Element))); 356 end Get_Member; 357 358 ---------------------- 359 -- Get_Owned_Member -- 360 ---------------------- 361 362 overriding function Get_Owned_Member 363 (Self : not null access constant UML_Model_Proxy) 364 return AMF.UML.Named_Elements.Collections.Set_Of_UML_Named_Element is 365 begin 366 return 367 AMF.UML.Named_Elements.Collections.Wrap 368 (AMF.Internals.Element_Collections.Wrap 369 (AMF.Internals.Tables.UML_Attributes.Internal_Get_Owned_Member 370 (Self.Element))); 371 end Get_Owned_Member; 372 373 -------------------- 374 -- Get_Owned_Rule -- 375 -------------------- 376 377 overriding function Get_Owned_Rule 378 (Self : not null access constant UML_Model_Proxy) 379 return AMF.UML.Constraints.Collections.Set_Of_UML_Constraint is 380 begin 381 return 382 AMF.UML.Constraints.Collections.Wrap 383 (AMF.Internals.Element_Collections.Wrap 384 (AMF.Internals.Tables.UML_Attributes.Internal_Get_Owned_Rule 385 (Self.Element))); 386 end Get_Owned_Rule; 387 388 ------------------------ 389 -- Get_Package_Import -- 390 ------------------------ 391 392 overriding function Get_Package_Import 393 (Self : not null access constant UML_Model_Proxy) 394 return AMF.UML.Package_Imports.Collections.Set_Of_UML_Package_Import is 395 begin 396 return 397 AMF.UML.Package_Imports.Collections.Wrap 398 (AMF.Internals.Element_Collections.Wrap 399 (AMF.Internals.Tables.UML_Attributes.Internal_Get_Package_Import 400 (Self.Element))); 401 end Get_Package_Import; 402 403 --------------------------- 404 -- Get_Client_Dependency -- 405 --------------------------- 406 407 overriding function Get_Client_Dependency 408 (Self : not null access constant UML_Model_Proxy) 409 return AMF.UML.Dependencies.Collections.Set_Of_UML_Dependency is 410 begin 411 return 412 AMF.UML.Dependencies.Collections.Wrap 413 (AMF.Internals.Element_Collections.Wrap 414 (AMF.Internals.Tables.UML_Attributes.Internal_Get_Client_Dependency 415 (Self.Element))); 416 end Get_Client_Dependency; 417 418 ------------------------- 419 -- Get_Name_Expression -- 420 ------------------------- 421 422 overriding function Get_Name_Expression 423 (Self : not null access constant UML_Model_Proxy) 424 return AMF.UML.String_Expressions.UML_String_Expression_Access is 425 begin 426 return 427 AMF.UML.String_Expressions.UML_String_Expression_Access 428 (AMF.Internals.Helpers.To_Element 429 (AMF.Internals.Tables.UML_Attributes.Internal_Get_Name_Expression 430 (Self.Element))); 431 end Get_Name_Expression; 432 433 ------------------------- 434 -- Set_Name_Expression -- 435 ------------------------- 436 437 overriding procedure Set_Name_Expression 438 (Self : not null access UML_Model_Proxy; 439 To : AMF.UML.String_Expressions.UML_String_Expression_Access) is 440 begin 441 AMF.Internals.Tables.UML_Attributes.Internal_Set_Name_Expression 442 (Self.Element, 443 AMF.Internals.Helpers.To_Element 444 (AMF.Elements.Element_Access (To))); 445 end Set_Name_Expression; 446 447 ------------------- 448 -- Get_Namespace -- 449 ------------------- 450 451 overriding function Get_Namespace 452 (Self : not null access constant UML_Model_Proxy) 453 return AMF.UML.Namespaces.UML_Namespace_Access is 454 begin 455 return 456 AMF.UML.Namespaces.UML_Namespace_Access 457 (AMF.Internals.Helpers.To_Element 458 (AMF.Internals.Tables.UML_Attributes.Internal_Get_Namespace 459 (Self.Element))); 460 end Get_Namespace; 461 462 ------------------------ 463 -- Get_Qualified_Name -- 464 ------------------------ 465 466 overriding function Get_Qualified_Name 467 (Self : not null access constant UML_Model_Proxy) 468 return AMF.Optional_String is 469 begin 470 declare 471 use type Matreshka.Internals.Strings.Shared_String_Access; 472 473 Aux : constant Matreshka.Internals.Strings.Shared_String_Access 474 := AMF.Internals.Tables.UML_Attributes.Internal_Get_Qualified_Name (Self.Element); 475 476 begin 477 if Aux = null then 478 return (Is_Empty => True); 479 480 else 481 return (False, League.Strings.Internals.Create (Aux)); 482 end if; 483 end; 484 end Get_Qualified_Name; 485 486 ----------------------------------- 487 -- Get_Owning_Template_Parameter -- 488 ----------------------------------- 489 490 overriding function Get_Owning_Template_Parameter 491 (Self : not null access constant UML_Model_Proxy) 492 return AMF.UML.Template_Parameters.UML_Template_Parameter_Access is 493 begin 494 return 495 AMF.UML.Template_Parameters.UML_Template_Parameter_Access 496 (AMF.Internals.Helpers.To_Element 497 (AMF.Internals.Tables.UML_Attributes.Internal_Get_Owning_Template_Parameter 498 (Self.Element))); 499 end Get_Owning_Template_Parameter; 500 501 ----------------------------------- 502 -- Set_Owning_Template_Parameter -- 503 ----------------------------------- 504 505 overriding procedure Set_Owning_Template_Parameter 506 (Self : not null access UML_Model_Proxy; 507 To : AMF.UML.Template_Parameters.UML_Template_Parameter_Access) is 508 begin 509 AMF.Internals.Tables.UML_Attributes.Internal_Set_Owning_Template_Parameter 510 (Self.Element, 511 AMF.Internals.Helpers.To_Element 512 (AMF.Elements.Element_Access (To))); 513 end Set_Owning_Template_Parameter; 514 515 ---------------------------- 516 -- Get_Template_Parameter -- 517 ---------------------------- 518 519 overriding function Get_Template_Parameter 520 (Self : not null access constant UML_Model_Proxy) 521 return AMF.UML.Template_Parameters.UML_Template_Parameter_Access is 522 begin 523 return 524 AMF.UML.Template_Parameters.UML_Template_Parameter_Access 525 (AMF.Internals.Helpers.To_Element 526 (AMF.Internals.Tables.UML_Attributes.Internal_Get_Template_Parameter 527 (Self.Element))); 528 end Get_Template_Parameter; 529 530 ---------------------------- 531 -- Set_Template_Parameter -- 532 ---------------------------- 533 534 overriding procedure Set_Template_Parameter 535 (Self : not null access UML_Model_Proxy; 536 To : AMF.UML.Template_Parameters.UML_Template_Parameter_Access) is 537 begin 538 AMF.Internals.Tables.UML_Attributes.Internal_Set_Template_Parameter 539 (Self.Element, 540 AMF.Internals.Helpers.To_Element 541 (AMF.Elements.Element_Access (To))); 542 end Set_Template_Parameter; 543 544 ---------------------------------- 545 -- Get_Owned_Template_Signature -- 546 ---------------------------------- 547 548 overriding function Get_Owned_Template_Signature 549 (Self : not null access constant UML_Model_Proxy) 550 return AMF.UML.Template_Signatures.UML_Template_Signature_Access is 551 begin 552 return 553 AMF.UML.Template_Signatures.UML_Template_Signature_Access 554 (AMF.Internals.Helpers.To_Element 555 (AMF.Internals.Tables.UML_Attributes.Internal_Get_Owned_Template_Signature 556 (Self.Element))); 557 end Get_Owned_Template_Signature; 558 559 ---------------------------------- 560 -- Set_Owned_Template_Signature -- 561 ---------------------------------- 562 563 overriding procedure Set_Owned_Template_Signature 564 (Self : not null access UML_Model_Proxy; 565 To : AMF.UML.Template_Signatures.UML_Template_Signature_Access) is 566 begin 567 AMF.Internals.Tables.UML_Attributes.Internal_Set_Owned_Template_Signature 568 (Self.Element, 569 AMF.Internals.Helpers.To_Element 570 (AMF.Elements.Element_Access (To))); 571 end Set_Owned_Template_Signature; 572 573 -------------------------- 574 -- Get_Template_Binding -- 575 -------------------------- 576 577 overriding function Get_Template_Binding 578 (Self : not null access constant UML_Model_Proxy) 579 return AMF.UML.Template_Bindings.Collections.Set_Of_UML_Template_Binding is 580 begin 581 return 582 AMF.UML.Template_Bindings.Collections.Wrap 583 (AMF.Internals.Element_Collections.Wrap 584 (AMF.Internals.Tables.UML_Attributes.Internal_Get_Template_Binding 585 (Self.Element))); 586 end Get_Template_Binding; 587 588 -------------------------------- 589 -- All_Applicable_Stereotypes -- 590 -------------------------------- 591 592 overriding function All_Applicable_Stereotypes 593 (Self : not null access constant UML_Model_Proxy) 594 return AMF.UML.Stereotypes.Collections.Set_Of_UML_Stereotype is 595 begin 596 -- Generated stub: replace with real body! 597 pragma Compile_Time_Warning (Standard.True, "All_Applicable_Stereotypes unimplemented"); 598 raise Program_Error with "Unimplemented procedure UML_Model_Proxy.All_Applicable_Stereotypes"; 599 return All_Applicable_Stereotypes (Self); 600 end All_Applicable_Stereotypes; 601 602 ------------------------ 603 -- Containing_Profile -- 604 ------------------------ 605 606 overriding function Containing_Profile 607 (Self : not null access constant UML_Model_Proxy) 608 return AMF.UML.Profiles.UML_Profile_Access is 609 begin 610 -- Generated stub: replace with real body! 611 pragma Compile_Time_Warning (Standard.True, "Containing_Profile unimplemented"); 612 raise Program_Error with "Unimplemented procedure UML_Model_Proxy.Containing_Profile"; 613 return Containing_Profile (Self); 614 end Containing_Profile; 615 616 ------------------- 617 -- Makes_Visible -- 618 ------------------- 619 620 overriding function Makes_Visible 621 (Self : not null access constant UML_Model_Proxy; 622 El : AMF.UML.Named_Elements.UML_Named_Element_Access) 623 return Boolean is 624 begin 625 -- Generated stub: replace with real body! 626 pragma Compile_Time_Warning (Standard.True, "Makes_Visible unimplemented"); 627 raise Program_Error with "Unimplemented procedure UML_Model_Proxy.Makes_Visible"; 628 return Makes_Visible (Self, El); 629 end Makes_Visible; 630 631 -------------------- 632 -- Nested_Package -- 633 -------------------- 634 635 overriding function Nested_Package 636 (Self : not null access constant UML_Model_Proxy) 637 return AMF.UML.Packages.Collections.Set_Of_UML_Package is 638 begin 639 -- Generated stub: replace with real body! 640 pragma Compile_Time_Warning (Standard.True, "Nested_Package unimplemented"); 641 raise Program_Error with "Unimplemented procedure UML_Model_Proxy.Nested_Package"; 642 return Nested_Package (Self); 643 end Nested_Package; 644 645 ---------------------- 646 -- Owned_Stereotype -- 647 ---------------------- 648 649 overriding function Owned_Stereotype 650 (Self : not null access constant UML_Model_Proxy) 651 return AMF.UML.Stereotypes.Collections.Set_Of_UML_Stereotype is 652 begin 653 -- Generated stub: replace with real body! 654 pragma Compile_Time_Warning (Standard.True, "Owned_Stereotype unimplemented"); 655 raise Program_Error with "Unimplemented procedure UML_Model_Proxy.Owned_Stereotype"; 656 return Owned_Stereotype (Self); 657 end Owned_Stereotype; 658 659 ---------------- 660 -- Owned_Type -- 661 ---------------- 662 663 overriding function Owned_Type 664 (Self : not null access constant UML_Model_Proxy) 665 return AMF.UML.Types.Collections.Set_Of_UML_Type is 666 begin 667 -- Generated stub: replace with real body! 668 pragma Compile_Time_Warning (Standard.True, "Owned_Type unimplemented"); 669 raise Program_Error with "Unimplemented procedure UML_Model_Proxy.Owned_Type"; 670 return Owned_Type (Self); 671 end Owned_Type; 672 673 --------------------- 674 -- Visible_Members -- 675 --------------------- 676 677 overriding function Visible_Members 678 (Self : not null access constant UML_Model_Proxy) 679 return AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element is 680 begin 681 -- Generated stub: replace with real body! 682 pragma Compile_Time_Warning (Standard.True, "Visible_Members unimplemented"); 683 raise Program_Error with "Unimplemented procedure UML_Model_Proxy.Visible_Members"; 684 return Visible_Members (Self); 685 end Visible_Members; 686 687 ------------------------ 688 -- Exclude_Collisions -- 689 ------------------------ 690 691 overriding function Exclude_Collisions 692 (Self : not null access constant UML_Model_Proxy; 693 Imps : AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element) 694 return AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element is 695 begin 696 -- Generated stub: replace with real body! 697 pragma Compile_Time_Warning (Standard.True, "Exclude_Collisions unimplemented"); 698 raise Program_Error with "Unimplemented procedure UML_Model_Proxy.Exclude_Collisions"; 699 return Exclude_Collisions (Self, Imps); 700 end Exclude_Collisions; 701 702 ------------------------- 703 -- Get_Names_Of_Member -- 704 ------------------------- 705 706 overriding function Get_Names_Of_Member 707 (Self : not null access constant UML_Model_Proxy; 708 Element : AMF.UML.Named_Elements.UML_Named_Element_Access) 709 return AMF.String_Collections.Set_Of_String is 710 begin 711 -- Generated stub: replace with real body! 712 pragma Compile_Time_Warning (Standard.True, "Get_Names_Of_Member unimplemented"); 713 raise Program_Error with "Unimplemented procedure UML_Model_Proxy.Get_Names_Of_Member"; 714 return Get_Names_Of_Member (Self, Element); 715 end Get_Names_Of_Member; 716 717 -------------------- 718 -- Import_Members -- 719 -------------------- 720 721 overriding function Import_Members 722 (Self : not null access constant UML_Model_Proxy; 723 Imps : AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element) 724 return AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element is 725 begin 726 -- Generated stub: replace with real body! 727 pragma Compile_Time_Warning (Standard.True, "Import_Members unimplemented"); 728 raise Program_Error with "Unimplemented procedure UML_Model_Proxy.Import_Members"; 729 return Import_Members (Self, Imps); 730 end Import_Members; 731 732 --------------------- 733 -- Imported_Member -- 734 --------------------- 735 736 overriding function Imported_Member 737 (Self : not null access constant UML_Model_Proxy) 738 return AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element is 739 begin 740 -- Generated stub: replace with real body! 741 pragma Compile_Time_Warning (Standard.True, "Imported_Member unimplemented"); 742 raise Program_Error with "Unimplemented procedure UML_Model_Proxy.Imported_Member"; 743 return Imported_Member (Self); 744 end Imported_Member; 745 746 --------------------------------- 747 -- Members_Are_Distinguishable -- 748 --------------------------------- 749 750 overriding function Members_Are_Distinguishable 751 (Self : not null access constant UML_Model_Proxy) 752 return Boolean is 753 begin 754 -- Generated stub: replace with real body! 755 pragma Compile_Time_Warning (Standard.True, "Members_Are_Distinguishable unimplemented"); 756 raise Program_Error with "Unimplemented procedure UML_Model_Proxy.Members_Are_Distinguishable"; 757 return Members_Are_Distinguishable (Self); 758 end Members_Are_Distinguishable; 759 760 ------------------ 761 -- Owned_Member -- 762 ------------------ 763 764 overriding function Owned_Member 765 (Self : not null access constant UML_Model_Proxy) 766 return AMF.UML.Named_Elements.Collections.Set_Of_UML_Named_Element is 767 begin 768 -- Generated stub: replace with real body! 769 pragma Compile_Time_Warning (Standard.True, "Owned_Member unimplemented"); 770 raise Program_Error with "Unimplemented procedure UML_Model_Proxy.Owned_Member"; 771 return Owned_Member (Self); 772 end Owned_Member; 773 774 ------------------------- 775 -- All_Owning_Packages -- 776 ------------------------- 777 778 overriding function All_Owning_Packages 779 (Self : not null access constant UML_Model_Proxy) 780 return AMF.UML.Packages.Collections.Set_Of_UML_Package is 781 begin 782 -- Generated stub: replace with real body! 783 pragma Compile_Time_Warning (Standard.True, "All_Owning_Packages unimplemented"); 784 raise Program_Error with "Unimplemented procedure UML_Model_Proxy.All_Owning_Packages"; 785 return All_Owning_Packages (Self); 786 end All_Owning_Packages; 787 788 ----------------------------- 789 -- Is_Distinguishable_From -- 790 ----------------------------- 791 792 overriding function Is_Distinguishable_From 793 (Self : not null access constant UML_Model_Proxy; 794 N : AMF.UML.Named_Elements.UML_Named_Element_Access; 795 Ns : AMF.UML.Namespaces.UML_Namespace_Access) 796 return Boolean is 797 begin 798 -- Generated stub: replace with real body! 799 pragma Compile_Time_Warning (Standard.True, "Is_Distinguishable_From unimplemented"); 800 raise Program_Error with "Unimplemented procedure UML_Model_Proxy.Is_Distinguishable_From"; 801 return Is_Distinguishable_From (Self, N, Ns); 802 end Is_Distinguishable_From; 803 804 --------------- 805 -- Namespace -- 806 --------------- 807 808 overriding function Namespace 809 (Self : not null access constant UML_Model_Proxy) 810 return AMF.UML.Namespaces.UML_Namespace_Access is 811 begin 812 -- Generated stub: replace with real body! 813 pragma Compile_Time_Warning (Standard.True, "Namespace unimplemented"); 814 raise Program_Error with "Unimplemented procedure UML_Model_Proxy.Namespace"; 815 return Namespace (Self); 816 end Namespace; 817 818 ------------------------ 819 -- Is_Compatible_With -- 820 ------------------------ 821 822 overriding function Is_Compatible_With 823 (Self : not null access constant UML_Model_Proxy; 824 P : AMF.UML.Parameterable_Elements.UML_Parameterable_Element_Access) 825 return Boolean is 826 begin 827 -- Generated stub: replace with real body! 828 pragma Compile_Time_Warning (Standard.True, "Is_Compatible_With unimplemented"); 829 raise Program_Error with "Unimplemented procedure UML_Model_Proxy.Is_Compatible_With"; 830 return Is_Compatible_With (Self, P); 831 end Is_Compatible_With; 832 833 --------------------------- 834 -- Is_Template_Parameter -- 835 --------------------------- 836 837 overriding function Is_Template_Parameter 838 (Self : not null access constant UML_Model_Proxy) 839 return Boolean is 840 begin 841 -- Generated stub: replace with real body! 842 pragma Compile_Time_Warning (Standard.True, "Is_Template_Parameter unimplemented"); 843 raise Program_Error with "Unimplemented procedure UML_Model_Proxy.Is_Template_Parameter"; 844 return Is_Template_Parameter (Self); 845 end Is_Template_Parameter; 846 847 ----------------- 848 -- Is_Template -- 849 ----------------- 850 851 overriding function Is_Template 852 (Self : not null access constant UML_Model_Proxy) 853 return Boolean is 854 begin 855 -- Generated stub: replace with real body! 856 pragma Compile_Time_Warning (Standard.True, "Is_Template unimplemented"); 857 raise Program_Error with "Unimplemented procedure UML_Model_Proxy.Is_Template"; 858 return Is_Template (Self); 859 end Is_Template; 860 861 ---------------------------- 862 -- Parameterable_Elements -- 863 ---------------------------- 864 865 overriding function Parameterable_Elements 866 (Self : not null access constant UML_Model_Proxy) 867 return AMF.UML.Parameterable_Elements.Collections.Set_Of_UML_Parameterable_Element is 868 begin 869 -- Generated stub: replace with real body! 870 pragma Compile_Time_Warning (Standard.True, "Parameterable_Elements unimplemented"); 871 raise Program_Error with "Unimplemented procedure UML_Model_Proxy.Parameterable_Elements"; 872 return Parameterable_Elements (Self); 873 end Parameterable_Elements; 874 875end AMF.Internals.UML_Models; 876