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.Dependencies.Collections;
46with AMF.UML.Destruction_Occurrence_Specifications;
47with AMF.UML.General_Orderings.Collections;
48with AMF.UML.Interaction_Operands;
49with AMF.UML.Interactions;
50with AMF.UML.Lifelines.Collections;
51with AMF.UML.Messages;
52with AMF.UML.Named_Elements;
53with AMF.UML.Namespaces;
54with AMF.UML.Packages.Collections;
55with AMF.UML.String_Expressions;
56with AMF.Visitors;
57
58package AMF.Internals.UML_Destruction_Occurrence_Specifications is
59
60   type UML_Destruction_Occurrence_Specification_Proxy is
61     limited new AMF.Internals.UML_Named_Elements.UML_Named_Element_Proxy
62       and AMF.UML.Destruction_Occurrence_Specifications.UML_Destruction_Occurrence_Specification with null record;
63
64   overriding function Get_Message
65    (Self : not null access constant UML_Destruction_Occurrence_Specification_Proxy)
66       return AMF.UML.Messages.UML_Message_Access;
67   --  Getter of MessageEnd::message.
68   --
69   --  References a Message.
70
71   overriding procedure Set_Message
72    (Self : not null access UML_Destruction_Occurrence_Specification_Proxy;
73     To   : AMF.UML.Messages.UML_Message_Access);
74   --  Setter of MessageEnd::message.
75   --
76   --  References a Message.
77
78   overriding function Get_Client_Dependency
79    (Self : not null access constant UML_Destruction_Occurrence_Specification_Proxy)
80       return AMF.UML.Dependencies.Collections.Set_Of_UML_Dependency;
81   --  Getter of NamedElement::clientDependency.
82   --
83   --  Indicates the dependencies that reference the client.
84
85   overriding function Get_Name_Expression
86    (Self : not null access constant UML_Destruction_Occurrence_Specification_Proxy)
87       return AMF.UML.String_Expressions.UML_String_Expression_Access;
88   --  Getter of NamedElement::nameExpression.
89   --
90   --  The string expression used to define the name of this named element.
91
92   overriding procedure Set_Name_Expression
93    (Self : not null access UML_Destruction_Occurrence_Specification_Proxy;
94     To   : AMF.UML.String_Expressions.UML_String_Expression_Access);
95   --  Setter of NamedElement::nameExpression.
96   --
97   --  The string expression used to define the name of this named element.
98
99   overriding function Get_Namespace
100    (Self : not null access constant UML_Destruction_Occurrence_Specification_Proxy)
101       return AMF.UML.Namespaces.UML_Namespace_Access;
102   --  Getter of NamedElement::namespace.
103   --
104   --  Specifies the namespace that owns the NamedElement.
105
106   overriding function Get_Qualified_Name
107    (Self : not null access constant UML_Destruction_Occurrence_Specification_Proxy)
108       return AMF.Optional_String;
109   --  Getter of NamedElement::qualifiedName.
110   --
111   --  A name which allows the NamedElement to be identified within a
112   --  hierarchy of nested Namespaces. It is constructed from the names of the
113   --  containing namespaces starting at the root of the hierarchy and ending
114   --  with the name of the NamedElement itself.
115
116   overriding function Get_Covered
117    (Self : not null access constant UML_Destruction_Occurrence_Specification_Proxy)
118       return AMF.UML.Lifelines.UML_Lifeline_Access;
119   --  Getter of OccurrenceSpecification::covered.
120   --
121   --  References the Lifeline on which the OccurrenceSpecification appears.
122
123   overriding procedure Set_Covered
124    (Self : not null access UML_Destruction_Occurrence_Specification_Proxy;
125     To   : AMF.UML.Lifelines.UML_Lifeline_Access);
126   --  Setter of OccurrenceSpecification::covered.
127   --
128   --  References the Lifeline on which the OccurrenceSpecification appears.
129
130   overriding function Get_To_After
131    (Self : not null access constant UML_Destruction_Occurrence_Specification_Proxy)
132       return AMF.UML.General_Orderings.Collections.Set_Of_UML_General_Ordering;
133   --  Getter of OccurrenceSpecification::toAfter.
134   --
135   --  References the GeneralOrderings that specify EventOcurrences that must
136   --  occur after this OccurrenceSpecification
137
138   overriding function Get_To_Before
139    (Self : not null access constant UML_Destruction_Occurrence_Specification_Proxy)
140       return AMF.UML.General_Orderings.Collections.Set_Of_UML_General_Ordering;
141   --  Getter of OccurrenceSpecification::toBefore.
142   --
143   --  References the GeneralOrderings that specify EventOcurrences that must
144   --  occur before this OccurrenceSpecification
145
146   overriding function Get_Covered
147    (Self : not null access constant UML_Destruction_Occurrence_Specification_Proxy)
148       return AMF.UML.Lifelines.Collections.Set_Of_UML_Lifeline;
149   --  Getter of InteractionFragment::covered.
150   --
151   --  References the Lifelines that the InteractionFragment involves.
152
153   overriding function Get_Enclosing_Interaction
154    (Self : not null access constant UML_Destruction_Occurrence_Specification_Proxy)
155       return AMF.UML.Interactions.UML_Interaction_Access;
156   --  Getter of InteractionFragment::enclosingInteraction.
157   --
158   --  The Interaction enclosing this InteractionFragment.
159
160   overriding procedure Set_Enclosing_Interaction
161    (Self : not null access UML_Destruction_Occurrence_Specification_Proxy;
162     To   : AMF.UML.Interactions.UML_Interaction_Access);
163   --  Setter of InteractionFragment::enclosingInteraction.
164   --
165   --  The Interaction enclosing this InteractionFragment.
166
167   overriding function Get_Enclosing_Operand
168    (Self : not null access constant UML_Destruction_Occurrence_Specification_Proxy)
169       return AMF.UML.Interaction_Operands.UML_Interaction_Operand_Access;
170   --  Getter of InteractionFragment::enclosingOperand.
171   --
172   --  The operand enclosing this InteractionFragment (they may nest
173   --  recursively)
174
175   overriding procedure Set_Enclosing_Operand
176    (Self : not null access UML_Destruction_Occurrence_Specification_Proxy;
177     To   : AMF.UML.Interaction_Operands.UML_Interaction_Operand_Access);
178   --  Setter of InteractionFragment::enclosingOperand.
179   --
180   --  The operand enclosing this InteractionFragment (they may nest
181   --  recursively)
182
183   overriding function Get_General_Ordering
184    (Self : not null access constant UML_Destruction_Occurrence_Specification_Proxy)
185       return AMF.UML.General_Orderings.Collections.Set_Of_UML_General_Ordering;
186   --  Getter of InteractionFragment::generalOrdering.
187   --
188   --  The general ordering relationships contained in this fragment.
189
190   overriding function All_Owning_Packages
191    (Self : not null access constant UML_Destruction_Occurrence_Specification_Proxy)
192       return AMF.UML.Packages.Collections.Set_Of_UML_Package;
193   --  Operation NamedElement::allOwningPackages.
194   --
195   --  The query allOwningPackages() returns all the directly or indirectly
196   --  owning packages.
197
198   overriding function Is_Distinguishable_From
199    (Self : not null access constant UML_Destruction_Occurrence_Specification_Proxy;
200     N : AMF.UML.Named_Elements.UML_Named_Element_Access;
201     Ns : AMF.UML.Namespaces.UML_Namespace_Access)
202       return Boolean;
203   --  Operation NamedElement::isDistinguishableFrom.
204   --
205   --  The query isDistinguishableFrom() determines whether two NamedElements
206   --  may logically co-exist within a Namespace. By default, two named
207   --  elements are distinguishable if (a) they have unrelated types or (b)
208   --  they have related types but different names.
209
210   overriding function Namespace
211    (Self : not null access constant UML_Destruction_Occurrence_Specification_Proxy)
212       return AMF.UML.Namespaces.UML_Namespace_Access;
213   --  Operation NamedElement::namespace.
214   --
215   --  Missing derivation for NamedElement::/namespace : Namespace
216
217   overriding procedure Enter_Element
218    (Self    : not null access constant UML_Destruction_Occurrence_Specification_Proxy;
219     Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
220     Control : in out AMF.Visitors.Traverse_Control);
221   --  Dispatch call to corresponding subprogram of visitor interface.
222
223   overriding procedure Leave_Element
224    (Self    : not null access constant UML_Destruction_Occurrence_Specification_Proxy;
225     Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
226     Control : in out AMF.Visitors.Traverse_Control);
227   --  Dispatch call to corresponding subprogram of visitor interface.
228
229   overriding procedure Visit_Element
230    (Self     : not null access constant UML_Destruction_Occurrence_Specification_Proxy;
231     Iterator : in out AMF.Visitors.Abstract_Iterator'Class;
232     Visitor  : in out AMF.Visitors.Abstract_Visitor'Class;
233     Control  : in out AMF.Visitors.Traverse_Control);
234   --  Dispatch call to corresponding subprogram of iterator interface.
235
236end AMF.Internals.UML_Destruction_Occurrence_Specifications;
237