Add and Remove Template Parameters of UML Class

Users can create UML class with template parameter to form the template class. With Visual Paradigm for UML 8.0 (VP-UML), you can add and remove template parameters. In this page, you can learn how to add template parameter to class and how to remove it from class in class diagram.

Take the following class as the example for adding and removing template parameter:

Savings Account class

Savings Account class

  1. Let’s add a template parameter in class. Right click on Savings Account class and select Add > Template Parameter from the pop-up menu.

    Add template parameter

    Add template parameter

  2. When the Template Parameter Specification dialog box pops out, enter Account in Name field. Click OK button.

    Enter Account in Name field

    Enter Account in Name field

  3. As a result, template parameter is added to class as shown below:

    Template parameter is added

    Template parameter is added

  4. Now, remove the previously inserted template parameter. Right click on Savings Account class and select Open Specification…from the pop-up menu.

    Open specification

    Open specification

  5. In the Class Specification dialog box, open Template Parameters tab. Select Account.

    Select template parameter

    Select template parameter

  6. Click Remove button to remove the selected template parameter.

    Click Remove button

    Click Remove button

  7. Click Yes in the pop-up Confirm Remove dialog box.

    Cofirm remove

    Confirm removal

13 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply