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.Activities;
46with AMF.UML.Activity_Edges.Collections;
47with AMF.UML.Activity_Groups.Collections;
48with AMF.UML.Activity_Nodes.Collections;
49with AMF.UML.Activity_Partitions.Collections;
50with AMF.UML.Classifiers.Collections;
51with AMF.UML.Constraints.Collections;
52with AMF.UML.Dependencies.Collections;
53with AMF.UML.Exception_Handlers.Collections;
54with AMF.UML.Input_Pins.Collections;
55with AMF.UML.Interruptible_Activity_Regions.Collections;
56with AMF.UML.Named_Elements;
57with AMF.UML.Namespaces;
58with AMF.UML.Output_Pins.Collections;
59with AMF.UML.Packages.Collections;
60with AMF.UML.Redefinable_Elements.Collections;
61with AMF.UML.Remove_Structural_Feature_Value_Actions;
62with AMF.UML.String_Expressions;
63with AMF.UML.Structural_Features;
64with AMF.UML.Structured_Activity_Nodes;
65with AMF.Visitors;
66
67package AMF.Internals.UML_Remove_Structural_Feature_Value_Actions is
68
69   type UML_Remove_Structural_Feature_Value_Action_Proxy is
70     limited new AMF.Internals.UML_Named_Elements.UML_Named_Element_Proxy
71       and AMF.UML.Remove_Structural_Feature_Value_Actions.UML_Remove_Structural_Feature_Value_Action with null record;
72
73   overriding function Get_Is_Remove_Duplicates
74    (Self : not null access constant UML_Remove_Structural_Feature_Value_Action_Proxy)
75       return Boolean;
76   --  Getter of RemoveStructuralFeatureValueAction::isRemoveDuplicates.
77   --
78   --  Specifies whether to remove duplicates of the value in nonunique
79   --  structural features.
80
81   overriding procedure Set_Is_Remove_Duplicates
82    (Self : not null access UML_Remove_Structural_Feature_Value_Action_Proxy;
83     To   : Boolean);
84   --  Setter of RemoveStructuralFeatureValueAction::isRemoveDuplicates.
85   --
86   --  Specifies whether to remove duplicates of the value in nonunique
87   --  structural features.
88
89   overriding function Get_Remove_At
90    (Self : not null access constant UML_Remove_Structural_Feature_Value_Action_Proxy)
91       return AMF.UML.Input_Pins.UML_Input_Pin_Access;
92   --  Getter of RemoveStructuralFeatureValueAction::removeAt.
93   --
94   --  Specifies the position of an existing value to remove in ordered
95   --  nonunique structural features. The type of the pin is UnlimitedNatural,
96   --  but the value cannot be zero or unlimited.
97
98   overriding procedure Set_Remove_At
99    (Self : not null access UML_Remove_Structural_Feature_Value_Action_Proxy;
100     To   : AMF.UML.Input_Pins.UML_Input_Pin_Access);
101   --  Setter of RemoveStructuralFeatureValueAction::removeAt.
102   --
103   --  Specifies the position of an existing value to remove in ordered
104   --  nonunique structural features. The type of the pin is UnlimitedNatural,
105   --  but the value cannot be zero or unlimited.
106
107   overriding function Get_Result
108    (Self : not null access constant UML_Remove_Structural_Feature_Value_Action_Proxy)
109       return AMF.UML.Output_Pins.UML_Output_Pin_Access;
110   --  Getter of WriteStructuralFeatureAction::result.
111   --
112   --  Gives the output pin on which the result is put.
113
114   overriding procedure Set_Result
115    (Self : not null access UML_Remove_Structural_Feature_Value_Action_Proxy;
116     To   : AMF.UML.Output_Pins.UML_Output_Pin_Access);
117   --  Setter of WriteStructuralFeatureAction::result.
118   --
119   --  Gives the output pin on which the result is put.
120
121   overriding function Get_Value
122    (Self : not null access constant UML_Remove_Structural_Feature_Value_Action_Proxy)
123       return AMF.UML.Input_Pins.UML_Input_Pin_Access;
124   --  Getter of WriteStructuralFeatureAction::value.
125   --
126   --  Value to be added or removed from the structural feature.
127
128   overriding procedure Set_Value
129    (Self : not null access UML_Remove_Structural_Feature_Value_Action_Proxy;
130     To   : AMF.UML.Input_Pins.UML_Input_Pin_Access);
131   --  Setter of WriteStructuralFeatureAction::value.
132   --
133   --  Value to be added or removed from the structural feature.
134
135   overriding function Get_Object
136    (Self : not null access constant UML_Remove_Structural_Feature_Value_Action_Proxy)
137       return AMF.UML.Input_Pins.UML_Input_Pin_Access;
138   --  Getter of StructuralFeatureAction::object.
139   --
140   --  Gives the input pin from which the object whose structural feature is
141   --  to be read or written is obtained.
142
143   overriding procedure Set_Object
144    (Self : not null access UML_Remove_Structural_Feature_Value_Action_Proxy;
145     To   : AMF.UML.Input_Pins.UML_Input_Pin_Access);
146   --  Setter of StructuralFeatureAction::object.
147   --
148   --  Gives the input pin from which the object whose structural feature is
149   --  to be read or written is obtained.
150
151   overriding function Get_Structural_Feature
152    (Self : not null access constant UML_Remove_Structural_Feature_Value_Action_Proxy)
153       return AMF.UML.Structural_Features.UML_Structural_Feature_Access;
154   --  Getter of StructuralFeatureAction::structuralFeature.
155   --
156   --  Structural feature to be read.
157
158   overriding procedure Set_Structural_Feature
159    (Self : not null access UML_Remove_Structural_Feature_Value_Action_Proxy;
160     To   : AMF.UML.Structural_Features.UML_Structural_Feature_Access);
161   --  Setter of StructuralFeatureAction::structuralFeature.
162   --
163   --  Structural feature to be read.
164
165   overriding function Get_Context
166    (Self : not null access constant UML_Remove_Structural_Feature_Value_Action_Proxy)
167       return AMF.UML.Classifiers.UML_Classifier_Access;
168   --  Getter of Action::context.
169   --
170   --  The classifier that owns the behavior of which this action is a part.
171
172   overriding function Get_Input
173    (Self : not null access constant UML_Remove_Structural_Feature_Value_Action_Proxy)
174       return AMF.UML.Input_Pins.Collections.Ordered_Set_Of_UML_Input_Pin;
175   --  Getter of Action::input.
176   --
177   --  The ordered set of input pins connected to the Action. These are among
178   --  the total set of inputs.
179
180   overriding function Get_Is_Locally_Reentrant
181    (Self : not null access constant UML_Remove_Structural_Feature_Value_Action_Proxy)
182       return Boolean;
183   --  Getter of Action::isLocallyReentrant.
184   --
185   --  If true, the action can begin a new, concurrent execution, even if
186   --  there is already another execution of the action ongoing. If false, the
187   --  action cannot begin a new execution until any previous execution has
188   --  completed.
189
190   overriding procedure Set_Is_Locally_Reentrant
191    (Self : not null access UML_Remove_Structural_Feature_Value_Action_Proxy;
192     To   : Boolean);
193   --  Setter of Action::isLocallyReentrant.
194   --
195   --  If true, the action can begin a new, concurrent execution, even if
196   --  there is already another execution of the action ongoing. If false, the
197   --  action cannot begin a new execution until any previous execution has
198   --  completed.
199
200   overriding function Get_Local_Postcondition
201    (Self : not null access constant UML_Remove_Structural_Feature_Value_Action_Proxy)
202       return AMF.UML.Constraints.Collections.Set_Of_UML_Constraint;
203   --  Getter of Action::localPostcondition.
204   --
205   --  Constraint that must be satisfied when executed is completed.
206
207   overriding function Get_Local_Precondition
208    (Self : not null access constant UML_Remove_Structural_Feature_Value_Action_Proxy)
209       return AMF.UML.Constraints.Collections.Set_Of_UML_Constraint;
210   --  Getter of Action::localPrecondition.
211   --
212   --  Constraint that must be satisfied when execution is started.
213
214   overriding function Get_Output
215    (Self : not null access constant UML_Remove_Structural_Feature_Value_Action_Proxy)
216       return AMF.UML.Output_Pins.Collections.Ordered_Set_Of_UML_Output_Pin;
217   --  Getter of Action::output.
218   --
219   --  The ordered set of output pins connected to the Action. The action
220   --  places its results onto pins in this set.
221
222   overriding function Get_Handler
223    (Self : not null access constant UML_Remove_Structural_Feature_Value_Action_Proxy)
224       return AMF.UML.Exception_Handlers.Collections.Set_Of_UML_Exception_Handler;
225   --  Getter of ExecutableNode::handler.
226   --
227   --  A set of exception handlers that are examined if an uncaught exception
228   --  propagates to the outer level of the executable node.
229
230   overriding function Get_Activity
231    (Self : not null access constant UML_Remove_Structural_Feature_Value_Action_Proxy)
232       return AMF.UML.Activities.UML_Activity_Access;
233   --  Getter of ActivityNode::activity.
234   --
235   --  Activity containing the node.
236
237   overriding procedure Set_Activity
238    (Self : not null access UML_Remove_Structural_Feature_Value_Action_Proxy;
239     To   : AMF.UML.Activities.UML_Activity_Access);
240   --  Setter of ActivityNode::activity.
241   --
242   --  Activity containing the node.
243
244   overriding function Get_In_Group
245    (Self : not null access constant UML_Remove_Structural_Feature_Value_Action_Proxy)
246       return AMF.UML.Activity_Groups.Collections.Set_Of_UML_Activity_Group;
247   --  Getter of ActivityNode::inGroup.
248   --
249   --  Groups containing the node.
250
251   overriding function Get_In_Interruptible_Region
252    (Self : not null access constant UML_Remove_Structural_Feature_Value_Action_Proxy)
253       return AMF.UML.Interruptible_Activity_Regions.Collections.Set_Of_UML_Interruptible_Activity_Region;
254   --  Getter of ActivityNode::inInterruptibleRegion.
255   --
256   --  Interruptible regions containing the node.
257
258   overriding function Get_In_Partition
259    (Self : not null access constant UML_Remove_Structural_Feature_Value_Action_Proxy)
260       return AMF.UML.Activity_Partitions.Collections.Set_Of_UML_Activity_Partition;
261   --  Getter of ActivityNode::inPartition.
262   --
263   --  Partitions containing the node.
264
265   overriding function Get_In_Structured_Node
266    (Self : not null access constant UML_Remove_Structural_Feature_Value_Action_Proxy)
267       return AMF.UML.Structured_Activity_Nodes.UML_Structured_Activity_Node_Access;
268   --  Getter of ActivityNode::inStructuredNode.
269   --
270   --  Structured activity node containing the node.
271
272   overriding procedure Set_In_Structured_Node
273    (Self : not null access UML_Remove_Structural_Feature_Value_Action_Proxy;
274     To   : AMF.UML.Structured_Activity_Nodes.UML_Structured_Activity_Node_Access);
275   --  Setter of ActivityNode::inStructuredNode.
276   --
277   --  Structured activity node containing the node.
278
279   overriding function Get_Incoming
280    (Self : not null access constant UML_Remove_Structural_Feature_Value_Action_Proxy)
281       return AMF.UML.Activity_Edges.Collections.Set_Of_UML_Activity_Edge;
282   --  Getter of ActivityNode::incoming.
283   --
284   --  Edges that have the node as target.
285
286   overriding function Get_Outgoing
287    (Self : not null access constant UML_Remove_Structural_Feature_Value_Action_Proxy)
288       return AMF.UML.Activity_Edges.Collections.Set_Of_UML_Activity_Edge;
289   --  Getter of ActivityNode::outgoing.
290   --
291   --  Edges that have the node as source.
292
293   overriding function Get_Redefined_Node
294    (Self : not null access constant UML_Remove_Structural_Feature_Value_Action_Proxy)
295       return AMF.UML.Activity_Nodes.Collections.Set_Of_UML_Activity_Node;
296   --  Getter of ActivityNode::redefinedNode.
297   --
298   --  Inherited nodes replaced by this node in a specialization of the
299   --  activity.
300
301   overriding function Get_Is_Leaf
302    (Self : not null access constant UML_Remove_Structural_Feature_Value_Action_Proxy)
303       return Boolean;
304   --  Getter of RedefinableElement::isLeaf.
305   --
306   --  Indicates whether it is possible to further redefine a
307   --  RedefinableElement. If the value is true, then it is not possible to
308   --  further redefine the RedefinableElement. Note that this property is
309   --  preserved through package merge operations; that is, the capability to
310   --  redefine a RedefinableElement (i.e., isLeaf=false) must be preserved in
311   --  the resulting RedefinableElement of a package merge operation where a
312   --  RedefinableElement with isLeaf=false is merged with a matching
313   --  RedefinableElement with isLeaf=true: the resulting RedefinableElement
314   --  will have isLeaf=false. Default value is false.
315
316   overriding procedure Set_Is_Leaf
317    (Self : not null access UML_Remove_Structural_Feature_Value_Action_Proxy;
318     To   : Boolean);
319   --  Setter of RedefinableElement::isLeaf.
320   --
321   --  Indicates whether it is possible to further redefine a
322   --  RedefinableElement. If the value is true, then it is not possible to
323   --  further redefine the RedefinableElement. Note that this property is
324   --  preserved through package merge operations; that is, the capability to
325   --  redefine a RedefinableElement (i.e., isLeaf=false) must be preserved in
326   --  the resulting RedefinableElement of a package merge operation where a
327   --  RedefinableElement with isLeaf=false is merged with a matching
328   --  RedefinableElement with isLeaf=true: the resulting RedefinableElement
329   --  will have isLeaf=false. Default value is false.
330
331   overriding function Get_Redefined_Element
332    (Self : not null access constant UML_Remove_Structural_Feature_Value_Action_Proxy)
333       return AMF.UML.Redefinable_Elements.Collections.Set_Of_UML_Redefinable_Element;
334   --  Getter of RedefinableElement::redefinedElement.
335   --
336   --  The redefinable element that is being redefined by this element.
337
338   overriding function Get_Redefinition_Context
339    (Self : not null access constant UML_Remove_Structural_Feature_Value_Action_Proxy)
340       return AMF.UML.Classifiers.Collections.Set_Of_UML_Classifier;
341   --  Getter of RedefinableElement::redefinitionContext.
342   --
343   --  References the contexts that this element may be redefined from.
344
345   overriding function Get_Client_Dependency
346    (Self : not null access constant UML_Remove_Structural_Feature_Value_Action_Proxy)
347       return AMF.UML.Dependencies.Collections.Set_Of_UML_Dependency;
348   --  Getter of NamedElement::clientDependency.
349   --
350   --  Indicates the dependencies that reference the client.
351
352   overriding function Get_Name_Expression
353    (Self : not null access constant UML_Remove_Structural_Feature_Value_Action_Proxy)
354       return AMF.UML.String_Expressions.UML_String_Expression_Access;
355   --  Getter of NamedElement::nameExpression.
356   --
357   --  The string expression used to define the name of this named element.
358
359   overriding procedure Set_Name_Expression
360    (Self : not null access UML_Remove_Structural_Feature_Value_Action_Proxy;
361     To   : AMF.UML.String_Expressions.UML_String_Expression_Access);
362   --  Setter of NamedElement::nameExpression.
363   --
364   --  The string expression used to define the name of this named element.
365
366   overriding function Get_Namespace
367    (Self : not null access constant UML_Remove_Structural_Feature_Value_Action_Proxy)
368       return AMF.UML.Namespaces.UML_Namespace_Access;
369   --  Getter of NamedElement::namespace.
370   --
371   --  Specifies the namespace that owns the NamedElement.
372
373   overriding function Get_Qualified_Name
374    (Self : not null access constant UML_Remove_Structural_Feature_Value_Action_Proxy)
375       return AMF.Optional_String;
376   --  Getter of NamedElement::qualifiedName.
377   --
378   --  A name which allows the NamedElement to be identified within a
379   --  hierarchy of nested Namespaces. It is constructed from the names of the
380   --  containing namespaces starting at the root of the hierarchy and ending
381   --  with the name of the NamedElement itself.
382
383   overriding function Context
384    (Self : not null access constant UML_Remove_Structural_Feature_Value_Action_Proxy)
385       return AMF.UML.Classifiers.UML_Classifier_Access;
386   --  Operation Action::context.
387   --
388   --  Missing derivation for Action::/context : Classifier
389
390   overriding function Is_Consistent_With
391    (Self : not null access constant UML_Remove_Structural_Feature_Value_Action_Proxy;
392     Redefinee : AMF.UML.Redefinable_Elements.UML_Redefinable_Element_Access)
393       return Boolean;
394   --  Operation RedefinableElement::isConsistentWith.
395   --
396   --  The query isConsistentWith() specifies, for any two RedefinableElements
397   --  in a context in which redefinition is possible, whether redefinition
398   --  would be logically consistent. By default, this is false; this
399   --  operation must be overridden for subclasses of RedefinableElement to
400   --  define the consistency conditions.
401
402   overriding function Is_Redefinition_Context_Valid
403    (Self : not null access constant UML_Remove_Structural_Feature_Value_Action_Proxy;
404     Redefined : AMF.UML.Redefinable_Elements.UML_Redefinable_Element_Access)
405       return Boolean;
406   --  Operation RedefinableElement::isRedefinitionContextValid.
407   --
408   --  The query isRedefinitionContextValid() specifies whether the
409   --  redefinition contexts of this RedefinableElement are properly related
410   --  to the redefinition contexts of the specified RedefinableElement to
411   --  allow this element to redefine the other. By default at least one of
412   --  the redefinition contexts of this element must be a specialization of
413   --  at least one of the redefinition contexts of the specified element.
414
415   overriding function All_Owning_Packages
416    (Self : not null access constant UML_Remove_Structural_Feature_Value_Action_Proxy)
417       return AMF.UML.Packages.Collections.Set_Of_UML_Package;
418   --  Operation NamedElement::allOwningPackages.
419   --
420   --  The query allOwningPackages() returns all the directly or indirectly
421   --  owning packages.
422
423   overriding function Is_Distinguishable_From
424    (Self : not null access constant UML_Remove_Structural_Feature_Value_Action_Proxy;
425     N : AMF.UML.Named_Elements.UML_Named_Element_Access;
426     Ns : AMF.UML.Namespaces.UML_Namespace_Access)
427       return Boolean;
428   --  Operation NamedElement::isDistinguishableFrom.
429   --
430   --  The query isDistinguishableFrom() determines whether two NamedElements
431   --  may logically co-exist within a Namespace. By default, two named
432   --  elements are distinguishable if (a) they have unrelated types or (b)
433   --  they have related types but different names.
434
435   overriding function Namespace
436    (Self : not null access constant UML_Remove_Structural_Feature_Value_Action_Proxy)
437       return AMF.UML.Namespaces.UML_Namespace_Access;
438   --  Operation NamedElement::namespace.
439   --
440   --  Missing derivation for NamedElement::/namespace : Namespace
441
442   overriding procedure Enter_Element
443    (Self    : not null access constant UML_Remove_Structural_Feature_Value_Action_Proxy;
444     Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
445     Control : in out AMF.Visitors.Traverse_Control);
446   --  Dispatch call to corresponding subprogram of visitor interface.
447
448   overriding procedure Leave_Element
449    (Self    : not null access constant UML_Remove_Structural_Feature_Value_Action_Proxy;
450     Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
451     Control : in out AMF.Visitors.Traverse_Control);
452   --  Dispatch call to corresponding subprogram of visitor interface.
453
454   overriding procedure Visit_Element
455    (Self     : not null access constant UML_Remove_Structural_Feature_Value_Action_Proxy;
456     Iterator : in out AMF.Visitors.Abstract_Iterator'Class;
457     Visitor  : in out AMF.Visitors.Abstract_Visitor'Class;
458     Control  : in out AMF.Visitors.Traverse_Control);
459   --  Dispatch call to corresponding subprogram of iterator interface.
460
461end AMF.Internals.UML_Remove_Structural_Feature_Value_Actions;
462