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.Constraints.Collections;
46with AMF.UML.Dependencies.Collections;
47with AMF.UML.Named_Elements;
48with AMF.UML.Namespaces;
49with AMF.UML.Packages.Collections;
50with AMF.UML.Parameter_Sets;
51with AMF.UML.Parameters.Collections;
52with AMF.UML.String_Expressions;
53with AMF.Visitors;
54
55package AMF.Internals.UML_Parameter_Sets is
56
57   type UML_Parameter_Set_Proxy is
58     limited new AMF.Internals.UML_Named_Elements.UML_Named_Element_Proxy
59       and AMF.UML.Parameter_Sets.UML_Parameter_Set with null record;
60
61   overriding function Get_Condition
62    (Self : not null access constant UML_Parameter_Set_Proxy)
63       return AMF.UML.Constraints.Collections.Set_Of_UML_Constraint;
64   --  Getter of ParameterSet::condition.
65   --
66   --  Constraint that should be satisfied for the owner of the parameters in
67   --  an input parameter set to start execution using the values provided for
68   --  those parameters, or the owner of the parameters in an output parameter
69   --  set to end execution providing the values for those parameters, if all
70   --  preconditions and conditions on input parameter sets were satisfied.
71
72   overriding function Get_Parameter
73    (Self : not null access constant UML_Parameter_Set_Proxy)
74       return AMF.UML.Parameters.Collections.Set_Of_UML_Parameter;
75   --  Getter of ParameterSet::parameter.
76   --
77   --  Parameters in the parameter set.
78
79   overriding function Get_Client_Dependency
80    (Self : not null access constant UML_Parameter_Set_Proxy)
81       return AMF.UML.Dependencies.Collections.Set_Of_UML_Dependency;
82   --  Getter of NamedElement::clientDependency.
83   --
84   --  Indicates the dependencies that reference the client.
85
86   overriding function Get_Name_Expression
87    (Self : not null access constant UML_Parameter_Set_Proxy)
88       return AMF.UML.String_Expressions.UML_String_Expression_Access;
89   --  Getter of NamedElement::nameExpression.
90   --
91   --  The string expression used to define the name of this named element.
92
93   overriding procedure Set_Name_Expression
94    (Self : not null access UML_Parameter_Set_Proxy;
95     To   : AMF.UML.String_Expressions.UML_String_Expression_Access);
96   --  Setter of NamedElement::nameExpression.
97   --
98   --  The string expression used to define the name of this named element.
99
100   overriding function Get_Namespace
101    (Self : not null access constant UML_Parameter_Set_Proxy)
102       return AMF.UML.Namespaces.UML_Namespace_Access;
103   --  Getter of NamedElement::namespace.
104   --
105   --  Specifies the namespace that owns the NamedElement.
106
107   overriding function Get_Qualified_Name
108    (Self : not null access constant UML_Parameter_Set_Proxy)
109       return AMF.Optional_String;
110   --  Getter of NamedElement::qualifiedName.
111   --
112   --  A name which allows the NamedElement to be identified within a
113   --  hierarchy of nested Namespaces. It is constructed from the names of the
114   --  containing namespaces starting at the root of the hierarchy and ending
115   --  with the name of the NamedElement itself.
116
117   overriding function All_Owning_Packages
118    (Self : not null access constant UML_Parameter_Set_Proxy)
119       return AMF.UML.Packages.Collections.Set_Of_UML_Package;
120   --  Operation NamedElement::allOwningPackages.
121   --
122   --  The query allOwningPackages() returns all the directly or indirectly
123   --  owning packages.
124
125   overriding function Is_Distinguishable_From
126    (Self : not null access constant UML_Parameter_Set_Proxy;
127     N : AMF.UML.Named_Elements.UML_Named_Element_Access;
128     Ns : AMF.UML.Namespaces.UML_Namespace_Access)
129       return Boolean;
130   --  Operation NamedElement::isDistinguishableFrom.
131   --
132   --  The query isDistinguishableFrom() determines whether two NamedElements
133   --  may logically co-exist within a Namespace. By default, two named
134   --  elements are distinguishable if (a) they have unrelated types or (b)
135   --  they have related types but different names.
136
137   overriding function Namespace
138    (Self : not null access constant UML_Parameter_Set_Proxy)
139       return AMF.UML.Namespaces.UML_Namespace_Access;
140   --  Operation NamedElement::namespace.
141   --
142   --  Missing derivation for NamedElement::/namespace : Namespace
143
144   overriding procedure Enter_Element
145    (Self    : not null access constant UML_Parameter_Set_Proxy;
146     Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
147     Control : in out AMF.Visitors.Traverse_Control);
148   --  Dispatch call to corresponding subprogram of visitor interface.
149
150   overriding procedure Leave_Element
151    (Self    : not null access constant UML_Parameter_Set_Proxy;
152     Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
153     Control : in out AMF.Visitors.Traverse_Control);
154   --  Dispatch call to corresponding subprogram of visitor interface.
155
156   overriding procedure Visit_Element
157    (Self     : not null access constant UML_Parameter_Set_Proxy;
158     Iterator : in out AMF.Visitors.Abstract_Iterator'Class;
159     Visitor  : in out AMF.Visitors.Abstract_Visitor'Class;
160     Control  : in out AMF.Visitors.Traverse_Control);
161   --  Dispatch call to corresponding subprogram of iterator interface.
162
163end AMF.Internals.UML_Parameter_Sets;
164