Package (UML)
A package ( package ) is a model element in the Unified Modeling Language (UML), a modeling language for software and other systems.
A package combines a number of model elements into a group and forms a namespace for them. Packages can contain other packages as sub-packages. Analogous to file system directories, they organize a UML2 model hierarchically into a structure that resembles the branching of a tree .
Not only can a package be contained in another package, but it can also import other packages and merge them with other packages. The first and second case refers to the UML as package Import (engl. Package import ), as the third package fusion (engl. Package merge ).
notation
The two following figures show two options for representing a package. Blue texts are explanatory comments and do not belong to the UML2 notation .
The UML2 notation can also be used to show that elements belong to a package. Here are two possible forms of representation: