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