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_Opaque_Behaviors;
45with AMF.String_Collections;
46with AMF.UML.Behavioral_Features;
47with AMF.UML.Behaviored_Classifiers;
48with AMF.UML.Behaviors.Collections;
49with AMF.UML.Classes.Collections;
50with AMF.UML.Classifier_Template_Parameters;
51with AMF.UML.Classifiers.Collections;
52with AMF.UML.Collaboration_Uses.Collections;
53with AMF.UML.Connectable_Elements.Collections;
54with AMF.UML.Connectors.Collections;
55with AMF.UML.Constraints.Collections;
56with AMF.UML.Dependencies.Collections;
57with AMF.UML.Element_Imports.Collections;
58with AMF.UML.Extensions.Collections;
59with AMF.UML.Features.Collections;
60with AMF.UML.Function_Behaviors;
61with AMF.UML.Generalization_Sets.Collections;
62with AMF.UML.Generalizations.Collections;
63with AMF.UML.Interface_Realizations.Collections;
64with AMF.UML.Named_Elements.Collections;
65with AMF.UML.Namespaces;
66with AMF.UML.Operations.Collections;
67with AMF.UML.Package_Imports.Collections;
68with AMF.UML.Packageable_Elements.Collections;
69with AMF.UML.Packages.Collections;
70with AMF.UML.Parameter_Sets.Collections;
71with AMF.UML.Parameterable_Elements.Collections;
72with AMF.UML.Parameters.Collections;
73with AMF.UML.Ports.Collections;
74with AMF.UML.Properties.Collections;
75with AMF.UML.Receptions.Collections;
76with AMF.UML.Redefinable_Elements.Collections;
77with AMF.UML.Redefinable_Template_Signatures;
78with AMF.UML.String_Expressions;
79with AMF.UML.Substitutions.Collections;
80with AMF.UML.Template_Bindings.Collections;
81with AMF.UML.Template_Parameters;
82with AMF.UML.Template_Signatures;
83with AMF.UML.Types;
84with AMF.UML.Use_Cases.Collections;
85with AMF.Visitors;
86
87package AMF.Internals.UML_Function_Behaviors is
88
89   type UML_Function_Behavior_Proxy is
90     limited new AMF.Internals.UML_Opaque_Behaviors.UML_Opaque_Behavior_Proxy
91       and AMF.UML.Function_Behaviors.UML_Function_Behavior with null record;
92
93   overriding function Get_Body
94    (Self : not null access constant UML_Function_Behavior_Proxy)
95       return AMF.String_Collections.Sequence_Of_String;
96   --  Getter of OpaqueBehavior::body.
97   --
98   --  Specifies the behavior in one or more languages.
99
100   overriding function Get_Language
101    (Self : not null access constant UML_Function_Behavior_Proxy)
102       return AMF.String_Collections.Ordered_Set_Of_String;
103   --  Getter of OpaqueBehavior::language.
104   --
105   --  Languages the body strings use in the same order as the body strings.
106
107   overriding function Get_Context
108    (Self : not null access constant UML_Function_Behavior_Proxy)
109       return AMF.UML.Behaviored_Classifiers.UML_Behaviored_Classifier_Access;
110   --  Getter of Behavior::context.
111   --
112   --  The classifier that is the context for the execution of the behavior.
113   --  If the behavior is owned by a BehavioredClassifier, that classifier is
114   --  the context. Otherwise, the context is the first BehavioredClassifier
115   --  reached by following the chain of owner relationships. For example,
116   --  following this algorithm, the context of an entry action in a state
117   --  machine is the classifier that owns the state machine. The features of
118   --  the context classifier as well as the elements visible to the context
119   --  classifier are visible to the behavior.
120
121   overriding function Get_Is_Reentrant
122    (Self : not null access constant UML_Function_Behavior_Proxy)
123       return Boolean;
124   --  Getter of Behavior::isReentrant.
125   --
126   --  Tells whether the behavior can be invoked while it is still executing
127   --  from a previous invocation.
128
129   overriding procedure Set_Is_Reentrant
130    (Self : not null access UML_Function_Behavior_Proxy;
131     To   : Boolean);
132   --  Setter of Behavior::isReentrant.
133   --
134   --  Tells whether the behavior can be invoked while it is still executing
135   --  from a previous invocation.
136
137   overriding function Get_Owned_Parameter
138    (Self : not null access constant UML_Function_Behavior_Proxy)
139       return AMF.UML.Parameters.Collections.Ordered_Set_Of_UML_Parameter;
140   --  Getter of Behavior::ownedParameter.
141   --
142   --  References a list of parameters to the behavior which describes the
143   --  order and type of arguments that can be given when the behavior is
144   --  invoked and of the values which will be returned when the behavior
145   --  completes its execution.
146
147   overriding function Get_Owned_Parameter_Set
148    (Self : not null access constant UML_Function_Behavior_Proxy)
149       return AMF.UML.Parameter_Sets.Collections.Set_Of_UML_Parameter_Set;
150   --  Getter of Behavior::ownedParameterSet.
151   --
152   --  The ParameterSets owned by this Behavior.
153
154   overriding function Get_Postcondition
155    (Self : not null access constant UML_Function_Behavior_Proxy)
156       return AMF.UML.Constraints.Collections.Set_Of_UML_Constraint;
157   --  Getter of Behavior::postcondition.
158   --
159   --  An optional set of Constraints specifying what is fulfilled after the
160   --  execution of the behavior is completed, if its precondition was
161   --  fulfilled before its invocation.
162
163   overriding function Get_Precondition
164    (Self : not null access constant UML_Function_Behavior_Proxy)
165       return AMF.UML.Constraints.Collections.Set_Of_UML_Constraint;
166   --  Getter of Behavior::precondition.
167   --
168   --  An optional set of Constraints specifying what must be fulfilled when
169   --  the behavior is invoked.
170
171   overriding function Get_Redefined_Behavior
172    (Self : not null access constant UML_Function_Behavior_Proxy)
173       return AMF.UML.Behaviors.Collections.Set_Of_UML_Behavior;
174   --  Getter of Behavior::redefinedBehavior.
175   --
176   --  References a behavior that this behavior redefines. A subtype of
177   --  Behavior may redefine any other subtype of Behavior. If the behavior
178   --  implements a behavioral feature, it replaces the redefined behavior. If
179   --  the behavior is a classifier behavior, it extends the redefined
180   --  behavior.
181
182   overriding function Get_Specification
183    (Self : not null access constant UML_Function_Behavior_Proxy)
184       return AMF.UML.Behavioral_Features.UML_Behavioral_Feature_Access;
185   --  Getter of Behavior::specification.
186   --
187   --  Designates a behavioral feature that the behavior implements. The
188   --  behavioral feature must be owned by the classifier that owns the
189   --  behavior or be inherited by it. The parameters of the behavioral
190   --  feature and the implementing behavior must match. A behavior does not
191   --  need to have a specification, in which case it either is the classifer
192   --  behavior of a BehavioredClassifier or it can only be invoked by another
193   --  behavior of the classifier.
194
195   overriding procedure Set_Specification
196    (Self : not null access UML_Function_Behavior_Proxy;
197     To   : AMF.UML.Behavioral_Features.UML_Behavioral_Feature_Access);
198   --  Setter of Behavior::specification.
199   --
200   --  Designates a behavioral feature that the behavior implements. The
201   --  behavioral feature must be owned by the classifier that owns the
202   --  behavior or be inherited by it. The parameters of the behavioral
203   --  feature and the implementing behavior must match. A behavior does not
204   --  need to have a specification, in which case it either is the classifer
205   --  behavior of a BehavioredClassifier or it can only be invoked by another
206   --  behavior of the classifier.
207
208   overriding function Get_Extension
209    (Self : not null access constant UML_Function_Behavior_Proxy)
210       return AMF.UML.Extensions.Collections.Set_Of_UML_Extension;
211   --  Getter of Class::extension.
212   --
213   --  References the Extensions that specify additional properties of the
214   --  metaclass. The property is derived from the extensions whose memberEnds
215   --  are typed by the Class.
216
217   overriding function Get_Is_Abstract
218    (Self : not null access constant UML_Function_Behavior_Proxy)
219       return Boolean;
220   --  Getter of Class::isAbstract.
221   --
222   --  True when a class is abstract.
223   --  If true, the Classifier does not provide a complete declaration and can
224   --  typically not be instantiated. An abstract classifier is intended to be
225   --  used by other classifiers e.g. as the target of general
226   --  metarelationships or generalization relationships.
227
228   overriding function Get_Is_Active
229    (Self : not null access constant UML_Function_Behavior_Proxy)
230       return Boolean;
231   --  Getter of Class::isActive.
232   --
233   --  Determines whether an object specified by this class is active or not.
234   --  If true, then the owning class is referred to as an active class. If
235   --  false, then such a class is referred to as a passive class.
236
237   overriding procedure Set_Is_Active
238    (Self : not null access UML_Function_Behavior_Proxy;
239     To   : Boolean);
240   --  Setter of Class::isActive.
241   --
242   --  Determines whether an object specified by this class is active or not.
243   --  If true, then the owning class is referred to as an active class. If
244   --  false, then such a class is referred to as a passive class.
245
246   overriding function Get_Nested_Classifier
247    (Self : not null access constant UML_Function_Behavior_Proxy)
248       return AMF.UML.Classifiers.Collections.Ordered_Set_Of_UML_Classifier;
249   --  Getter of Class::nestedClassifier.
250   --
251   --  References all the Classifiers that are defined (nested) within the
252   --  Class.
253
254   overriding function Get_Owned_Attribute
255    (Self : not null access constant UML_Function_Behavior_Proxy)
256       return AMF.UML.Properties.Collections.Ordered_Set_Of_UML_Property;
257   --  Getter of Class::ownedAttribute.
258   --
259   --  The attributes (i.e. the properties) owned by the class.
260
261   overriding function Get_Owned_Operation
262    (Self : not null access constant UML_Function_Behavior_Proxy)
263       return AMF.UML.Operations.Collections.Ordered_Set_Of_UML_Operation;
264   --  Getter of Class::ownedOperation.
265   --
266   --  The operations owned by the class.
267
268   overriding function Get_Owned_Reception
269    (Self : not null access constant UML_Function_Behavior_Proxy)
270       return AMF.UML.Receptions.Collections.Set_Of_UML_Reception;
271   --  Getter of Class::ownedReception.
272   --
273   --  Receptions that objects of this class are willing to accept.
274
275   overriding function Get_Super_Class
276    (Self : not null access constant UML_Function_Behavior_Proxy)
277       return AMF.UML.Classes.Collections.Set_Of_UML_Class;
278   --  Getter of Class::superClass.
279   --
280   --  This gives the superclasses of a class.
281
282   overriding function Get_Classifier_Behavior
283    (Self : not null access constant UML_Function_Behavior_Proxy)
284       return AMF.UML.Behaviors.UML_Behavior_Access;
285   --  Getter of BehavioredClassifier::classifierBehavior.
286   --
287   --  A behavior specification that specifies the behavior of the classifier
288   --  itself.
289
290   overriding procedure Set_Classifier_Behavior
291    (Self : not null access UML_Function_Behavior_Proxy;
292     To   : AMF.UML.Behaviors.UML_Behavior_Access);
293   --  Setter of BehavioredClassifier::classifierBehavior.
294   --
295   --  A behavior specification that specifies the behavior of the classifier
296   --  itself.
297
298   overriding function Get_Interface_Realization
299    (Self : not null access constant UML_Function_Behavior_Proxy)
300       return AMF.UML.Interface_Realizations.Collections.Set_Of_UML_Interface_Realization;
301   --  Getter of BehavioredClassifier::interfaceRealization.
302   --
303   --  The set of InterfaceRealizations owned by the BehavioredClassifier.
304   --  Interface realizations reference the Interfaces of which the
305   --  BehavioredClassifier is an implementation.
306
307   overriding function Get_Owned_Behavior
308    (Self : not null access constant UML_Function_Behavior_Proxy)
309       return AMF.UML.Behaviors.Collections.Set_Of_UML_Behavior;
310   --  Getter of BehavioredClassifier::ownedBehavior.
311   --
312   --  References behavior specifications owned by a classifier.
313
314   overriding function Get_Attribute
315    (Self : not null access constant UML_Function_Behavior_Proxy)
316       return AMF.UML.Properties.Collections.Set_Of_UML_Property;
317   --  Getter of Classifier::attribute.
318   --
319   --  Refers to all of the Properties that are direct (i.e. not inherited or
320   --  imported) attributes of the classifier.
321
322   overriding function Get_Collaboration_Use
323    (Self : not null access constant UML_Function_Behavior_Proxy)
324       return AMF.UML.Collaboration_Uses.Collections.Set_Of_UML_Collaboration_Use;
325   --  Getter of Classifier::collaborationUse.
326   --
327   --  References the collaboration uses owned by the classifier.
328
329   overriding function Get_Feature
330    (Self : not null access constant UML_Function_Behavior_Proxy)
331       return AMF.UML.Features.Collections.Set_Of_UML_Feature;
332   --  Getter of Classifier::feature.
333   --
334   --  Specifies each feature defined in the classifier.
335   --  Note that there may be members of the Classifier that are of the type
336   --  Feature but are not included in this association, e.g. inherited
337   --  features.
338
339   overriding function Get_General
340    (Self : not null access constant UML_Function_Behavior_Proxy)
341       return AMF.UML.Classifiers.Collections.Set_Of_UML_Classifier;
342   --  Getter of Classifier::general.
343   --
344   --  Specifies the general Classifiers for this Classifier.
345   --  References the general classifier in the Generalization relationship.
346
347   overriding function Get_Generalization
348    (Self : not null access constant UML_Function_Behavior_Proxy)
349       return AMF.UML.Generalizations.Collections.Set_Of_UML_Generalization;
350   --  Getter of Classifier::generalization.
351   --
352   --  Specifies the Generalization relationships for this Classifier. These
353   --  Generalizations navigaten to more general classifiers in the
354   --  generalization hierarchy.
355
356   overriding function Get_Inherited_Member
357    (Self : not null access constant UML_Function_Behavior_Proxy)
358       return AMF.UML.Named_Elements.Collections.Set_Of_UML_Named_Element;
359   --  Getter of Classifier::inheritedMember.
360   --
361   --  Specifies all elements inherited by this classifier from the general
362   --  classifiers.
363
364   overriding function Get_Is_Final_Specialization
365    (Self : not null access constant UML_Function_Behavior_Proxy)
366       return Boolean;
367   --  Getter of Classifier::isFinalSpecialization.
368   --
369   --  If true, the Classifier cannot be specialized by generalization. Note
370   --  that this property is preserved through package merge operations; that
371   --  is, the capability to specialize a Classifier (i.e.,
372   --  isFinalSpecialization =false) must be preserved in the resulting
373   --  Classifier of a package merge operation where a Classifier with
374   --  isFinalSpecialization =false is merged with a matching Classifier with
375   --  isFinalSpecialization =true: the resulting Classifier will have
376   --  isFinalSpecialization =false.
377
378   overriding procedure Set_Is_Final_Specialization
379    (Self : not null access UML_Function_Behavior_Proxy;
380     To   : Boolean);
381   --  Setter of Classifier::isFinalSpecialization.
382   --
383   --  If true, the Classifier cannot be specialized by generalization. Note
384   --  that this property is preserved through package merge operations; that
385   --  is, the capability to specialize a Classifier (i.e.,
386   --  isFinalSpecialization =false) must be preserved in the resulting
387   --  Classifier of a package merge operation where a Classifier with
388   --  isFinalSpecialization =false is merged with a matching Classifier with
389   --  isFinalSpecialization =true: the resulting Classifier will have
390   --  isFinalSpecialization =false.
391
392   overriding function Get_Owned_Template_Signature
393    (Self : not null access constant UML_Function_Behavior_Proxy)
394       return AMF.UML.Redefinable_Template_Signatures.UML_Redefinable_Template_Signature_Access;
395   --  Getter of Classifier::ownedTemplateSignature.
396   --
397   --  The optional template signature specifying the formal template
398   --  parameters.
399
400   overriding procedure Set_Owned_Template_Signature
401    (Self : not null access UML_Function_Behavior_Proxy;
402     To   : AMF.UML.Redefinable_Template_Signatures.UML_Redefinable_Template_Signature_Access);
403   --  Setter of Classifier::ownedTemplateSignature.
404   --
405   --  The optional template signature specifying the formal template
406   --  parameters.
407
408   overriding function Get_Owned_Use_Case
409    (Self : not null access constant UML_Function_Behavior_Proxy)
410       return AMF.UML.Use_Cases.Collections.Set_Of_UML_Use_Case;
411   --  Getter of Classifier::ownedUseCase.
412   --
413   --  References the use cases owned by this classifier.
414
415   overriding function Get_Powertype_Extent
416    (Self : not null access constant UML_Function_Behavior_Proxy)
417       return AMF.UML.Generalization_Sets.Collections.Set_Of_UML_Generalization_Set;
418   --  Getter of Classifier::powertypeExtent.
419   --
420   --  Designates the GeneralizationSet of which the associated Classifier is
421   --  a power type.
422
423   overriding function Get_Redefined_Classifier
424    (Self : not null access constant UML_Function_Behavior_Proxy)
425       return AMF.UML.Classifiers.Collections.Set_Of_UML_Classifier;
426   --  Getter of Classifier::redefinedClassifier.
427   --
428   --  References the Classifiers that are redefined by this Classifier.
429
430   overriding function Get_Representation
431    (Self : not null access constant UML_Function_Behavior_Proxy)
432       return AMF.UML.Collaboration_Uses.UML_Collaboration_Use_Access;
433   --  Getter of Classifier::representation.
434   --
435   --  References a collaboration use which indicates the collaboration that
436   --  represents this classifier.
437
438   overriding procedure Set_Representation
439    (Self : not null access UML_Function_Behavior_Proxy;
440     To   : AMF.UML.Collaboration_Uses.UML_Collaboration_Use_Access);
441   --  Setter of Classifier::representation.
442   --
443   --  References a collaboration use which indicates the collaboration that
444   --  represents this classifier.
445
446   overriding function Get_Substitution
447    (Self : not null access constant UML_Function_Behavior_Proxy)
448       return AMF.UML.Substitutions.Collections.Set_Of_UML_Substitution;
449   --  Getter of Classifier::substitution.
450   --
451   --  References the substitutions that are owned by this Classifier.
452
453   overriding function Get_Template_Parameter
454    (Self : not null access constant UML_Function_Behavior_Proxy)
455       return AMF.UML.Classifier_Template_Parameters.UML_Classifier_Template_Parameter_Access;
456   --  Getter of Classifier::templateParameter.
457   --
458   --  The template parameter that exposes this element as a formal parameter.
459
460   overriding procedure Set_Template_Parameter
461    (Self : not null access UML_Function_Behavior_Proxy;
462     To   : AMF.UML.Classifier_Template_Parameters.UML_Classifier_Template_Parameter_Access);
463   --  Setter of Classifier::templateParameter.
464   --
465   --  The template parameter that exposes this element as a formal parameter.
466
467   overriding function Get_Use_Case
468    (Self : not null access constant UML_Function_Behavior_Proxy)
469       return AMF.UML.Use_Cases.Collections.Set_Of_UML_Use_Case;
470   --  Getter of Classifier::useCase.
471   --
472   --  The set of use cases for which this Classifier is the subject.
473
474   overriding function Get_Element_Import
475    (Self : not null access constant UML_Function_Behavior_Proxy)
476       return AMF.UML.Element_Imports.Collections.Set_Of_UML_Element_Import;
477   --  Getter of Namespace::elementImport.
478   --
479   --  References the ElementImports owned by the Namespace.
480
481   overriding function Get_Imported_Member
482    (Self : not null access constant UML_Function_Behavior_Proxy)
483       return AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element;
484   --  Getter of Namespace::importedMember.
485   --
486   --  References the PackageableElements that are members of this Namespace
487   --  as a result of either PackageImports or ElementImports.
488
489   overriding function Get_Member
490    (Self : not null access constant UML_Function_Behavior_Proxy)
491       return AMF.UML.Named_Elements.Collections.Set_Of_UML_Named_Element;
492   --  Getter of Namespace::member.
493   --
494   --  A collection of NamedElements identifiable within the Namespace, either
495   --  by being owned or by being introduced by importing or inheritance.
496
497   overriding function Get_Owned_Member
498    (Self : not null access constant UML_Function_Behavior_Proxy)
499       return AMF.UML.Named_Elements.Collections.Set_Of_UML_Named_Element;
500   --  Getter of Namespace::ownedMember.
501   --
502   --  A collection of NamedElements owned by the Namespace.
503
504   overriding function Get_Owned_Rule
505    (Self : not null access constant UML_Function_Behavior_Proxy)
506       return AMF.UML.Constraints.Collections.Set_Of_UML_Constraint;
507   --  Getter of Namespace::ownedRule.
508   --
509   --  Specifies a set of Constraints owned by this Namespace.
510
511   overriding function Get_Package_Import
512    (Self : not null access constant UML_Function_Behavior_Proxy)
513       return AMF.UML.Package_Imports.Collections.Set_Of_UML_Package_Import;
514   --  Getter of Namespace::packageImport.
515   --
516   --  References the PackageImports owned by the Namespace.
517
518   overriding function Get_Client_Dependency
519    (Self : not null access constant UML_Function_Behavior_Proxy)
520       return AMF.UML.Dependencies.Collections.Set_Of_UML_Dependency;
521   --  Getter of NamedElement::clientDependency.
522   --
523   --  Indicates the dependencies that reference the client.
524
525   overriding function Get_Name_Expression
526    (Self : not null access constant UML_Function_Behavior_Proxy)
527       return AMF.UML.String_Expressions.UML_String_Expression_Access;
528   --  Getter of NamedElement::nameExpression.
529   --
530   --  The string expression used to define the name of this named element.
531
532   overriding procedure Set_Name_Expression
533    (Self : not null access UML_Function_Behavior_Proxy;
534     To   : AMF.UML.String_Expressions.UML_String_Expression_Access);
535   --  Setter of NamedElement::nameExpression.
536   --
537   --  The string expression used to define the name of this named element.
538
539   overriding function Get_Namespace
540    (Self : not null access constant UML_Function_Behavior_Proxy)
541       return AMF.UML.Namespaces.UML_Namespace_Access;
542   --  Getter of NamedElement::namespace.
543   --
544   --  Specifies the namespace that owns the NamedElement.
545
546   overriding function Get_Qualified_Name
547    (Self : not null access constant UML_Function_Behavior_Proxy)
548       return AMF.Optional_String;
549   --  Getter of NamedElement::qualifiedName.
550   --
551   --  A name which allows the NamedElement to be identified within a
552   --  hierarchy of nested Namespaces. It is constructed from the names of the
553   --  containing namespaces starting at the root of the hierarchy and ending
554   --  with the name of the NamedElement itself.
555
556   overriding function Get_Package
557    (Self : not null access constant UML_Function_Behavior_Proxy)
558       return AMF.UML.Packages.UML_Package_Access;
559   --  Getter of Type::package.
560   --
561   --  Specifies the owning package of this classifier, if any.
562
563   overriding procedure Set_Package
564    (Self : not null access UML_Function_Behavior_Proxy;
565     To   : AMF.UML.Packages.UML_Package_Access);
566   --  Setter of Type::package.
567   --
568   --  Specifies the owning package of this classifier, if any.
569
570   overriding function Get_Owning_Template_Parameter
571    (Self : not null access constant UML_Function_Behavior_Proxy)
572       return AMF.UML.Template_Parameters.UML_Template_Parameter_Access;
573   --  Getter of ParameterableElement::owningTemplateParameter.
574   --
575   --  The formal template parameter that owns this element.
576
577   overriding procedure Set_Owning_Template_Parameter
578    (Self : not null access UML_Function_Behavior_Proxy;
579     To   : AMF.UML.Template_Parameters.UML_Template_Parameter_Access);
580   --  Setter of ParameterableElement::owningTemplateParameter.
581   --
582   --  The formal template parameter that owns this element.
583
584   overriding function Get_Template_Parameter
585    (Self : not null access constant UML_Function_Behavior_Proxy)
586       return AMF.UML.Template_Parameters.UML_Template_Parameter_Access;
587   --  Getter of ParameterableElement::templateParameter.
588   --
589   --  The template parameter that exposes this element as a formal parameter.
590
591   overriding procedure Set_Template_Parameter
592    (Self : not null access UML_Function_Behavior_Proxy;
593     To   : AMF.UML.Template_Parameters.UML_Template_Parameter_Access);
594   --  Setter of ParameterableElement::templateParameter.
595   --
596   --  The template parameter that exposes this element as a formal parameter.
597
598   overriding function Get_Owned_Template_Signature
599    (Self : not null access constant UML_Function_Behavior_Proxy)
600       return AMF.UML.Template_Signatures.UML_Template_Signature_Access;
601   --  Getter of TemplateableElement::ownedTemplateSignature.
602   --
603   --  The optional template signature specifying the formal template
604   --  parameters.
605
606   overriding procedure Set_Owned_Template_Signature
607    (Self : not null access UML_Function_Behavior_Proxy;
608     To   : AMF.UML.Template_Signatures.UML_Template_Signature_Access);
609   --  Setter of TemplateableElement::ownedTemplateSignature.
610   --
611   --  The optional template signature specifying the formal template
612   --  parameters.
613
614   overriding function Get_Template_Binding
615    (Self : not null access constant UML_Function_Behavior_Proxy)
616       return AMF.UML.Template_Bindings.Collections.Set_Of_UML_Template_Binding;
617   --  Getter of TemplateableElement::templateBinding.
618   --
619   --  The optional bindings from this element to templates.
620
621   overriding function Get_Is_Leaf
622    (Self : not null access constant UML_Function_Behavior_Proxy)
623       return Boolean;
624   --  Getter of RedefinableElement::isLeaf.
625   --
626   --  Indicates whether it is possible to further redefine a
627   --  RedefinableElement. If the value is true, then it is not possible to
628   --  further redefine the RedefinableElement. Note that this property is
629   --  preserved through package merge operations; that is, the capability to
630   --  redefine a RedefinableElement (i.e., isLeaf=false) must be preserved in
631   --  the resulting RedefinableElement of a package merge operation where a
632   --  RedefinableElement with isLeaf=false is merged with a matching
633   --  RedefinableElement with isLeaf=true: the resulting RedefinableElement
634   --  will have isLeaf=false. Default value is false.
635
636   overriding procedure Set_Is_Leaf
637    (Self : not null access UML_Function_Behavior_Proxy;
638     To   : Boolean);
639   --  Setter of RedefinableElement::isLeaf.
640   --
641   --  Indicates whether it is possible to further redefine a
642   --  RedefinableElement. If the value is true, then it is not possible to
643   --  further redefine the RedefinableElement. Note that this property is
644   --  preserved through package merge operations; that is, the capability to
645   --  redefine a RedefinableElement (i.e., isLeaf=false) must be preserved in
646   --  the resulting RedefinableElement of a package merge operation where a
647   --  RedefinableElement with isLeaf=false is merged with a matching
648   --  RedefinableElement with isLeaf=true: the resulting RedefinableElement
649   --  will have isLeaf=false. Default value is false.
650
651   overriding function Get_Redefined_Element
652    (Self : not null access constant UML_Function_Behavior_Proxy)
653       return AMF.UML.Redefinable_Elements.Collections.Set_Of_UML_Redefinable_Element;
654   --  Getter of RedefinableElement::redefinedElement.
655   --
656   --  The redefinable element that is being redefined by this element.
657
658   overriding function Get_Redefinition_Context
659    (Self : not null access constant UML_Function_Behavior_Proxy)
660       return AMF.UML.Classifiers.Collections.Set_Of_UML_Classifier;
661   --  Getter of RedefinableElement::redefinitionContext.
662   --
663   --  References the contexts that this element may be redefined from.
664
665   overriding function Get_Owned_Port
666    (Self : not null access constant UML_Function_Behavior_Proxy)
667       return AMF.UML.Ports.Collections.Set_Of_UML_Port;
668   --  Getter of EncapsulatedClassifier::ownedPort.
669   --
670   --  References a set of ports that an encapsulated classifier owns.
671
672   overriding function Get_Owned_Connector
673    (Self : not null access constant UML_Function_Behavior_Proxy)
674       return AMF.UML.Connectors.Collections.Set_Of_UML_Connector;
675   --  Getter of StructuredClassifier::ownedConnector.
676   --
677   --  References the connectors owned by the classifier.
678
679   overriding function Get_Part
680    (Self : not null access constant UML_Function_Behavior_Proxy)
681       return AMF.UML.Properties.Collections.Set_Of_UML_Property;
682   --  Getter of StructuredClassifier::part.
683   --
684   --  References the properties specifying instances that the classifier owns
685   --  by composition. This association is derived, selecting those owned
686   --  properties where isComposite is true.
687
688   overriding function Get_Role
689    (Self : not null access constant UML_Function_Behavior_Proxy)
690       return AMF.UML.Connectable_Elements.Collections.Set_Of_UML_Connectable_Element;
691   --  Getter of StructuredClassifier::role.
692   --
693   --  References the roles that instances may play in this classifier.
694
695   overriding function Context
696    (Self : not null access constant UML_Function_Behavior_Proxy)
697       return AMF.UML.Behaviored_Classifiers.UML_Behaviored_Classifier_Access;
698   --  Operation Behavior::context.
699   --
700   --  Missing derivation for Behavior::/context : BehavioredClassifier
701
702   overriding function Extension
703    (Self : not null access constant UML_Function_Behavior_Proxy)
704       return AMF.UML.Extensions.Collections.Set_Of_UML_Extension;
705   --  Operation Class::extension.
706   --
707   --  Missing derivation for Class::/extension : Extension
708
709   overriding function Inherit
710    (Self : not null access constant UML_Function_Behavior_Proxy;
711     Inhs : AMF.UML.Named_Elements.Collections.Set_Of_UML_Named_Element)
712       return AMF.UML.Named_Elements.Collections.Set_Of_UML_Named_Element;
713   --  Operation Class::inherit.
714   --
715   --  The inherit operation is overridden to exclude redefined properties.
716
717   overriding function Super_Class
718    (Self : not null access constant UML_Function_Behavior_Proxy)
719       return AMF.UML.Classes.Collections.Set_Of_UML_Class;
720   --  Operation Class::superClass.
721   --
722   --  Missing derivation for Class::/superClass : Class
723
724   overriding function All_Features
725    (Self : not null access constant UML_Function_Behavior_Proxy)
726       return AMF.UML.Features.Collections.Set_Of_UML_Feature;
727   --  Operation Classifier::allFeatures.
728   --
729   --  The query allFeatures() gives all of the features in the namespace of
730   --  the classifier. In general, through mechanisms such as inheritance,
731   --  this will be a larger set than feature.
732
733   overriding function Conforms_To
734    (Self : not null access constant UML_Function_Behavior_Proxy;
735     Other : AMF.UML.Classifiers.UML_Classifier_Access)
736       return Boolean;
737   --  Operation Classifier::conformsTo.
738   --
739   --  The query conformsTo() gives true for a classifier that defines a type
740   --  that conforms to another. This is used, for example, in the
741   --  specification of signature conformance for operations.
742
743   overriding function General
744    (Self : not null access constant UML_Function_Behavior_Proxy)
745       return AMF.UML.Classifiers.Collections.Set_Of_UML_Classifier;
746   --  Operation Classifier::general.
747   --
748   --  The general classifiers are the classifiers referenced by the
749   --  generalization relationships.
750
751   overriding function Has_Visibility_Of
752    (Self : not null access constant UML_Function_Behavior_Proxy;
753     N : AMF.UML.Named_Elements.UML_Named_Element_Access)
754       return Boolean;
755   --  Operation Classifier::hasVisibilityOf.
756   --
757   --  The query hasVisibilityOf() determines whether a named element is
758   --  visible in the classifier. By default all are visible. It is only
759   --  called when the argument is something owned by a parent.
760
761   overriding function Inheritable_Members
762    (Self : not null access constant UML_Function_Behavior_Proxy;
763     C : AMF.UML.Classifiers.UML_Classifier_Access)
764       return AMF.UML.Named_Elements.Collections.Set_Of_UML_Named_Element;
765   --  Operation Classifier::inheritableMembers.
766   --
767   --  The query inheritableMembers() gives all of the members of a classifier
768   --  that may be inherited in one of its descendants, subject to whatever
769   --  visibility restrictions apply.
770
771   overriding function Inherited_Member
772    (Self : not null access constant UML_Function_Behavior_Proxy)
773       return AMF.UML.Named_Elements.Collections.Set_Of_UML_Named_Element;
774   --  Operation Classifier::inheritedMember.
775   --
776   --  The inheritedMember association is derived by inheriting the
777   --  inheritable members of the parents.
778   --  The inheritedMember association is derived by inheriting the
779   --  inheritable members of the parents.
780
781   overriding function Is_Template
782    (Self : not null access constant UML_Function_Behavior_Proxy)
783       return Boolean;
784   --  Operation Classifier::isTemplate.
785   --
786   --  The query isTemplate() returns whether this templateable element is
787   --  actually a template.
788
789   overriding function May_Specialize_Type
790    (Self : not null access constant UML_Function_Behavior_Proxy;
791     C : AMF.UML.Classifiers.UML_Classifier_Access)
792       return Boolean;
793   --  Operation Classifier::maySpecializeType.
794   --
795   --  The query maySpecializeType() determines whether this classifier may
796   --  have a generalization relationship to classifiers of the specified
797   --  type. By default a classifier may specialize classifiers of the same or
798   --  a more general type. It is intended to be redefined by classifiers that
799   --  have different specialization constraints.
800
801   overriding function Exclude_Collisions
802    (Self : not null access constant UML_Function_Behavior_Proxy;
803     Imps : AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element)
804       return AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element;
805   --  Operation Namespace::excludeCollisions.
806   --
807   --  The query excludeCollisions() excludes from a set of
808   --  PackageableElements any that would not be distinguishable from each
809   --  other in this namespace.
810
811   overriding function Get_Names_Of_Member
812    (Self : not null access constant UML_Function_Behavior_Proxy;
813     Element : AMF.UML.Named_Elements.UML_Named_Element_Access)
814       return AMF.String_Collections.Set_Of_String;
815   --  Operation Namespace::getNamesOfMember.
816   --
817   --  The query getNamesOfMember() takes importing into account. It gives
818   --  back the set of names that an element would have in an importing
819   --  namespace, either because it is owned, or if not owned then imported
820   --  individually, or if not individually then from a package.
821   --  The query getNamesOfMember() gives a set of all of the names that a
822   --  member would have in a Namespace. In general a member can have multiple
823   --  names in a Namespace if it is imported more than once with different
824   --  aliases. The query takes account of importing. It gives back the set of
825   --  names that an element would have in an importing namespace, either
826   --  because it is owned, or if not owned then imported individually, or if
827   --  not individually then from a package.
828
829   overriding function Import_Members
830    (Self : not null access constant UML_Function_Behavior_Proxy;
831     Imps : AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element)
832       return AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element;
833   --  Operation Namespace::importMembers.
834   --
835   --  The query importMembers() defines which of a set of PackageableElements
836   --  are actually imported into the namespace. This excludes hidden ones,
837   --  i.e., those which have names that conflict with names of owned members,
838   --  and also excludes elements which would have the same name when imported.
839
840   overriding function Imported_Member
841    (Self : not null access constant UML_Function_Behavior_Proxy)
842       return AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element;
843   --  Operation Namespace::importedMember.
844   --
845   --  The importedMember property is derived from the ElementImports and the
846   --  PackageImports. References the PackageableElements that are members of
847   --  this Namespace as a result of either PackageImports or ElementImports.
848
849   overriding function Members_Are_Distinguishable
850    (Self : not null access constant UML_Function_Behavior_Proxy)
851       return Boolean;
852   --  Operation Namespace::membersAreDistinguishable.
853   --
854   --  The Boolean query membersAreDistinguishable() determines whether all of
855   --  the namespace's members are distinguishable within it.
856
857   overriding function Owned_Member
858    (Self : not null access constant UML_Function_Behavior_Proxy)
859       return AMF.UML.Named_Elements.Collections.Set_Of_UML_Named_Element;
860   --  Operation Namespace::ownedMember.
861   --
862   --  Missing derivation for Namespace::/ownedMember : NamedElement
863
864   overriding function All_Owning_Packages
865    (Self : not null access constant UML_Function_Behavior_Proxy)
866       return AMF.UML.Packages.Collections.Set_Of_UML_Package;
867   --  Operation NamedElement::allOwningPackages.
868   --
869   --  The query allOwningPackages() returns all the directly or indirectly
870   --  owning packages.
871
872   overriding function Is_Distinguishable_From
873    (Self : not null access constant UML_Function_Behavior_Proxy;
874     N : AMF.UML.Named_Elements.UML_Named_Element_Access;
875     Ns : AMF.UML.Namespaces.UML_Namespace_Access)
876       return Boolean;
877   --  Operation NamedElement::isDistinguishableFrom.
878   --
879   --  The query isDistinguishableFrom() determines whether two NamedElements
880   --  may logically co-exist within a Namespace. By default, two named
881   --  elements are distinguishable if (a) they have unrelated types or (b)
882   --  they have related types but different names.
883
884   overriding function Namespace
885    (Self : not null access constant UML_Function_Behavior_Proxy)
886       return AMF.UML.Namespaces.UML_Namespace_Access;
887   --  Operation NamedElement::namespace.
888   --
889   --  Missing derivation for NamedElement::/namespace : Namespace
890
891   overriding function Conforms_To
892    (Self : not null access constant UML_Function_Behavior_Proxy;
893     Other : AMF.UML.Types.UML_Type_Access)
894       return Boolean;
895   --  Operation Type::conformsTo.
896   --
897   --  The query conformsTo() gives true for a type that conforms to another.
898   --  By default, two types do not conform to each other. This query is
899   --  intended to be redefined for specific conformance situations.
900
901   overriding function Is_Compatible_With
902    (Self : not null access constant UML_Function_Behavior_Proxy;
903     P : AMF.UML.Parameterable_Elements.UML_Parameterable_Element_Access)
904       return Boolean;
905   --  Operation ParameterableElement::isCompatibleWith.
906   --
907   --  The query isCompatibleWith() determines if this parameterable element
908   --  is compatible with the specified parameterable element. By default
909   --  parameterable element P is compatible with parameterable element Q if
910   --  the kind of P is the same or a subtype as the kind of Q. Subclasses
911   --  should override this operation to specify different compatibility
912   --  constraints.
913
914   overriding function Is_Template_Parameter
915    (Self : not null access constant UML_Function_Behavior_Proxy)
916       return Boolean;
917   --  Operation ParameterableElement::isTemplateParameter.
918   --
919   --  The query isTemplateParameter() determines if this parameterable
920   --  element is exposed as a formal template parameter.
921
922   overriding function Parameterable_Elements
923    (Self : not null access constant UML_Function_Behavior_Proxy)
924       return AMF.UML.Parameterable_Elements.Collections.Set_Of_UML_Parameterable_Element;
925   --  Operation TemplateableElement::parameterableElements.
926   --
927   --  The query parameterableElements() returns the set of elements that may
928   --  be used as the parametered elements for a template parameter of this
929   --  templateable element. By default, this set includes all the owned
930   --  elements. Subclasses may override this operation if they choose to
931   --  restrict the set of parameterable elements.
932
933   overriding function Is_Consistent_With
934    (Self : not null access constant UML_Function_Behavior_Proxy;
935     Redefinee : AMF.UML.Redefinable_Elements.UML_Redefinable_Element_Access)
936       return Boolean;
937   --  Operation RedefinableElement::isConsistentWith.
938   --
939   --  The query isConsistentWith() specifies, for any two RedefinableElements
940   --  in a context in which redefinition is possible, whether redefinition
941   --  would be logically consistent. By default, this is false; this
942   --  operation must be overridden for subclasses of RedefinableElement to
943   --  define the consistency conditions.
944
945   overriding function Is_Redefinition_Context_Valid
946    (Self : not null access constant UML_Function_Behavior_Proxy;
947     Redefined : AMF.UML.Redefinable_Elements.UML_Redefinable_Element_Access)
948       return Boolean;
949   --  Operation RedefinableElement::isRedefinitionContextValid.
950   --
951   --  The query isRedefinitionContextValid() specifies whether the
952   --  redefinition contexts of this RedefinableElement are properly related
953   --  to the redefinition contexts of the specified RedefinableElement to
954   --  allow this element to redefine the other. By default at least one of
955   --  the redefinition contexts of this element must be a specialization of
956   --  at least one of the redefinition contexts of the specified element.
957
958   overriding function Owned_Port
959    (Self : not null access constant UML_Function_Behavior_Proxy)
960       return AMF.UML.Ports.Collections.Set_Of_UML_Port;
961   --  Operation EncapsulatedClassifier::ownedPort.
962   --
963   --  Missing derivation for EncapsulatedClassifier::/ownedPort : Port
964
965   overriding function Part
966    (Self : not null access constant UML_Function_Behavior_Proxy)
967       return AMF.UML.Properties.Collections.Set_Of_UML_Property;
968   --  Operation StructuredClassifier::part.
969   --
970   --  Missing derivation for StructuredClassifier::/part : Property
971
972   overriding procedure Enter_Element
973    (Self    : not null access constant UML_Function_Behavior_Proxy;
974     Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
975     Control : in out AMF.Visitors.Traverse_Control);
976   --  Dispatch call to corresponding subprogram of visitor interface.
977
978   overriding procedure Leave_Element
979    (Self    : not null access constant UML_Function_Behavior_Proxy;
980     Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
981     Control : in out AMF.Visitors.Traverse_Control);
982   --  Dispatch call to corresponding subprogram of visitor interface.
983
984   overriding procedure Visit_Element
985    (Self     : not null access constant UML_Function_Behavior_Proxy;
986     Iterator : in out AMF.Visitors.Abstract_Iterator'Class;
987     Visitor  : in out AMF.Visitors.Abstract_Visitor'Class;
988     Control  : in out AMF.Visitors.Traverse_Control);
989   --  Dispatch call to corresponding subprogram of iterator interface.
990
991end AMF.Internals.UML_Function_Behaviors;
992