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: 3364 $ $Date: 2012-11-11 01:52:37 +0400 (Sun, 11 Nov 2012) $
43------------------------------------------------------------------------------
44--  This file is generated, don't edit it.
45------------------------------------------------------------------------------
46--  An element import identifies an element in another package, and allows the
47--  element to be referenced using its name without a qualifier.
48------------------------------------------------------------------------------
49with AMF.UML.Directed_Relationships;
50limited with AMF.UML.Namespaces;
51limited with AMF.UML.Packageable_Elements;
52with League.Strings;
53
54package AMF.UML.Element_Imports is
55
56   pragma Preelaborate;
57
58   type UML_Element_Import is limited interface
59     and AMF.UML.Directed_Relationships.UML_Directed_Relationship;
60
61   type UML_Element_Import_Access is
62     access all UML_Element_Import'Class;
63   for UML_Element_Import_Access'Storage_Size use 0;
64
65   not overriding function Get_Alias
66    (Self : not null access constant UML_Element_Import)
67       return AMF.Optional_String is abstract;
68   --  Getter of ElementImport::alias.
69   --
70   --  Specifies the name that should be added to the namespace of the
71   --  importing package in lieu of the name of the imported packagable
72   --  element. The aliased name must not clash with any other member name in
73   --  the importing package. By default, no alias is used.
74
75   not overriding procedure Set_Alias
76    (Self : not null access UML_Element_Import;
77     To   : AMF.Optional_String) is abstract;
78   --  Setter of ElementImport::alias.
79   --
80   --  Specifies the name that should be added to the namespace of the
81   --  importing package in lieu of the name of the imported packagable
82   --  element. The aliased name must not clash with any other member name in
83   --  the importing package. By default, no alias is used.
84
85   not overriding function Get_Imported_Element
86    (Self : not null access constant UML_Element_Import)
87       return AMF.UML.Packageable_Elements.UML_Packageable_Element_Access is abstract;
88   --  Getter of ElementImport::importedElement.
89   --
90   --  Specifies the PackageableElement whose name is to be added to a
91   --  Namespace.
92
93   not overriding procedure Set_Imported_Element
94    (Self : not null access UML_Element_Import;
95     To   : AMF.UML.Packageable_Elements.UML_Packageable_Element_Access) is abstract;
96   --  Setter of ElementImport::importedElement.
97   --
98   --  Specifies the PackageableElement whose name is to be added to a
99   --  Namespace.
100
101   not overriding function Get_Importing_Namespace
102    (Self : not null access constant UML_Element_Import)
103       return AMF.UML.Namespaces.UML_Namespace_Access is abstract;
104   --  Getter of ElementImport::importingNamespace.
105   --
106   --  Specifies the Namespace that imports a PackageableElement from another
107   --  Package.
108
109   not overriding procedure Set_Importing_Namespace
110    (Self : not null access UML_Element_Import;
111     To   : AMF.UML.Namespaces.UML_Namespace_Access) is abstract;
112   --  Setter of ElementImport::importingNamespace.
113   --
114   --  Specifies the Namespace that imports a PackageableElement from another
115   --  Package.
116
117   not overriding function Get_Visibility
118    (Self : not null access constant UML_Element_Import)
119       return AMF.UML.UML_Visibility_Kind is abstract;
120   --  Getter of ElementImport::visibility.
121   --
122   --  Specifies the visibility of the imported PackageableElement within the
123   --  importing Package. The default visibility is the same as that of the
124   --  imported element. If the imported element does not have a visibility,
125   --  it is possible to add visibility to the element import.
126
127   not overriding procedure Set_Visibility
128    (Self : not null access UML_Element_Import;
129     To   : AMF.UML.UML_Visibility_Kind) is abstract;
130   --  Setter of ElementImport::visibility.
131   --
132   --  Specifies the visibility of the imported PackageableElement within the
133   --  importing Package. The default visibility is the same as that of the
134   --  imported element. If the imported element does not have a visibility,
135   --  it is possible to add visibility to the element import.
136
137   not overriding function Get_Name
138    (Self : not null access constant UML_Element_Import)
139       return League.Strings.Universal_String is abstract;
140   --  Operation ElementImport::getName.
141   --
142   --  The query getName() returns the name under which the imported
143   --  PackageableElement will be known in the importing namespace.
144
145end AMF.UML.Element_Imports;
146