Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Relations

Relations between packages and classifiers in a package diagram.

ArrowRelationDrawn as
a ..> bDependencyDashed line, open head
a --> bDirected associationSolid line, open head
a -- bAssociationSolid line, no head
a .. bPlain dashed lineDashed line, no head
a --|> bGeneralizationSolid line, hollow triangle
a ..|> bRealizationDashed line, hollow triangle
diagram package "Relations"
direction right

interface Printable
class Report
class Invoice
class Ledger
Invoice --|> Report
Report ..|> Printable
Report --> Ledger : writes
Ledger ..> Printable : uses
Relations «interface» Printable Report Invoice Ledger writes uses

Syntax

a ..> b [: label]   a --> b   a -- b   a .. b   a --|> b   a ..|> b

Reversed forms such as <.., <--, <|-- and <|.. swap the two ends. A <<x>> in a label becomes «x».

Specification

UML 2.5.1. Dependency and Realization: 7.7.4 (p. 39). Association, open arrowhead for navigable end: 11.5.4 (p. 202). Generalization: 9.2.4 (p. 102).

Used in

Plugin system, Domain model.