3.3. Annotations

The only true annotational item in the UML is a note. Annotations simply provide further explanation on various aspects of UML elements and diagrams.

Notes in the UML are one of the least structured elements. They simply represent a comment about your model. Notes can be, though need not be, attached to any of the other elements and can be placed on any diagram. Attaching a note to another element is done via a simple dotted line. If the note is not attached to anything, we can omit the dotted line. The closest thing that notes translate to in Java is a comment. However, it isn't likely that we would copy the text from a note ...

Get Java™ Design: Objects, UML, and Process now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.