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