APPENDIX A

UML 1.4 Notation Guide

Class Diagram Notation

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

Class notation

images

Figure A-1: Class icon with the default name, attribute, and operation compartments, and a user-defined compartment.

Attribute declaration

[visibility] [/] name [:type] [multiplicity] [‘=’default] [‘{‘property-string’}’]
  • The optional underline defines a class-level attribute.

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 A-2: Four presentation alternatives for classes with stereotypes.

Template class

images

Figure A-3: Template class.

Parameter syntax

name ‘:’ type [= default]

Bound element syntax

template-name ‘<’ value-list ‘>’

Interface class notation

images

Figure A-4: Interface class notation.

Association notation

Associations are covered in Chapter ...

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.