RAD Studio (Common)
ContentsIndex
PreviousUpNext
UML 2.0 Class Diagram Definition

UML 2.0 Class diagrams feature the same capabilities as the UML 1.5 diagrams. 

The UML 2.0 class diagrams offer new diagram elements such as ports, provided and required interfaces, and slots. 

According to the UML 2.0 specification, an instance specification can instantiate one or more classifiers. You can use classes, interfaces, or components as a classifier.

A class implements an interface via the same generalization/implementation link, as in UML 1.5 class diagram. In addition to the implementation interfaces, there are provided and required interfaces. Interfaces can be represented in class diagrams as rectangles or as circles. For the sake of clarity of your diagrams, you can show or conceal interfaces.

Tip: Applying a provided interface link between a class and an interface creates a regular generalization/implementation link. To create provided interface, apply the provided interface link to a port on the client class.  

UML 2.0 class diagram supports the ball-and socket notation for the provided and required interfaces. Choose Show as circle command on the context menu of the interface to obtain a lollipop between the client class and the supplier interface.

The figure below shows a class diagram with some of the new elements.  

UML 2.0 Class Diagram 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!