3.4. Extensibility Mechanisms

The extensibility mechanisms don't necessarily have direct mappings to Java. However, they're still a critical element of the UML. These mechanisms are commonly used across diagrams, and understanding their intent is important.

We can create our own mechanisms, which enables us to customize the UML for our development environment. We should use caution in creating our own mechanisms. The UML is a robust language. Before defining our own extension mechanisms, we should be sure the mechanism does not already exist within the language.

Stereotype

A stereotype is used to create a new fundamental element within the UML with its own set of special properties, semantics, and notation. UML profiles can be created that define ...

Get Java™ Design: Objects, UML, and Process 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.