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.Connection_Point_References;
46with AMF.UML.Dependencies.Collections;
47with AMF.UML.Named_Elements;
48with AMF.UML.Namespaces;
49with AMF.UML.Packages.Collections;
50with AMF.UML.Pseudostates.Collections;
51with AMF.UML.Regions;
52with AMF.UML.State_Machines;
53with AMF.UML.States;
54with AMF.UML.String_Expressions;
55with AMF.UML.Transitions.Collections;
56with AMF.Visitors;
57
58package AMF.Internals.UML_Connection_Point_References is
59
60   type UML_Connection_Point_Reference_Proxy is
61     limited new AMF.Internals.UML_Named_Elements.UML_Named_Element_Proxy
62       and AMF.UML.Connection_Point_References.UML_Connection_Point_Reference with null record;
63
64   overriding function Get_Entry
65    (Self : not null access constant UML_Connection_Point_Reference_Proxy)
66       return AMF.UML.Pseudostates.Collections.Set_Of_UML_Pseudostate;
67   --  Getter of ConnectionPointReference::entry.
68   --
69   --  The entryPoint kind pseudo states corresponding to this connection
70   --  point.
71
72   overriding function Get_Exit
73    (Self : not null access constant UML_Connection_Point_Reference_Proxy)
74       return AMF.UML.Pseudostates.Collections.Set_Of_UML_Pseudostate;
75   --  Getter of ConnectionPointReference::exit.
76   --
77   --  The exitPoints kind pseudo states corresponding to this connection
78   --  point.
79
80   overriding function Get_State
81    (Self : not null access constant UML_Connection_Point_Reference_Proxy)
82       return AMF.UML.States.UML_State_Access;
83   --  Getter of ConnectionPointReference::state.
84   --
85   --  The State in which the connection point refreshens are defined.
86
87   overriding procedure Set_State
88    (Self : not null access UML_Connection_Point_Reference_Proxy;
89     To   : AMF.UML.States.UML_State_Access);
90   --  Setter of ConnectionPointReference::state.
91   --
92   --  The State in which the connection point refreshens are defined.
93
94   overriding function Get_Container
95    (Self : not null access constant UML_Connection_Point_Reference_Proxy)
96       return AMF.UML.Regions.UML_Region_Access;
97   --  Getter of Vertex::container.
98   --
99   --  The region that contains this vertex.
100
101   overriding procedure Set_Container
102    (Self : not null access UML_Connection_Point_Reference_Proxy;
103     To   : AMF.UML.Regions.UML_Region_Access);
104   --  Setter of Vertex::container.
105   --
106   --  The region that contains this vertex.
107
108   overriding function Get_Incoming
109    (Self : not null access constant UML_Connection_Point_Reference_Proxy)
110       return AMF.UML.Transitions.Collections.Set_Of_UML_Transition;
111   --  Getter of Vertex::incoming.
112   --
113   --  Specifies the transitions entering this vertex.
114
115   overriding function Get_Outgoing
116    (Self : not null access constant UML_Connection_Point_Reference_Proxy)
117       return AMF.UML.Transitions.Collections.Set_Of_UML_Transition;
118   --  Getter of Vertex::outgoing.
119   --
120   --  Specifies the transitions departing from this vertex.
121
122   overriding function Get_Client_Dependency
123    (Self : not null access constant UML_Connection_Point_Reference_Proxy)
124       return AMF.UML.Dependencies.Collections.Set_Of_UML_Dependency;
125   --  Getter of NamedElement::clientDependency.
126   --
127   --  Indicates the dependencies that reference the client.
128
129   overriding function Get_Name_Expression
130    (Self : not null access constant UML_Connection_Point_Reference_Proxy)
131       return AMF.UML.String_Expressions.UML_String_Expression_Access;
132   --  Getter of NamedElement::nameExpression.
133   --
134   --  The string expression used to define the name of this named element.
135
136   overriding procedure Set_Name_Expression
137    (Self : not null access UML_Connection_Point_Reference_Proxy;
138     To   : AMF.UML.String_Expressions.UML_String_Expression_Access);
139   --  Setter of NamedElement::nameExpression.
140   --
141   --  The string expression used to define the name of this named element.
142
143   overriding function Get_Namespace
144    (Self : not null access constant UML_Connection_Point_Reference_Proxy)
145       return AMF.UML.Namespaces.UML_Namespace_Access;
146   --  Getter of NamedElement::namespace.
147   --
148   --  Specifies the namespace that owns the NamedElement.
149
150   overriding function Get_Qualified_Name
151    (Self : not null access constant UML_Connection_Point_Reference_Proxy)
152       return AMF.Optional_String;
153   --  Getter of NamedElement::qualifiedName.
154   --
155   --  A name which allows the NamedElement to be identified within a
156   --  hierarchy of nested Namespaces. It is constructed from the names of the
157   --  containing namespaces starting at the root of the hierarchy and ending
158   --  with the name of the NamedElement itself.
159
160   overriding function Containing_State_Machine
161    (Self : not null access constant UML_Connection_Point_Reference_Proxy)
162       return AMF.UML.State_Machines.UML_State_Machine_Access;
163   --  Operation Vertex::containingStateMachine.
164   --
165   --  The operation containingStateMachine() returns the state machine in
166   --  which this Vertex is defined
167
168   overriding function Incoming
169    (Self : not null access constant UML_Connection_Point_Reference_Proxy)
170       return AMF.UML.Transitions.Collections.Set_Of_UML_Transition;
171   --  Operation Vertex::incoming.
172   --
173   --  Missing derivation for Vertex::/incoming : Transition
174
175   overriding function Outgoing
176    (Self : not null access constant UML_Connection_Point_Reference_Proxy)
177       return AMF.UML.Transitions.Collections.Set_Of_UML_Transition;
178   --  Operation Vertex::outgoing.
179   --
180   --  Missing derivation for Vertex::/outgoing : Transition
181
182   overriding function All_Owning_Packages
183    (Self : not null access constant UML_Connection_Point_Reference_Proxy)
184       return AMF.UML.Packages.Collections.Set_Of_UML_Package;
185   --  Operation NamedElement::allOwningPackages.
186   --
187   --  The query allOwningPackages() returns all the directly or indirectly
188   --  owning packages.
189
190   overriding function Is_Distinguishable_From
191    (Self : not null access constant UML_Connection_Point_Reference_Proxy;
192     N : AMF.UML.Named_Elements.UML_Named_Element_Access;
193     Ns : AMF.UML.Namespaces.UML_Namespace_Access)
194       return Boolean;
195   --  Operation NamedElement::isDistinguishableFrom.
196   --
197   --  The query isDistinguishableFrom() determines whether two NamedElements
198   --  may logically co-exist within a Namespace. By default, two named
199   --  elements are distinguishable if (a) they have unrelated types or (b)
200   --  they have related types but different names.
201
202   overriding function Namespace
203    (Self : not null access constant UML_Connection_Point_Reference_Proxy)
204       return AMF.UML.Namespaces.UML_Namespace_Access;
205   --  Operation NamedElement::namespace.
206   --
207   --  Missing derivation for NamedElement::/namespace : Namespace
208
209   overriding procedure Enter_Element
210    (Self    : not null access constant UML_Connection_Point_Reference_Proxy;
211     Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
212     Control : in out AMF.Visitors.Traverse_Control);
213   --  Dispatch call to corresponding subprogram of visitor interface.
214
215   overriding procedure Leave_Element
216    (Self    : not null access constant UML_Connection_Point_Reference_Proxy;
217     Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
218     Control : in out AMF.Visitors.Traverse_Control);
219   --  Dispatch call to corresponding subprogram of visitor interface.
220
221   overriding procedure Visit_Element
222    (Self     : not null access constant UML_Connection_Point_Reference_Proxy;
223     Iterator : in out AMF.Visitors.Abstract_Iterator'Class;
224     Visitor  : in out AMF.Visitors.Abstract_Visitor'Class;
225     Control  : in out AMF.Visitors.Traverse_Control);
226   --  Dispatch call to corresponding subprogram of iterator interface.
227
228end AMF.Internals.UML_Connection_Point_References;
229