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: 2937 $ $Date: 2012-05-01 21:07:27 +0400 (Tue, 01 May 2012) $
43------------------------------------------------------------------------------
44with AMF.Internals.UML_Named_Elements;
45with AMF.UML.Dependencies.Collections;
46with AMF.UML.Elements.Collections;
47with AMF.UML.Gates;
48with AMF.UML.Messages;
49with AMF.UML.Named_Elements;
50with AMF.UML.Namespaces;
51with AMF.UML.Packages.Collections;
52with AMF.UML.String_Expressions;
53with AMF.Visitors;
54
55package AMF.Internals.UML_Gates is
56
57   type UML_Gate_Proxy is
58     limited new AMF.Internals.UML_Named_Elements.UML_Named_Element_Proxy
59       and AMF.UML.Gates.UML_Gate with null record;
60
61   overriding function Get_Message
62    (Self : not null access constant UML_Gate_Proxy)
63       return AMF.UML.Messages.UML_Message_Access;
64   --  Getter of MessageEnd::message.
65   --
66   --  References a Message.
67
68   overriding procedure Set_Message
69    (Self : not null access UML_Gate_Proxy;
70     To   : AMF.UML.Messages.UML_Message_Access);
71   --  Setter of MessageEnd::message.
72   --
73   --  References a Message.
74
75   overriding function Get_Client_Dependency
76    (Self : not null access constant UML_Gate_Proxy)
77       return AMF.UML.Dependencies.Collections.Set_Of_UML_Dependency;
78   --  Getter of NamedElement::clientDependency.
79   --
80   --  Indicates the dependencies that reference the client.
81
82   overriding function Get_Name_Expression
83    (Self : not null access constant UML_Gate_Proxy)
84       return AMF.UML.String_Expressions.UML_String_Expression_Access;
85   --  Getter of NamedElement::nameExpression.
86   --
87   --  The string expression used to define the name of this named element.
88
89   overriding procedure Set_Name_Expression
90    (Self : not null access UML_Gate_Proxy;
91     To   : AMF.UML.String_Expressions.UML_String_Expression_Access);
92   --  Setter of NamedElement::nameExpression.
93   --
94   --  The string expression used to define the name of this named element.
95
96   overriding function Get_Namespace
97    (Self : not null access constant UML_Gate_Proxy)
98       return AMF.UML.Namespaces.UML_Namespace_Access;
99   --  Getter of NamedElement::namespace.
100   --
101   --  Specifies the namespace that owns the NamedElement.
102
103   overriding function Get_Qualified_Name
104    (Self : not null access constant UML_Gate_Proxy)
105       return AMF.Optional_String;
106   --  Getter of NamedElement::qualifiedName.
107   --
108   --  A name which allows the NamedElement to be identified within a
109   --  hierarchy of nested Namespaces. It is constructed from the names of the
110   --  containing namespaces starting at the root of the hierarchy and ending
111   --  with the name of the NamedElement itself.
112
113   overriding function All_Owning_Packages
114    (Self : not null access constant UML_Gate_Proxy)
115       return AMF.UML.Packages.Collections.Set_Of_UML_Package;
116   --  Operation NamedElement::allOwningPackages.
117   --
118   --  The query allOwningPackages() returns all the directly or indirectly
119   --  owning packages.
120
121   overriding function Is_Distinguishable_From
122    (Self : not null access constant UML_Gate_Proxy;
123     N : AMF.UML.Named_Elements.UML_Named_Element_Access;
124     Ns : AMF.UML.Namespaces.UML_Namespace_Access)
125       return Boolean;
126   --  Operation NamedElement::isDistinguishableFrom.
127   --
128   --  The query isDistinguishableFrom() determines whether two NamedElements
129   --  may logically co-exist within a Namespace. By default, two named
130   --  elements are distinguishable if (a) they have unrelated types or (b)
131   --  they have related types but different names.
132
133   overriding function Namespace
134    (Self : not null access constant UML_Gate_Proxy)
135       return AMF.UML.Namespaces.UML_Namespace_Access;
136   --  Operation NamedElement::namespace.
137   --
138   --  Missing derivation for NamedElement::/namespace : Namespace
139
140   overriding procedure Enter_Element
141    (Self    : not null access constant UML_Gate_Proxy;
142     Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
143     Control : in out AMF.Visitors.Traverse_Control);
144   --  Dispatch call to corresponding subprogram of visitor interface.
145
146   overriding procedure Leave_Element
147    (Self    : not null access constant UML_Gate_Proxy;
148     Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
149     Control : in out AMF.Visitors.Traverse_Control);
150   --  Dispatch call to corresponding subprogram of visitor interface.
151
152   overriding procedure Visit_Element
153    (Self     : not null access constant UML_Gate_Proxy;
154     Iterator : in out AMF.Visitors.Abstract_Iterator'Class;
155     Visitor  : in out AMF.Visitors.Abstract_Visitor'Class;
156     Control  : in out AMF.Visitors.Traverse_Control);
157   --  Dispatch call to corresponding subprogram of iterator interface.
158
159end AMF.Internals.UML_Gates;
160