APPENDIX B

UML 2.0 Notation Guide

Class Diagram Notation

The Class diagram notation is explained fully in Chapters 5 through 7.

Class notation

images

Figure B-1: Class icon.

Attribute declaration

[visibility] [/] name [:type] [multiplicity] [‘=’default]
[‘{‘property-string’}’]

The optional underline defines a class-level attribute.

  • isDerived: The default value is false.
  • isReadOnly: The default value is false.

Operation declaration

[visibility] name ([parameter-list]) ‘:’ [return-result]
 [‘{‘property-string’}’]

The optional underline defines a class-level attribute.

Tagged value declaration

tagname ‘:’ value

Valid class presentations

Classes may be identified with a name and optional stereotype. The stereotype may be in text or icon form.

images

Figure B-2: Four presentation alternatives for classes with stereotypes.

Interface class notation

images

Figure B-3: Interface class notation.

Template class

images

Figure B-4: Template class.

Parameter syntax

template-parameter ::= parameter-name [ ‘:’ parameter-kind][‘>’ constraint] [‘=’ default] parameter-kind ::= ‘class’ | ‘component’ | ‘type’ | ‘interface’ ...

Get UML™ Bible 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.