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: 2714 $ $Date: 2012-03-24 10:29:08 +0400 (Sat, 24 Mar 2012) $ 43------------------------------------------------------------------------------ 44-- This file is generated, don't edit it. 45------------------------------------------------------------------------------ 46-- A namespace is an element in a model that contains a set of named elements 47-- that can be identified by name. 48------------------------------------------------------------------------------ 49with AMF.String_Collections; 50limited with AMF.UML.Constraints.Collections; 51limited with AMF.UML.Element_Imports.Collections; 52with AMF.UML.Named_Elements; 53limited with AMF.UML.Named_Elements.Collections; 54limited with AMF.UML.Package_Imports.Collections; 55limited with AMF.UML.Packageable_Elements.Collections; 56 57package AMF.UML.Namespaces is 58 59 pragma Preelaborate; 60 61 type UML_Namespace is limited interface 62 and AMF.UML.Named_Elements.UML_Named_Element; 63 64 type UML_Namespace_Access is 65 access all UML_Namespace'Class; 66 for UML_Namespace_Access'Storage_Size use 0; 67 68 not overriding function Get_Element_Import 69 (Self : not null access constant UML_Namespace) 70 return AMF.UML.Element_Imports.Collections.Set_Of_UML_Element_Import is abstract; 71 -- Getter of Namespace::elementImport. 72 -- 73 -- References the ElementImports owned by the Namespace. 74 75 not overriding function Get_Imported_Member 76 (Self : not null access constant UML_Namespace) 77 return AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element is abstract; 78 -- Getter of Namespace::importedMember. 79 -- 80 -- References the PackageableElements that are members of this Namespace 81 -- as a result of either PackageImports or ElementImports. 82 83 not overriding function Get_Member 84 (Self : not null access constant UML_Namespace) 85 return AMF.UML.Named_Elements.Collections.Set_Of_UML_Named_Element is abstract; 86 -- Getter of Namespace::member. 87 -- 88 -- A collection of NamedElements identifiable within the Namespace, either 89 -- by being owned or by being introduced by importing or inheritance. 90 91 not overriding function Get_Owned_Member 92 (Self : not null access constant UML_Namespace) 93 return AMF.UML.Named_Elements.Collections.Set_Of_UML_Named_Element is abstract; 94 -- Getter of Namespace::ownedMember. 95 -- 96 -- A collection of NamedElements owned by the Namespace. 97 98 not overriding function Get_Owned_Rule 99 (Self : not null access constant UML_Namespace) 100 return AMF.UML.Constraints.Collections.Set_Of_UML_Constraint is abstract; 101 -- Getter of Namespace::ownedRule. 102 -- 103 -- Specifies a set of Constraints owned by this Namespace. 104 105 not overriding function Get_Package_Import 106 (Self : not null access constant UML_Namespace) 107 return AMF.UML.Package_Imports.Collections.Set_Of_UML_Package_Import is abstract; 108 -- Getter of Namespace::packageImport. 109 -- 110 -- References the PackageImports owned by the Namespace. 111 112 not overriding function Exclude_Collisions 113 (Self : not null access constant UML_Namespace; 114 Imps : AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element) 115 return AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element is abstract; 116 -- Operation Namespace::excludeCollisions. 117 -- 118 -- The query excludeCollisions() excludes from a set of 119 -- PackageableElements any that would not be distinguishable from each 120 -- other in this namespace. 121 122 not overriding function Get_Names_Of_Member 123 (Self : not null access constant UML_Namespace; 124 Element : AMF.UML.Named_Elements.UML_Named_Element_Access) 125 return AMF.String_Collections.Set_Of_String is abstract; 126 -- Operation Namespace::getNamesOfMember. 127 -- 128 -- The query getNamesOfMember() takes importing into account. It gives 129 -- back the set of names that an element would have in an importing 130 -- namespace, either because it is owned, or if not owned then imported 131 -- individually, or if not individually then from a package. 132 -- The query getNamesOfMember() gives a set of all of the names that a 133 -- member would have in a Namespace. In general a member can have multiple 134 -- names in a Namespace if it is imported more than once with different 135 -- aliases. The query takes account of importing. It gives back the set of 136 -- names that an element would have in an importing namespace, either 137 -- because it is owned, or if not owned then imported individually, or if 138 -- not individually then from a package. 139 140 not overriding function Import_Members 141 (Self : not null access constant UML_Namespace; 142 Imps : AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element) 143 return AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element is abstract; 144 -- Operation Namespace::importMembers. 145 -- 146 -- The query importMembers() defines which of a set of PackageableElements 147 -- are actually imported into the namespace. This excludes hidden ones, 148 -- i.e., those which have names that conflict with names of owned members, 149 -- and also excludes elements which would have the same name when imported. 150 151 not overriding function Imported_Member 152 (Self : not null access constant UML_Namespace) 153 return AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element is abstract; 154 -- Operation Namespace::importedMember. 155 -- 156 -- The importedMember property is derived from the ElementImports and the 157 -- PackageImports. References the PackageableElements that are members of 158 -- this Namespace as a result of either PackageImports or ElementImports. 159 160 not overriding function Members_Are_Distinguishable 161 (Self : not null access constant UML_Namespace) 162 return Boolean is abstract; 163 -- Operation Namespace::membersAreDistinguishable. 164 -- 165 -- The Boolean query membersAreDistinguishable() determines whether all of 166 -- the namespace's members are distinguishable within it. 167 168 not overriding function Owned_Member 169 (Self : not null access constant UML_Namespace) 170 return AMF.UML.Named_Elements.Collections.Set_Of_UML_Named_Element is abstract; 171 -- Operation Namespace::ownedMember. 172 -- 173 -- Missing derivation for Namespace::/ownedMember : NamedElement 174 175end AMF.UML.Namespaces; 176