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: 2864 $ $Date: 2012-04-13 14:08:07 +0400 (Fri, 13 Apr 2012) $
43------------------------------------------------------------------------------
44with AMF.Internals.UML_Elements;
45with AMF.UML.Operation_Template_Parameters;
46with AMF.UML.Operations;
47with AMF.UML.Parameterable_Elements;
48with AMF.UML.Template_Signatures;
49with AMF.Visitors;
50
51package AMF.Internals.UML_Operation_Template_Parameters is
52
53   type UML_Operation_Template_Parameter_Proxy is
54     limited new AMF.Internals.UML_Elements.UML_Element_Proxy
55       and AMF.UML.Operation_Template_Parameters.UML_Operation_Template_Parameter with null record;
56
57   overriding function Get_Parametered_Element
58    (Self : not null access constant UML_Operation_Template_Parameter_Proxy)
59       return AMF.UML.Operations.UML_Operation_Access;
60   --  Getter of OperationTemplateParameter::parameteredElement.
61   --
62   --  The operation for this template parameter.
63
64   overriding procedure Set_Parametered_Element
65    (Self : not null access UML_Operation_Template_Parameter_Proxy;
66     To   : AMF.UML.Operations.UML_Operation_Access);
67   --  Setter of OperationTemplateParameter::parameteredElement.
68   --
69   --  The operation for this template parameter.
70
71   overriding function Get_Default
72    (Self : not null access constant UML_Operation_Template_Parameter_Proxy)
73       return AMF.UML.Parameterable_Elements.UML_Parameterable_Element_Access;
74   --  Getter of TemplateParameter::default.
75   --
76   --  The element that is the default for this formal template parameter.
77
78   overriding procedure Set_Default
79    (Self : not null access UML_Operation_Template_Parameter_Proxy;
80     To   : AMF.UML.Parameterable_Elements.UML_Parameterable_Element_Access);
81   --  Setter of TemplateParameter::default.
82   --
83   --  The element that is the default for this formal template parameter.
84
85   overriding function Get_Owned_Default
86    (Self : not null access constant UML_Operation_Template_Parameter_Proxy)
87       return AMF.UML.Parameterable_Elements.UML_Parameterable_Element_Access;
88   --  Getter of TemplateParameter::ownedDefault.
89   --
90   --  The element that is owned by this template parameter for the purpose of
91   --  providing a default.
92
93   overriding procedure Set_Owned_Default
94    (Self : not null access UML_Operation_Template_Parameter_Proxy;
95     To   : AMF.UML.Parameterable_Elements.UML_Parameterable_Element_Access);
96   --  Setter of TemplateParameter::ownedDefault.
97   --
98   --  The element that is owned by this template parameter for the purpose of
99   --  providing a default.
100
101   overriding function Get_Owned_Parametered_Element
102    (Self : not null access constant UML_Operation_Template_Parameter_Proxy)
103       return AMF.UML.Parameterable_Elements.UML_Parameterable_Element_Access;
104   --  Getter of TemplateParameter::ownedParameteredElement.
105   --
106   --  The element that is owned by this template parameter.
107
108   overriding procedure Set_Owned_Parametered_Element
109    (Self : not null access UML_Operation_Template_Parameter_Proxy;
110     To   : AMF.UML.Parameterable_Elements.UML_Parameterable_Element_Access);
111   --  Setter of TemplateParameter::ownedParameteredElement.
112   --
113   --  The element that is owned by this template parameter.
114
115   overriding function Get_Parametered_Element
116    (Self : not null access constant UML_Operation_Template_Parameter_Proxy)
117       return AMF.UML.Parameterable_Elements.UML_Parameterable_Element_Access;
118   --  Getter of TemplateParameter::parameteredElement.
119   --
120   --  The element exposed by this template parameter.
121
122   overriding procedure Set_Parametered_Element
123    (Self : not null access UML_Operation_Template_Parameter_Proxy;
124     To   : AMF.UML.Parameterable_Elements.UML_Parameterable_Element_Access);
125   --  Setter of TemplateParameter::parameteredElement.
126   --
127   --  The element exposed by this template parameter.
128
129   overriding function Get_Signature
130    (Self : not null access constant UML_Operation_Template_Parameter_Proxy)
131       return AMF.UML.Template_Signatures.UML_Template_Signature_Access;
132   --  Getter of TemplateParameter::signature.
133   --
134   --  The template signature that owns this template parameter.
135
136   overriding procedure Set_Signature
137    (Self : not null access UML_Operation_Template_Parameter_Proxy;
138     To   : AMF.UML.Template_Signatures.UML_Template_Signature_Access);
139   --  Setter of TemplateParameter::signature.
140   --
141   --  The template signature that owns this template parameter.
142
143   overriding procedure Enter_Element
144    (Self    : not null access constant UML_Operation_Template_Parameter_Proxy;
145     Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
146     Control : in out AMF.Visitors.Traverse_Control);
147   --  Dispatch call to corresponding subprogram of visitor interface.
148
149   overriding procedure Leave_Element
150    (Self    : not null access constant UML_Operation_Template_Parameter_Proxy;
151     Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
152     Control : in out AMF.Visitors.Traverse_Control);
153   --  Dispatch call to corresponding subprogram of visitor interface.
154
155   overriding procedure Visit_Element
156    (Self     : not null access constant UML_Operation_Template_Parameter_Proxy;
157     Iterator : in out AMF.Visitors.Abstract_Iterator'Class;
158     Visitor  : in out AMF.Visitors.Abstract_Visitor'Class;
159     Control  : in out AMF.Visitors.Traverse_Control);
160   --  Dispatch call to corresponding subprogram of iterator interface.
161
162end AMF.Internals.UML_Operation_Template_Parameters;
163