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