Software Disclaimer

Class UML 2.3::PackageImport


A package import is a relationship that allows the use of unqualified names to refer to package members from other namespaces.

Direct Superclasses: DirectedRelationship

Direct Subclasses:

Class Precedence List: PackageImport, DirectedRelationship, Relationship, Element


importedPackage : Package (1 1); -- source PackageImport
importingNamespace : Namespace (1 1); -- source PackageImport

Specifies the Namespace that imports the members from a Package.
Subsets: DirectedRelationship.source, Element.owner
Opposite: Namespace.packageImport

visibility : VisibilityKind (1 1); -- source PackageImport

Specifies the visibility of the imported PackageableElements within the importing Namespace, i.e., whether imported elements will in turn be visible to other packages that use that importingPackage as an importedPackage. If the PackageImport is public, the imported elements will be visible outside the package, while if it is private they will not.
Default value: PUBLIC

source : Element (1 *); -- source DirectedRelationship
target : Element (1 *); -- source DirectedRelationship

Specifies the targets of the DirectedRelationship.
Derived union with sources: (importedPackage)
Subsets: Relationship.relatedElement

relatedElement : Element (1 *); -- source Relationship

Specifies the elements related by the Relationship.
Derived union with sources: (target, source, importingNamespace, importedPackage)

ownedComment : Comment (0 *); -- source Element

The Comments owned by this element.
Subsets: Element.ownedElement

ownedElement : Element (0 *); -- source Element
owner : Element (0 1); -- source Element


Signature: CMOF_14_3_7c() : Boolean;
Description: see also:
Expression: visibility = VisibilityKind::public

Signature: public_or_private() : Boolean;
Description: The visibility of a PackageImport is either public or private.
Expression: self.visibility = #public or self.visibility = #private


No additional operations.

Send questions or comments to