Creating link in object model diagrams

To create a link, there must be at least one association that connects one of the base classes of the type of one of the objects to a base class of the type of the second object.

Procedure

  1. Click the Link tool.
  2. Click the first object.
  3. Click the second object.
  4. If wanted, name the link and press Enter.

Results

The new link is created in the diagram, and is displayed in the browser under the Link category. You can drag-and-drop links in the browser to other classes and packages as needed; however, you cannot create links in the browser.

The following figure shows links in an object model diagram. Notice that links shown in dark green to distinguish them from associations, which are drawn in red. In addition, the names and multiplicity of links are underlined.

Object model diagrams showing links

By default, the role name and multiplicity of a link are not displayed. Right-click the link and select Display Options to select the items you want to display.

Note the following behavior:


Feedback