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