Parameterized Class shape

In a static structure diagram, a parameterized class UML Parameterized class shape is a template that describes a class with one or more unbound formal parameters. It defines a family of classes, each of which is specified by binding the parameters to actual values. The formal parameters are listed in a dashed rectangle in the upper right corner of the Parameterized Class shape and the parameters have the syntax name : type, where name is an identifier and type is a string. You can create a one-way association from a parameterized class to another class.

Name a Parameterized Class shape and add parameters and other property values

Open the element's UML Properties dialog box by double-clicking the icon that represents the element in the tree view, or the shape that represents the element in a diagram.

Tip

Control which property values display on a shape in a diagram by right-clicking the shape, and then clicking Shape Display Options. In the UML Shape Display Options dialog box, select and clear options to display or hide property values.

Hide the attributes or operations sections of a Parameterized Class shape

Right-click the shape, click Shape Display Options, and then, under Suppress, check Attributes or Operations.

Control which property values are displayed on the Parameterized Class shape

Right-click the shape, click Shape Display Options, and then select or clear options to show or hide values.

Hide template parameters

Right-click the shape, click Shape Display Options, and then, under Suppress, check Template Parameters.

Indicate a realizes relationship

Right-click the Parameterized Class shape, click Shape Display Options, and then select Realization Link. Select the shape, and then drag the control handle Control handle image - yellow diamond to create a Realizes arrow.

Create a diagram owned by the Parameterized Class shape

Right-click the shape, click Diagrams, click New, choose the type of diagram you want, and then click OK.

Navigate to other views of the parameterized class

Right-click the shape, click Views, select the view you want, and then click OK.

Show, in a view, the relationships between the parameterized class and other elements

Right-click the shape, and then click Show Relationships.

Share Facebook Facebook Twitter Twitter Email Email

Was this information helpful?

Great! Any other feedback?

How can we improve it?

Thank you for your feedback!

×