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.Namespaces; 47with AMF.UML.Package_Imports; 48with AMF.UML.Packages; 49with AMF.Visitors; 50 51package AMF.Internals.UML_Package_Imports is 52 53 type UML_Package_Import_Proxy is 54 limited new AMF.Internals.UML_Elements.UML_Element_Proxy 55 and AMF.UML.Package_Imports.UML_Package_Import with null record; 56 57 overriding function Get_Imported_Package 58 (Self : not null access constant UML_Package_Import_Proxy) 59 return AMF.UML.Packages.UML_Package_Access; 60 -- Getter of PackageImport::importedPackage. 61 -- 62 -- Specifies the Package whose members are imported into a Namespace. 63 64 overriding procedure Set_Imported_Package 65 (Self : not null access UML_Package_Import_Proxy; 66 To : AMF.UML.Packages.UML_Package_Access); 67 -- Setter of PackageImport::importedPackage. 68 -- 69 -- Specifies the Package whose members are imported into a Namespace. 70 71 overriding function Get_Importing_Namespace 72 (Self : not null access constant UML_Package_Import_Proxy) 73 return AMF.UML.Namespaces.UML_Namespace_Access; 74 -- Getter of PackageImport::importingNamespace. 75 -- 76 -- Specifies the Namespace that imports the members from a Package. 77 78 overriding procedure Set_Importing_Namespace 79 (Self : not null access UML_Package_Import_Proxy; 80 To : AMF.UML.Namespaces.UML_Namespace_Access); 81 -- Setter of PackageImport::importingNamespace. 82 -- 83 -- Specifies the Namespace that imports the members from a Package. 84 85 overriding function Get_Visibility 86 (Self : not null access constant UML_Package_Import_Proxy) 87 return AMF.UML.UML_Visibility_Kind; 88 -- Getter of PackageImport::visibility. 89 -- 90 -- Specifies the visibility of the imported PackageableElements within the 91 -- importing Namespace, i.e., whether imported elements will in turn be 92 -- visible to other packages that use that importingPackage as an 93 -- importedPackage. If the PackageImport is public, the imported elements 94 -- will be visible outside the package, while if it is private they will 95 -- not. 96 97 overriding procedure Set_Visibility 98 (Self : not null access UML_Package_Import_Proxy; 99 To : AMF.UML.UML_Visibility_Kind); 100 -- Setter of PackageImport::visibility. 101 -- 102 -- Specifies the visibility of the imported PackageableElements within the 103 -- importing Namespace, i.e., whether imported elements will in turn be 104 -- visible to other packages that use that importingPackage as an 105 -- importedPackage. If the PackageImport is public, the imported elements 106 -- will be visible outside the package, while if it is private they will 107 -- not. 108 109 overriding function Get_Source 110 (Self : not null access constant UML_Package_Import_Proxy) 111 return AMF.UML.Elements.Collections.Set_Of_UML_Element; 112 -- Getter of DirectedRelationship::source. 113 -- 114 -- Specifies the sources of the DirectedRelationship. 115 116 overriding function Get_Target 117 (Self : not null access constant UML_Package_Import_Proxy) 118 return AMF.UML.Elements.Collections.Set_Of_UML_Element; 119 -- Getter of DirectedRelationship::target. 120 -- 121 -- Specifies the targets of the DirectedRelationship. 122 123 overriding function Get_Related_Element 124 (Self : not null access constant UML_Package_Import_Proxy) 125 return AMF.UML.Elements.Collections.Set_Of_UML_Element; 126 -- Getter of Relationship::relatedElement. 127 -- 128 -- Specifies the elements related by the Relationship. 129 130 overriding procedure Enter_Element 131 (Self : not null access constant UML_Package_Import_Proxy; 132 Visitor : in out AMF.Visitors.Abstract_Visitor'Class; 133 Control : in out AMF.Visitors.Traverse_Control); 134 -- Dispatch call to corresponding subprogram of visitor interface. 135 136 overriding procedure Leave_Element 137 (Self : not null access constant UML_Package_Import_Proxy; 138 Visitor : in out AMF.Visitors.Abstract_Visitor'Class; 139 Control : in out AMF.Visitors.Traverse_Control); 140 -- Dispatch call to corresponding subprogram of visitor interface. 141 142 overriding procedure Visit_Element 143 (Self : not null access constant UML_Package_Import_Proxy; 144 Iterator : in out AMF.Visitors.Abstract_Iterator'Class; 145 Visitor : in out AMF.Visitors.Abstract_Visitor'Class; 146 Control : in out AMF.Visitors.Traverse_Control); 147 -- Dispatch call to corresponding subprogram of iterator interface. 148 149end AMF.Internals.UML_Package_Imports; 150