1------------------------------------------------------------------------------
2--                                                                          --
3--                            Matreshka Project                             --
4--                                                                          --
5--                          Ada Modeling Framework                          --
6--                                                                          --
7--                        Runtime Library Component                         --
8--                                                                          --
9------------------------------------------------------------------------------
10--                                                                          --
11-- Copyright © 2011, 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: 3353 $ $Date: 2012-11-11 01:15:38 +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.CMOF.Directed_Relationships;
50limited with AMF.CMOF.Namespaces;
51limited with AMF.CMOF.Packageable_Elements;
52with League.Strings;
53
54package AMF.CMOF.Element_Imports is
55
56   pragma Preelaborate;
57
58   type CMOF_Element_Import is limited interface
59     and AMF.CMOF.Directed_Relationships.CMOF_Directed_Relationship;
60
61   type CMOF_Element_Import_Access is
62     access all CMOF_Element_Import'Class;
63   for CMOF_Element_Import_Access'Storage_Size use 0;
64
65   not overriding function Get_Visibility
66    (Self : not null access constant CMOF_Element_Import)
67       return AMF.CMOF.CMOF_Visibility_Kind is abstract;
68   --  Getter of ElementImport::visibility.
69   --
70   --  Specifies the visibility of the imported PackageableElement within the
71   --  importing Package. The default visibility is the same as that of the
72   --  imported element. If the imported element does not have a visibility,
73   --  it is possible to add visibility to the element import.
74
75   not overriding procedure Set_Visibility
76    (Self : not null access CMOF_Element_Import;
77     To   : AMF.CMOF.CMOF_Visibility_Kind) is abstract;
78   --  Setter of ElementImport::visibility.
79   --
80   --  Specifies the visibility of the imported PackageableElement within the
81   --  importing Package. The default visibility is the same as that of the
82   --  imported element. If the imported element does not have a visibility,
83   --  it is possible to add visibility to the element import.
84
85   not overriding function Get_Alias
86    (Self : not null access constant CMOF_Element_Import)
87       return AMF.Optional_String is abstract;
88   --  Getter of ElementImport::alias.
89   --
90   --  Specifies the name that should be added to the namespace of the
91   --  importing package in lieu of the name of the imported packagable
92   --  element. The aliased name must not clash with any other member name in
93   --  the importing package. By default, no alias is used.
94
95   not overriding procedure Set_Alias
96    (Self : not null access CMOF_Element_Import;
97     To   : AMF.Optional_String) is abstract;
98   --  Setter of ElementImport::alias.
99   --
100   --  Specifies the name that should be added to the namespace of the
101   --  importing package in lieu of the name of the imported packagable
102   --  element. The aliased name must not clash with any other member name in
103   --  the importing package. By default, no alias is used.
104
105   not overriding function Get_Imported_Element
106    (Self : not null access constant CMOF_Element_Import)
107       return AMF.CMOF.Packageable_Elements.CMOF_Packageable_Element_Access is abstract;
108   --  Getter of ElementImport::importedElement.
109   --
110   --  Specifies the PackageableElement whose name is to be added to a
111   --  Namespace.
112
113   not overriding procedure Set_Imported_Element
114    (Self : not null access CMOF_Element_Import;
115     To   : AMF.CMOF.Packageable_Elements.CMOF_Packageable_Element_Access) is abstract;
116   --  Setter of ElementImport::importedElement.
117   --
118   --  Specifies the PackageableElement whose name is to be added to a
119   --  Namespace.
120
121   not overriding function Get_Importing_Namespace
122    (Self : not null access constant CMOF_Element_Import)
123       return AMF.CMOF.Namespaces.CMOF_Namespace_Access is abstract;
124   --  Getter of ElementImport::importingNamespace.
125   --
126   --  Specifies the Namespace that imports a PackageableElement from another
127   --  Package.
128
129   not overriding procedure Set_Importing_Namespace
130    (Self : not null access CMOF_Element_Import;
131     To   : AMF.CMOF.Namespaces.CMOF_Namespace_Access) is abstract;
132   --  Setter of ElementImport::importingNamespace.
133   --
134   --  Specifies the Namespace that imports a PackageableElement from another
135   --  Package.
136
137   not overriding function Get_Name
138    (Self : not null access constant CMOF_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.CMOF.Element_Imports;
146