Package import relationship

In UML diagrams, a package import relationship allows other namespaces to use unqualified names to refer to package members.

A package import is a directed relationship that identifies a package whose members are imported by a namespace. A package import relationship between packages means that a package imports and can access elements within another package. A package import allows a package to import the members of another package making it possible to refer to elements of the imported package as if they were defined in the importing package.

As the following figure illustrates, a package import relationship is displayed in the diagram editor as a dashed line with an open arrow pointing from the imported namespace to the imported package. The keyword «packageimport» is attached to the connector.

The image shows package3 importing package2.