tags:

views:

25

answers:

2

In UML, how can I represent that a class implements some design pattern or follows some convention? For example, in Java, that a class follows the JavaBean convention?

A: 

Just add a note to the diagram, pointing to the section that implements the pattern.

Or your could use the extensibility system in UML known as stereotypes. Add <<javabean>> to all classes that implement that pattern.

Follow the UML rules as much as possible but just remember that it is designed to be extensible so it should never hold you back from expressing your thoughts

Ryu
A: 

You can use stereotypes f.e. <<javabean>> Or use notes.

martin