O'Reilly logo

UML™ Bible by Tom Pender

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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’ ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required