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: 2864 $ $Date: 2012-04-13 14:08:07 +0400 (Fri, 13 Apr 2012) $ 43------------------------------------------------------------------------------ 44with AMF.Internals.UML_Elements; 45with AMF.UML.Elements.Collections; 46with AMF.UML.Package_Merges; 47with AMF.UML.Packages; 48with AMF.Visitors; 49 50package AMF.Internals.UML_Package_Merges is 51 52 type UML_Package_Merge_Proxy is 53 limited new AMF.Internals.UML_Elements.UML_Element_Proxy 54 and AMF.UML.Package_Merges.UML_Package_Merge with null record; 55 56 overriding function Get_Merged_Package 57 (Self : not null access constant UML_Package_Merge_Proxy) 58 return AMF.UML.Packages.UML_Package_Access; 59 -- Getter of PackageMerge::mergedPackage. 60 -- 61 -- References the Package that is to be merged with the receiving package 62 -- of the PackageMerge. 63 64 overriding procedure Set_Merged_Package 65 (Self : not null access UML_Package_Merge_Proxy; 66 To : AMF.UML.Packages.UML_Package_Access); 67 -- Setter of PackageMerge::mergedPackage. 68 -- 69 -- References the Package that is to be merged with the receiving package 70 -- of the PackageMerge. 71 72 overriding function Get_Receiving_Package 73 (Self : not null access constant UML_Package_Merge_Proxy) 74 return AMF.UML.Packages.UML_Package_Access; 75 -- Getter of PackageMerge::receivingPackage. 76 -- 77 -- References the Package that is being extended with the contents of the 78 -- merged package of the PackageMerge. 79 80 overriding procedure Set_Receiving_Package 81 (Self : not null access UML_Package_Merge_Proxy; 82 To : AMF.UML.Packages.UML_Package_Access); 83 -- Setter of PackageMerge::receivingPackage. 84 -- 85 -- References the Package that is being extended with the contents of the 86 -- merged package of the PackageMerge. 87 88 overriding function Get_Source 89 (Self : not null access constant UML_Package_Merge_Proxy) 90 return AMF.UML.Elements.Collections.Set_Of_UML_Element; 91 -- Getter of DirectedRelationship::source. 92 -- 93 -- Specifies the sources of the DirectedRelationship. 94 95 overriding function Get_Target 96 (Self : not null access constant UML_Package_Merge_Proxy) 97 return AMF.UML.Elements.Collections.Set_Of_UML_Element; 98 -- Getter of DirectedRelationship::target. 99 -- 100 -- Specifies the targets of the DirectedRelationship. 101 102 overriding function Get_Related_Element 103 (Self : not null access constant UML_Package_Merge_Proxy) 104 return AMF.UML.Elements.Collections.Set_Of_UML_Element; 105 -- Getter of Relationship::relatedElement. 106 -- 107 -- Specifies the elements related by the Relationship. 108 109 overriding procedure Enter_Element 110 (Self : not null access constant UML_Package_Merge_Proxy; 111 Visitor : in out AMF.Visitors.Abstract_Visitor'Class; 112 Control : in out AMF.Visitors.Traverse_Control); 113 -- Dispatch call to corresponding subprogram of visitor interface. 114 115 overriding procedure Leave_Element 116 (Self : not null access constant UML_Package_Merge_Proxy; 117 Visitor : in out AMF.Visitors.Abstract_Visitor'Class; 118 Control : in out AMF.Visitors.Traverse_Control); 119 -- Dispatch call to corresponding subprogram of visitor interface. 120 121 overriding procedure Visit_Element 122 (Self : not null access constant UML_Package_Merge_Proxy; 123 Iterator : in out AMF.Visitors.Abstract_Iterator'Class; 124 Visitor : in out AMF.Visitors.Abstract_Visitor'Class; 125 Control : in out AMF.Visitors.Traverse_Control); 126 -- Dispatch call to corresponding subprogram of iterator interface. 127 128end AMF.Internals.UML_Package_Merges; 129