Previous Table of Contents Next


13.1.5 Package

Constructs, Profiles


   Description

   A Package can have one or more ProfileApplications to indicate which profiles have been applied.

   Because a profile is a package, it is possible to apply a profile not only to packages, but also to profiles.

   Generalizations

   • “Namespace? on page 143

   Attributes

   No additional attributes

   Associations

   • appliedProfile: ProfileApplication [*] References the ProfileApplications that indicate which profiles have been applied to the Package. Subsets Package::packageImport.

   Constraints

   No additional constraints

   Semantics

   The association “appliedProfile? between a package and a profile crosses metalevels: It links one element from a model (a kind of package) to an element of its metamodel and represents the set of profiles that define the extensions applicable to the package. Although this kind of situation is rare in the UML metamodel, this only shows that model and metamodel can coexist on the same space, and can have links between them.

   Notation

   No additional notation

   Changes from UML 1.4

   In UML 1.4, it was not possible to indicate which profiles were applied to a package.