Previous | UML Classes | Table of Contents | UML Packages | Next |
A comment is a textual annotation that can be attached to a set of elements.
•
Element (from Kernel ) on page 63.
Description
A comment gives the ability to attach various remarks to elements. A comment carries no semantic force, but may contain information
that is useful to a modeler.
A comment can be owned by any element.
Attributes
Issue 9191 - add multiplicity
• body: String [0..1] Specifies a string that is the comment.
Associations
• annotatedElement: Element[*] References the Element(s) being commented.
Constraints
No additional constraints.
Semantics
A Comment adds no semantics to the annotated elements, but may represent information useful to the reader of the model.
Notation
A Comment is shown as a rectangle with the upper right corner bent (this is also known as a note symbol). The rectangle contains
the body of the Comment . The connection to each annotated element is shown by a separate dashed line.
Presentation Options
The dashed line connecting the note to the annotated element(s) may be suppressed if it is clear from the context, or not
important in this diagram.
Examples
Figure 7.32 - Comment notation