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_Classifiers;
45with AMF.String_Collections;
46with AMF.UML.Classifier_Template_Parameters;
47with AMF.UML.Classifiers.Collections;
48with AMF.UML.Collaboration_Uses.Collections;
49with AMF.UML.Constraints.Collections;
50with AMF.UML.Dependencies.Collections;
51with AMF.UML.Element_Imports.Collections;
52with AMF.UML.Features.Collections;
53with AMF.UML.Generalization_Sets.Collections;
54with AMF.UML.Generalizations.Collections;
55with AMF.UML.Information_Items;
56with AMF.UML.Named_Elements.Collections;
57with AMF.UML.Namespaces;
58with AMF.UML.Package_Imports.Collections;
59with AMF.UML.Packageable_Elements.Collections;
60with AMF.UML.Packages.Collections;
61with AMF.UML.Parameterable_Elements.Collections;
62with AMF.UML.Properties.Collections;
63with AMF.UML.Redefinable_Elements.Collections;
64with AMF.UML.Redefinable_Template_Signatures;
65with AMF.UML.String_Expressions;
66with AMF.UML.Substitutions.Collections;
67with AMF.UML.Template_Bindings.Collections;
68with AMF.UML.Template_Parameters;
69with AMF.UML.Template_Signatures;
70with AMF.UML.Types;
71with AMF.UML.Use_Cases.Collections;
72with AMF.Visitors;
73
74package AMF.Internals.UML_Information_Items is
75
76   type UML_Information_Item_Proxy is
77     limited new AMF.Internals.UML_Classifiers.UML_Classifier_Proxy
78       and AMF.UML.Information_Items.UML_Information_Item with null record;
79
80   overriding function Get_Represented
81    (Self : not null access constant UML_Information_Item_Proxy)
82       return AMF.UML.Classifiers.Collections.Set_Of_UML_Classifier;
83   --  Getter of InformationItem::represented.
84   --
85   --  Determines the classifiers that will specify the structure and nature
86   --  of the information. An information item represents all its represented
87   --  classifiers.
88
89   overriding function Get_Attribute
90    (Self : not null access constant UML_Information_Item_Proxy)
91       return AMF.UML.Properties.Collections.Set_Of_UML_Property;
92   --  Getter of Classifier::attribute.
93   --
94   --  Refers to all of the Properties that are direct (i.e. not inherited or
95   --  imported) attributes of the classifier.
96
97   overriding function Get_Collaboration_Use
98    (Self : not null access constant UML_Information_Item_Proxy)
99       return AMF.UML.Collaboration_Uses.Collections.Set_Of_UML_Collaboration_Use;
100   --  Getter of Classifier::collaborationUse.
101   --
102   --  References the collaboration uses owned by the classifier.
103
104   overriding function Get_Feature
105    (Self : not null access constant UML_Information_Item_Proxy)
106       return AMF.UML.Features.Collections.Set_Of_UML_Feature;
107   --  Getter of Classifier::feature.
108   --
109   --  Specifies each feature defined in the classifier.
110   --  Note that there may be members of the Classifier that are of the type
111   --  Feature but are not included in this association, e.g. inherited
112   --  features.
113
114   overriding function Get_General
115    (Self : not null access constant UML_Information_Item_Proxy)
116       return AMF.UML.Classifiers.Collections.Set_Of_UML_Classifier;
117   --  Getter of Classifier::general.
118   --
119   --  Specifies the general Classifiers for this Classifier.
120   --  References the general classifier in the Generalization relationship.
121
122   overriding function Get_Generalization
123    (Self : not null access constant UML_Information_Item_Proxy)
124       return AMF.UML.Generalizations.Collections.Set_Of_UML_Generalization;
125   --  Getter of Classifier::generalization.
126   --
127   --  Specifies the Generalization relationships for this Classifier. These
128   --  Generalizations navigaten to more general classifiers in the
129   --  generalization hierarchy.
130
131   overriding function Get_Inherited_Member
132    (Self : not null access constant UML_Information_Item_Proxy)
133       return AMF.UML.Named_Elements.Collections.Set_Of_UML_Named_Element;
134   --  Getter of Classifier::inheritedMember.
135   --
136   --  Specifies all elements inherited by this classifier from the general
137   --  classifiers.
138
139   overriding function Get_Is_Abstract
140    (Self : not null access constant UML_Information_Item_Proxy)
141       return Boolean;
142   --  Getter of Classifier::isAbstract.
143   --
144   --  If true, the Classifier does not provide a complete declaration and can
145   --  typically not be instantiated. An abstract classifier is intended to be
146   --  used by other classifiers e.g. as the target of general
147   --  metarelationships or generalization relationships.
148
149   overriding function Get_Is_Final_Specialization
150    (Self : not null access constant UML_Information_Item_Proxy)
151       return Boolean;
152   --  Getter of Classifier::isFinalSpecialization.
153   --
154   --  If true, the Classifier cannot be specialized by generalization. Note
155   --  that this property is preserved through package merge operations; that
156   --  is, the capability to specialize a Classifier (i.e.,
157   --  isFinalSpecialization =false) must be preserved in the resulting
158   --  Classifier of a package merge operation where a Classifier with
159   --  isFinalSpecialization =false is merged with a matching Classifier with
160   --  isFinalSpecialization =true: the resulting Classifier will have
161   --  isFinalSpecialization =false.
162
163   overriding procedure Set_Is_Final_Specialization
164    (Self : not null access UML_Information_Item_Proxy;
165     To   : Boolean);
166   --  Setter of Classifier::isFinalSpecialization.
167   --
168   --  If true, the Classifier cannot be specialized by generalization. Note
169   --  that this property is preserved through package merge operations; that
170   --  is, the capability to specialize a Classifier (i.e.,
171   --  isFinalSpecialization =false) must be preserved in the resulting
172   --  Classifier of a package merge operation where a Classifier with
173   --  isFinalSpecialization =false is merged with a matching Classifier with
174   --  isFinalSpecialization =true: the resulting Classifier will have
175   --  isFinalSpecialization =false.
176
177   overriding function Get_Owned_Template_Signature
178    (Self : not null access constant UML_Information_Item_Proxy)
179       return AMF.UML.Redefinable_Template_Signatures.UML_Redefinable_Template_Signature_Access;
180   --  Getter of Classifier::ownedTemplateSignature.
181   --
182   --  The optional template signature specifying the formal template
183   --  parameters.
184
185   overriding procedure Set_Owned_Template_Signature
186    (Self : not null access UML_Information_Item_Proxy;
187     To   : AMF.UML.Redefinable_Template_Signatures.UML_Redefinable_Template_Signature_Access);
188   --  Setter of Classifier::ownedTemplateSignature.
189   --
190   --  The optional template signature specifying the formal template
191   --  parameters.
192
193   overriding function Get_Owned_Use_Case
194    (Self : not null access constant UML_Information_Item_Proxy)
195       return AMF.UML.Use_Cases.Collections.Set_Of_UML_Use_Case;
196   --  Getter of Classifier::ownedUseCase.
197   --
198   --  References the use cases owned by this classifier.
199
200   overriding function Get_Powertype_Extent
201    (Self : not null access constant UML_Information_Item_Proxy)
202       return AMF.UML.Generalization_Sets.Collections.Set_Of_UML_Generalization_Set;
203   --  Getter of Classifier::powertypeExtent.
204   --
205   --  Designates the GeneralizationSet of which the associated Classifier is
206   --  a power type.
207
208   overriding function Get_Redefined_Classifier
209    (Self : not null access constant UML_Information_Item_Proxy)
210       return AMF.UML.Classifiers.Collections.Set_Of_UML_Classifier;
211   --  Getter of Classifier::redefinedClassifier.
212   --
213   --  References the Classifiers that are redefined by this Classifier.
214
215   overriding function Get_Representation
216    (Self : not null access constant UML_Information_Item_Proxy)
217       return AMF.UML.Collaboration_Uses.UML_Collaboration_Use_Access;
218   --  Getter of Classifier::representation.
219   --
220   --  References a collaboration use which indicates the collaboration that
221   --  represents this classifier.
222
223   overriding procedure Set_Representation
224    (Self : not null access UML_Information_Item_Proxy;
225     To   : AMF.UML.Collaboration_Uses.UML_Collaboration_Use_Access);
226   --  Setter of Classifier::representation.
227   --
228   --  References a collaboration use which indicates the collaboration that
229   --  represents this classifier.
230
231   overriding function Get_Substitution
232    (Self : not null access constant UML_Information_Item_Proxy)
233       return AMF.UML.Substitutions.Collections.Set_Of_UML_Substitution;
234   --  Getter of Classifier::substitution.
235   --
236   --  References the substitutions that are owned by this Classifier.
237
238   overriding function Get_Template_Parameter
239    (Self : not null access constant UML_Information_Item_Proxy)
240       return AMF.UML.Classifier_Template_Parameters.UML_Classifier_Template_Parameter_Access;
241   --  Getter of Classifier::templateParameter.
242   --
243   --  The template parameter that exposes this element as a formal parameter.
244
245   overriding procedure Set_Template_Parameter
246    (Self : not null access UML_Information_Item_Proxy;
247     To   : AMF.UML.Classifier_Template_Parameters.UML_Classifier_Template_Parameter_Access);
248   --  Setter of Classifier::templateParameter.
249   --
250   --  The template parameter that exposes this element as a formal parameter.
251
252   overriding function Get_Use_Case
253    (Self : not null access constant UML_Information_Item_Proxy)
254       return AMF.UML.Use_Cases.Collections.Set_Of_UML_Use_Case;
255   --  Getter of Classifier::useCase.
256   --
257   --  The set of use cases for which this Classifier is the subject.
258
259   overriding function Get_Element_Import
260    (Self : not null access constant UML_Information_Item_Proxy)
261       return AMF.UML.Element_Imports.Collections.Set_Of_UML_Element_Import;
262   --  Getter of Namespace::elementImport.
263   --
264   --  References the ElementImports owned by the Namespace.
265
266   overriding function Get_Imported_Member
267    (Self : not null access constant UML_Information_Item_Proxy)
268       return AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element;
269   --  Getter of Namespace::importedMember.
270   --
271   --  References the PackageableElements that are members of this Namespace
272   --  as a result of either PackageImports or ElementImports.
273
274   overriding function Get_Member
275    (Self : not null access constant UML_Information_Item_Proxy)
276       return AMF.UML.Named_Elements.Collections.Set_Of_UML_Named_Element;
277   --  Getter of Namespace::member.
278   --
279   --  A collection of NamedElements identifiable within the Namespace, either
280   --  by being owned or by being introduced by importing or inheritance.
281
282   overriding function Get_Owned_Member
283    (Self : not null access constant UML_Information_Item_Proxy)
284       return AMF.UML.Named_Elements.Collections.Set_Of_UML_Named_Element;
285   --  Getter of Namespace::ownedMember.
286   --
287   --  A collection of NamedElements owned by the Namespace.
288
289   overriding function Get_Owned_Rule
290    (Self : not null access constant UML_Information_Item_Proxy)
291       return AMF.UML.Constraints.Collections.Set_Of_UML_Constraint;
292   --  Getter of Namespace::ownedRule.
293   --
294   --  Specifies a set of Constraints owned by this Namespace.
295
296   overriding function Get_Package_Import
297    (Self : not null access constant UML_Information_Item_Proxy)
298       return AMF.UML.Package_Imports.Collections.Set_Of_UML_Package_Import;
299   --  Getter of Namespace::packageImport.
300   --
301   --  References the PackageImports owned by the Namespace.
302
303   overriding function Get_Client_Dependency
304    (Self : not null access constant UML_Information_Item_Proxy)
305       return AMF.UML.Dependencies.Collections.Set_Of_UML_Dependency;
306   --  Getter of NamedElement::clientDependency.
307   --
308   --  Indicates the dependencies that reference the client.
309
310   overriding function Get_Name_Expression
311    (Self : not null access constant UML_Information_Item_Proxy)
312       return AMF.UML.String_Expressions.UML_String_Expression_Access;
313   --  Getter of NamedElement::nameExpression.
314   --
315   --  The string expression used to define the name of this named element.
316
317   overriding procedure Set_Name_Expression
318    (Self : not null access UML_Information_Item_Proxy;
319     To   : AMF.UML.String_Expressions.UML_String_Expression_Access);
320   --  Setter of NamedElement::nameExpression.
321   --
322   --  The string expression used to define the name of this named element.
323
324   overriding function Get_Namespace
325    (Self : not null access constant UML_Information_Item_Proxy)
326       return AMF.UML.Namespaces.UML_Namespace_Access;
327   --  Getter of NamedElement::namespace.
328   --
329   --  Specifies the namespace that owns the NamedElement.
330
331   overriding function Get_Qualified_Name
332    (Self : not null access constant UML_Information_Item_Proxy)
333       return AMF.Optional_String;
334   --  Getter of NamedElement::qualifiedName.
335   --
336   --  A name which allows the NamedElement to be identified within a
337   --  hierarchy of nested Namespaces. It is constructed from the names of the
338   --  containing namespaces starting at the root of the hierarchy and ending
339   --  with the name of the NamedElement itself.
340
341   overriding function Get_Package
342    (Self : not null access constant UML_Information_Item_Proxy)
343       return AMF.UML.Packages.UML_Package_Access;
344   --  Getter of Type::package.
345   --
346   --  Specifies the owning package of this classifier, if any.
347
348   overriding procedure Set_Package
349    (Self : not null access UML_Information_Item_Proxy;
350     To   : AMF.UML.Packages.UML_Package_Access);
351   --  Setter of Type::package.
352   --
353   --  Specifies the owning package of this classifier, if any.
354
355   overriding function Get_Owning_Template_Parameter
356    (Self : not null access constant UML_Information_Item_Proxy)
357       return AMF.UML.Template_Parameters.UML_Template_Parameter_Access;
358   --  Getter of ParameterableElement::owningTemplateParameter.
359   --
360   --  The formal template parameter that owns this element.
361
362   overriding procedure Set_Owning_Template_Parameter
363    (Self : not null access UML_Information_Item_Proxy;
364     To   : AMF.UML.Template_Parameters.UML_Template_Parameter_Access);
365   --  Setter of ParameterableElement::owningTemplateParameter.
366   --
367   --  The formal template parameter that owns this element.
368
369   overriding function Get_Template_Parameter
370    (Self : not null access constant UML_Information_Item_Proxy)
371       return AMF.UML.Template_Parameters.UML_Template_Parameter_Access;
372   --  Getter of ParameterableElement::templateParameter.
373   --
374   --  The template parameter that exposes this element as a formal parameter.
375
376   overriding procedure Set_Template_Parameter
377    (Self : not null access UML_Information_Item_Proxy;
378     To   : AMF.UML.Template_Parameters.UML_Template_Parameter_Access);
379   --  Setter of ParameterableElement::templateParameter.
380   --
381   --  The template parameter that exposes this element as a formal parameter.
382
383   overriding function Get_Owned_Template_Signature
384    (Self : not null access constant UML_Information_Item_Proxy)
385       return AMF.UML.Template_Signatures.UML_Template_Signature_Access;
386   --  Getter of TemplateableElement::ownedTemplateSignature.
387   --
388   --  The optional template signature specifying the formal template
389   --  parameters.
390
391   overriding procedure Set_Owned_Template_Signature
392    (Self : not null access UML_Information_Item_Proxy;
393     To   : AMF.UML.Template_Signatures.UML_Template_Signature_Access);
394   --  Setter of TemplateableElement::ownedTemplateSignature.
395   --
396   --  The optional template signature specifying the formal template
397   --  parameters.
398
399   overriding function Get_Template_Binding
400    (Self : not null access constant UML_Information_Item_Proxy)
401       return AMF.UML.Template_Bindings.Collections.Set_Of_UML_Template_Binding;
402   --  Getter of TemplateableElement::templateBinding.
403   --
404   --  The optional bindings from this element to templates.
405
406   overriding function Get_Is_Leaf
407    (Self : not null access constant UML_Information_Item_Proxy)
408       return Boolean;
409   --  Getter of RedefinableElement::isLeaf.
410   --
411   --  Indicates whether it is possible to further redefine a
412   --  RedefinableElement. If the value is true, then it is not possible to
413   --  further redefine the RedefinableElement. Note that this property is
414   --  preserved through package merge operations; that is, the capability to
415   --  redefine a RedefinableElement (i.e., isLeaf=false) must be preserved in
416   --  the resulting RedefinableElement of a package merge operation where a
417   --  RedefinableElement with isLeaf=false is merged with a matching
418   --  RedefinableElement with isLeaf=true: the resulting RedefinableElement
419   --  will have isLeaf=false. Default value is false.
420
421   overriding procedure Set_Is_Leaf
422    (Self : not null access UML_Information_Item_Proxy;
423     To   : Boolean);
424   --  Setter of RedefinableElement::isLeaf.
425   --
426   --  Indicates whether it is possible to further redefine a
427   --  RedefinableElement. If the value is true, then it is not possible to
428   --  further redefine the RedefinableElement. Note that this property is
429   --  preserved through package merge operations; that is, the capability to
430   --  redefine a RedefinableElement (i.e., isLeaf=false) must be preserved in
431   --  the resulting RedefinableElement of a package merge operation where a
432   --  RedefinableElement with isLeaf=false is merged with a matching
433   --  RedefinableElement with isLeaf=true: the resulting RedefinableElement
434   --  will have isLeaf=false. Default value is false.
435
436   overriding function Get_Redefined_Element
437    (Self : not null access constant UML_Information_Item_Proxy)
438       return AMF.UML.Redefinable_Elements.Collections.Set_Of_UML_Redefinable_Element;
439   --  Getter of RedefinableElement::redefinedElement.
440   --
441   --  The redefinable element that is being redefined by this element.
442
443   overriding function Get_Redefinition_Context
444    (Self : not null access constant UML_Information_Item_Proxy)
445       return AMF.UML.Classifiers.Collections.Set_Of_UML_Classifier;
446   --  Getter of RedefinableElement::redefinitionContext.
447   --
448   --  References the contexts that this element may be redefined from.
449
450   overriding function All_Features
451    (Self : not null access constant UML_Information_Item_Proxy)
452       return AMF.UML.Features.Collections.Set_Of_UML_Feature;
453   --  Operation Classifier::allFeatures.
454   --
455   --  The query allFeatures() gives all of the features in the namespace of
456   --  the classifier. In general, through mechanisms such as inheritance,
457   --  this will be a larger set than feature.
458
459   overriding function Conforms_To
460    (Self : not null access constant UML_Information_Item_Proxy;
461     Other : AMF.UML.Classifiers.UML_Classifier_Access)
462       return Boolean;
463   --  Operation Classifier::conformsTo.
464   --
465   --  The query conformsTo() gives true for a classifier that defines a type
466   --  that conforms to another. This is used, for example, in the
467   --  specification of signature conformance for operations.
468
469   overriding function General
470    (Self : not null access constant UML_Information_Item_Proxy)
471       return AMF.UML.Classifiers.Collections.Set_Of_UML_Classifier;
472   --  Operation Classifier::general.
473   --
474   --  The general classifiers are the classifiers referenced by the
475   --  generalization relationships.
476
477   overriding function Has_Visibility_Of
478    (Self : not null access constant UML_Information_Item_Proxy;
479     N : AMF.UML.Named_Elements.UML_Named_Element_Access)
480       return Boolean;
481   --  Operation Classifier::hasVisibilityOf.
482   --
483   --  The query hasVisibilityOf() determines whether a named element is
484   --  visible in the classifier. By default all are visible. It is only
485   --  called when the argument is something owned by a parent.
486
487   overriding function Inherit
488    (Self : not null access constant UML_Information_Item_Proxy;
489     Inhs : AMF.UML.Named_Elements.Collections.Set_Of_UML_Named_Element)
490       return AMF.UML.Named_Elements.Collections.Set_Of_UML_Named_Element;
491   --  Operation Classifier::inherit.
492   --
493   --  The query inherit() defines how to inherit a set of elements. Here the
494   --  operation is defined to inherit them all. It is intended to be
495   --  redefined in circumstances where inheritance is affected by
496   --  redefinition.
497   --  The inherit operation is overridden to exclude redefined properties.
498
499   overriding function Inheritable_Members
500    (Self : not null access constant UML_Information_Item_Proxy;
501     C : AMF.UML.Classifiers.UML_Classifier_Access)
502       return AMF.UML.Named_Elements.Collections.Set_Of_UML_Named_Element;
503   --  Operation Classifier::inheritableMembers.
504   --
505   --  The query inheritableMembers() gives all of the members of a classifier
506   --  that may be inherited in one of its descendants, subject to whatever
507   --  visibility restrictions apply.
508
509   overriding function Inherited_Member
510    (Self : not null access constant UML_Information_Item_Proxy)
511       return AMF.UML.Named_Elements.Collections.Set_Of_UML_Named_Element;
512   --  Operation Classifier::inheritedMember.
513   --
514   --  The inheritedMember association is derived by inheriting the
515   --  inheritable members of the parents.
516   --  The inheritedMember association is derived by inheriting the
517   --  inheritable members of the parents.
518
519   overriding function Is_Template
520    (Self : not null access constant UML_Information_Item_Proxy)
521       return Boolean;
522   --  Operation Classifier::isTemplate.
523   --
524   --  The query isTemplate() returns whether this templateable element is
525   --  actually a template.
526
527   overriding function May_Specialize_Type
528    (Self : not null access constant UML_Information_Item_Proxy;
529     C : AMF.UML.Classifiers.UML_Classifier_Access)
530       return Boolean;
531   --  Operation Classifier::maySpecializeType.
532   --
533   --  The query maySpecializeType() determines whether this classifier may
534   --  have a generalization relationship to classifiers of the specified
535   --  type. By default a classifier may specialize classifiers of the same or
536   --  a more general type. It is intended to be redefined by classifiers that
537   --  have different specialization constraints.
538
539   overriding function Exclude_Collisions
540    (Self : not null access constant UML_Information_Item_Proxy;
541     Imps : AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element)
542       return AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element;
543   --  Operation Namespace::excludeCollisions.
544   --
545   --  The query excludeCollisions() excludes from a set of
546   --  PackageableElements any that would not be distinguishable from each
547   --  other in this namespace.
548
549   overriding function Get_Names_Of_Member
550    (Self : not null access constant UML_Information_Item_Proxy;
551     Element : AMF.UML.Named_Elements.UML_Named_Element_Access)
552       return AMF.String_Collections.Set_Of_String;
553   --  Operation Namespace::getNamesOfMember.
554   --
555   --  The query getNamesOfMember() takes importing into account. It gives
556   --  back the set of names that an element would have in an importing
557   --  namespace, either because it is owned, or if not owned then imported
558   --  individually, or if not individually then from a package.
559   --  The query getNamesOfMember() gives a set of all of the names that a
560   --  member would have in a Namespace. In general a member can have multiple
561   --  names in a Namespace if it is imported more than once with different
562   --  aliases. The query takes account of importing. It gives back the set of
563   --  names that an element would have in an importing namespace, either
564   --  because it is owned, or if not owned then imported individually, or if
565   --  not individually then from a package.
566
567   overriding function Import_Members
568    (Self : not null access constant UML_Information_Item_Proxy;
569     Imps : AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element)
570       return AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element;
571   --  Operation Namespace::importMembers.
572   --
573   --  The query importMembers() defines which of a set of PackageableElements
574   --  are actually imported into the namespace. This excludes hidden ones,
575   --  i.e., those which have names that conflict with names of owned members,
576   --  and also excludes elements which would have the same name when imported.
577
578   overriding function Imported_Member
579    (Self : not null access constant UML_Information_Item_Proxy)
580       return AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element;
581   --  Operation Namespace::importedMember.
582   --
583   --  The importedMember property is derived from the ElementImports and the
584   --  PackageImports. References the PackageableElements that are members of
585   --  this Namespace as a result of either PackageImports or ElementImports.
586
587   overriding function Members_Are_Distinguishable
588    (Self : not null access constant UML_Information_Item_Proxy)
589       return Boolean;
590   --  Operation Namespace::membersAreDistinguishable.
591   --
592   --  The Boolean query membersAreDistinguishable() determines whether all of
593   --  the namespace's members are distinguishable within it.
594
595   overriding function Owned_Member
596    (Self : not null access constant UML_Information_Item_Proxy)
597       return AMF.UML.Named_Elements.Collections.Set_Of_UML_Named_Element;
598   --  Operation Namespace::ownedMember.
599   --
600   --  Missing derivation for Namespace::/ownedMember : NamedElement
601
602   overriding function All_Owning_Packages
603    (Self : not null access constant UML_Information_Item_Proxy)
604       return AMF.UML.Packages.Collections.Set_Of_UML_Package;
605   --  Operation NamedElement::allOwningPackages.
606   --
607   --  The query allOwningPackages() returns all the directly or indirectly
608   --  owning packages.
609
610   overriding function Is_Distinguishable_From
611    (Self : not null access constant UML_Information_Item_Proxy;
612     N : AMF.UML.Named_Elements.UML_Named_Element_Access;
613     Ns : AMF.UML.Namespaces.UML_Namespace_Access)
614       return Boolean;
615   --  Operation NamedElement::isDistinguishableFrom.
616   --
617   --  The query isDistinguishableFrom() determines whether two NamedElements
618   --  may logically co-exist within a Namespace. By default, two named
619   --  elements are distinguishable if (a) they have unrelated types or (b)
620   --  they have related types but different names.
621
622   overriding function Namespace
623    (Self : not null access constant UML_Information_Item_Proxy)
624       return AMF.UML.Namespaces.UML_Namespace_Access;
625   --  Operation NamedElement::namespace.
626   --
627   --  Missing derivation for NamedElement::/namespace : Namespace
628
629   overriding function Conforms_To
630    (Self : not null access constant UML_Information_Item_Proxy;
631     Other : AMF.UML.Types.UML_Type_Access)
632       return Boolean;
633   --  Operation Type::conformsTo.
634   --
635   --  The query conformsTo() gives true for a type that conforms to another.
636   --  By default, two types do not conform to each other. This query is
637   --  intended to be redefined for specific conformance situations.
638
639   overriding function Is_Compatible_With
640    (Self : not null access constant UML_Information_Item_Proxy;
641     P : AMF.UML.Parameterable_Elements.UML_Parameterable_Element_Access)
642       return Boolean;
643   --  Operation ParameterableElement::isCompatibleWith.
644   --
645   --  The query isCompatibleWith() determines if this parameterable element
646   --  is compatible with the specified parameterable element. By default
647   --  parameterable element P is compatible with parameterable element Q if
648   --  the kind of P is the same or a subtype as the kind of Q. Subclasses
649   --  should override this operation to specify different compatibility
650   --  constraints.
651
652   overriding function Is_Template_Parameter
653    (Self : not null access constant UML_Information_Item_Proxy)
654       return Boolean;
655   --  Operation ParameterableElement::isTemplateParameter.
656   --
657   --  The query isTemplateParameter() determines if this parameterable
658   --  element is exposed as a formal template parameter.
659
660   overriding function Parameterable_Elements
661    (Self : not null access constant UML_Information_Item_Proxy)
662       return AMF.UML.Parameterable_Elements.Collections.Set_Of_UML_Parameterable_Element;
663   --  Operation TemplateableElement::parameterableElements.
664   --
665   --  The query parameterableElements() returns the set of elements that may
666   --  be used as the parametered elements for a template parameter of this
667   --  templateable element. By default, this set includes all the owned
668   --  elements. Subclasses may override this operation if they choose to
669   --  restrict the set of parameterable elements.
670
671   overriding function Is_Consistent_With
672    (Self : not null access constant UML_Information_Item_Proxy;
673     Redefinee : AMF.UML.Redefinable_Elements.UML_Redefinable_Element_Access)
674       return Boolean;
675   --  Operation RedefinableElement::isConsistentWith.
676   --
677   --  The query isConsistentWith() specifies, for any two RedefinableElements
678   --  in a context in which redefinition is possible, whether redefinition
679   --  would be logically consistent. By default, this is false; this
680   --  operation must be overridden for subclasses of RedefinableElement to
681   --  define the consistency conditions.
682
683   overriding function Is_Redefinition_Context_Valid
684    (Self : not null access constant UML_Information_Item_Proxy;
685     Redefined : AMF.UML.Redefinable_Elements.UML_Redefinable_Element_Access)
686       return Boolean;
687   --  Operation RedefinableElement::isRedefinitionContextValid.
688   --
689   --  The query isRedefinitionContextValid() specifies whether the
690   --  redefinition contexts of this RedefinableElement are properly related
691   --  to the redefinition contexts of the specified RedefinableElement to
692   --  allow this element to redefine the other. By default at least one of
693   --  the redefinition contexts of this element must be a specialization of
694   --  at least one of the redefinition contexts of the specified element.
695
696   overriding procedure Enter_Element
697    (Self    : not null access constant UML_Information_Item_Proxy;
698     Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
699     Control : in out AMF.Visitors.Traverse_Control);
700   --  Dispatch call to corresponding subprogram of visitor interface.
701
702   overriding procedure Leave_Element
703    (Self    : not null access constant UML_Information_Item_Proxy;
704     Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
705     Control : in out AMF.Visitors.Traverse_Control);
706   --  Dispatch call to corresponding subprogram of visitor interface.
707
708   overriding procedure Visit_Element
709    (Self     : not null access constant UML_Information_Item_Proxy;
710     Iterator : in out AMF.Visitors.Abstract_Iterator'Class;
711     Visitor  : in out AMF.Visitors.Abstract_Visitor'Class;
712     Control  : in out AMF.Visitors.Traverse_Control);
713   --  Dispatch call to corresponding subprogram of iterator interface.
714
715end AMF.Internals.UML_Information_Items;
716