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_Packageable_Elements;
45with AMF.UML.Call_Events;
46with AMF.UML.Dependencies.Collections;
47with AMF.UML.Named_Elements;
48with AMF.UML.Namespaces;
49with AMF.UML.Operations;
50with AMF.UML.Packages.Collections;
51with AMF.UML.Parameterable_Elements;
52with AMF.UML.String_Expressions;
53with AMF.UML.Template_Parameters;
54with AMF.Visitors;
55
56package AMF.Internals.UML_Call_Events is
57
58   type UML_Call_Event_Proxy is
59     limited new AMF.Internals.UML_Packageable_Elements.UML_Packageable_Element_Proxy
60       and AMF.UML.Call_Events.UML_Call_Event with null record;
61
62   overriding function Get_Operation
63    (Self : not null access constant UML_Call_Event_Proxy)
64       return AMF.UML.Operations.UML_Operation_Access;
65   --  Getter of CallEvent::operation.
66   --
67   --  Designates the operation whose invocation raised the call event.
68
69   overriding procedure Set_Operation
70    (Self : not null access UML_Call_Event_Proxy;
71     To   : AMF.UML.Operations.UML_Operation_Access);
72   --  Setter of CallEvent::operation.
73   --
74   --  Designates the operation whose invocation raised the call event.
75
76   overriding function Get_Client_Dependency
77    (Self : not null access constant UML_Call_Event_Proxy)
78       return AMF.UML.Dependencies.Collections.Set_Of_UML_Dependency;
79   --  Getter of NamedElement::clientDependency.
80   --
81   --  Indicates the dependencies that reference the client.
82
83   overriding function Get_Name_Expression
84    (Self : not null access constant UML_Call_Event_Proxy)
85       return AMF.UML.String_Expressions.UML_String_Expression_Access;
86   --  Getter of NamedElement::nameExpression.
87   --
88   --  The string expression used to define the name of this named element.
89
90   overriding procedure Set_Name_Expression
91    (Self : not null access UML_Call_Event_Proxy;
92     To   : AMF.UML.String_Expressions.UML_String_Expression_Access);
93   --  Setter of NamedElement::nameExpression.
94   --
95   --  The string expression used to define the name of this named element.
96
97   overriding function Get_Namespace
98    (Self : not null access constant UML_Call_Event_Proxy)
99       return AMF.UML.Namespaces.UML_Namespace_Access;
100   --  Getter of NamedElement::namespace.
101   --
102   --  Specifies the namespace that owns the NamedElement.
103
104   overriding function Get_Qualified_Name
105    (Self : not null access constant UML_Call_Event_Proxy)
106       return AMF.Optional_String;
107   --  Getter of NamedElement::qualifiedName.
108   --
109   --  A name which allows the NamedElement to be identified within a
110   --  hierarchy of nested Namespaces. It is constructed from the names of the
111   --  containing namespaces starting at the root of the hierarchy and ending
112   --  with the name of the NamedElement itself.
113
114   overriding function Get_Owning_Template_Parameter
115    (Self : not null access constant UML_Call_Event_Proxy)
116       return AMF.UML.Template_Parameters.UML_Template_Parameter_Access;
117   --  Getter of ParameterableElement::owningTemplateParameter.
118   --
119   --  The formal template parameter that owns this element.
120
121   overriding procedure Set_Owning_Template_Parameter
122    (Self : not null access UML_Call_Event_Proxy;
123     To   : AMF.UML.Template_Parameters.UML_Template_Parameter_Access);
124   --  Setter of ParameterableElement::owningTemplateParameter.
125   --
126   --  The formal template parameter that owns this element.
127
128   overriding function Get_Template_Parameter
129    (Self : not null access constant UML_Call_Event_Proxy)
130       return AMF.UML.Template_Parameters.UML_Template_Parameter_Access;
131   --  Getter of ParameterableElement::templateParameter.
132   --
133   --  The template parameter that exposes this element as a formal parameter.
134
135   overriding procedure Set_Template_Parameter
136    (Self : not null access UML_Call_Event_Proxy;
137     To   : AMF.UML.Template_Parameters.UML_Template_Parameter_Access);
138   --  Setter of ParameterableElement::templateParameter.
139   --
140   --  The template parameter that exposes this element as a formal parameter.
141
142   overriding function All_Owning_Packages
143    (Self : not null access constant UML_Call_Event_Proxy)
144       return AMF.UML.Packages.Collections.Set_Of_UML_Package;
145   --  Operation NamedElement::allOwningPackages.
146   --
147   --  The query allOwningPackages() returns all the directly or indirectly
148   --  owning packages.
149
150   overriding function Is_Distinguishable_From
151    (Self : not null access constant UML_Call_Event_Proxy;
152     N : AMF.UML.Named_Elements.UML_Named_Element_Access;
153     Ns : AMF.UML.Namespaces.UML_Namespace_Access)
154       return Boolean;
155   --  Operation NamedElement::isDistinguishableFrom.
156   --
157   --  The query isDistinguishableFrom() determines whether two NamedElements
158   --  may logically co-exist within a Namespace. By default, two named
159   --  elements are distinguishable if (a) they have unrelated types or (b)
160   --  they have related types but different names.
161
162   overriding function Namespace
163    (Self : not null access constant UML_Call_Event_Proxy)
164       return AMF.UML.Namespaces.UML_Namespace_Access;
165   --  Operation NamedElement::namespace.
166   --
167   --  Missing derivation for NamedElement::/namespace : Namespace
168
169   overriding function Is_Compatible_With
170    (Self : not null access constant UML_Call_Event_Proxy;
171     P : AMF.UML.Parameterable_Elements.UML_Parameterable_Element_Access)
172       return Boolean;
173   --  Operation ParameterableElement::isCompatibleWith.
174   --
175   --  The query isCompatibleWith() determines if this parameterable element
176   --  is compatible with the specified parameterable element. By default
177   --  parameterable element P is compatible with parameterable element Q if
178   --  the kind of P is the same or a subtype as the kind of Q. Subclasses
179   --  should override this operation to specify different compatibility
180   --  constraints.
181
182   overriding function Is_Template_Parameter
183    (Self : not null access constant UML_Call_Event_Proxy)
184       return Boolean;
185   --  Operation ParameterableElement::isTemplateParameter.
186   --
187   --  The query isTemplateParameter() determines if this parameterable
188   --  element is exposed as a formal template parameter.
189
190   overriding procedure Enter_Element
191    (Self    : not null access constant UML_Call_Event_Proxy;
192     Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
193     Control : in out AMF.Visitors.Traverse_Control);
194   --  Dispatch call to corresponding subprogram of visitor interface.
195
196   overriding procedure Leave_Element
197    (Self    : not null access constant UML_Call_Event_Proxy;
198     Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
199     Control : in out AMF.Visitors.Traverse_Control);
200   --  Dispatch call to corresponding subprogram of visitor interface.
201
202   overriding procedure Visit_Element
203    (Self     : not null access constant UML_Call_Event_Proxy;
204     Iterator : in out AMF.Visitors.Abstract_Iterator'Class;
205     Visitor  : in out AMF.Visitors.Abstract_Visitor'Class;
206     Control  : in out AMF.Visitors.Traverse_Control);
207   --  Dispatch call to corresponding subprogram of iterator interface.
208
209end AMF.Internals.UML_Call_Events;
210