Packages and Namespaces - Package Notation

5 important questions on Packages and Namespaces - Package Notation

What is the common way to show a Package?

The shape is a rectangular body with a tab in the upper left

If we do not wish to show any contents, we put the name of the Package in the center, see Fig. 8.1.

In the above examples, we have illustrated stand-alone Packages. In UML, it is also possible to draw a diagram that depicts the same situation.

We show the diagram approach in Fig. 8.5

Above 8.5 .

Here 8. 2  

Why is this diagram a Package Diagram?

This figure is a Package Diagram (because it shows Packages in the diagram) that shows the contents of the Package MyPackage. If we did not show the YourPackage member in the diagram, we might
classify the figure as a Class Diagram that depicts the content of MyPackage Package.
  • Higher grades + faster learning
  • Never study anything twice
  • 100% sure, 100% understanding
Discover Study Smart

A Package may have an optional URI (UNIFORM RESOURCE IDENTIFIER  ) associated with it.

What is the URI?

This URI is any string but is intended to be a unique nonchanging string identifying the location and access   protocol for the Package.

However, the URI is optional, and even when used, it need not be...?

However, the URI is optional, and even when used, it need not be dereferenceable, (ontkoppelbaar) though it should be unique and nonchangeable.

If two Packages have the same URI they should be the same Package.

By using the same URI, different model databases or different UML tools can share Packages, across models or versions, if the tool vendors have implemented this feature.

The question on the page originate from the summary of the following study material:

  • A unique study and practice tool
  • Never study anything twice again
  • Get the grades you hope for
  • 100% sure, 100% understanding
Remember faster, study better. Scientifically proven.
Trustpilot Logo