Extension Mechanisms in the UML

We are quite sure the creators of UML did not have J2EE on their minds when they created the UML. Fortunately for us, they had enough foresight to recognize that in order for the UML to last any length of time, it would have to be capable of evolution and adaption to new languages and constructs.

The UML provides three mechanisms for extending the UML: stereotype, tagged value, and constraint.

Stereotype

A stereotype allows you to create a new, incrementally different model element by changing the semantics of an existing UML model element. In essence, this leads to the addition of new vocabulary to the UML.

In the UML, a stereotyped model element is represented by the base model element identified with a string ...

Get Developing Enterprise Java Applications with J2EE™ and UML 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.