Chapter 4 Managing Profiles


Define custom symbols for stereotypes

You are going to define a custom symbol for UMLObjects related to the Boundary, Control, or Entity stereotypes. The Custom Symbol feature lets you apply the standard robustness graphics into your collaboration diagram.

Steps To define custom stereotypes for stereotypes:

  1. Double-click the arrow beside Robustness Extension in the list of extended model definitions to display the resource editor.
  2. Right-click stereotype Boundary in the UMLObject category and select New→Custom Symbol.

    A custom symbol is created.
  3. Click the Modify button.

    The Symbol Format dialog box is displayed.
  4. Click the Custom Shape tab.
  5. Select the Enable Custom Shape check box.
  6. Select Predefined Symbol in the Shape Type list.
  7. Select Boundary Object in the Shape Name list.
  8. Click OK.

    The custom symbol is displayed in the Preview box.
  9. Repeat steps 2 to 8 for the following stereotypes:
    Stereotype Shape Name
    Entity Entity Object
    Control Control Object

  10. Click OK in each of the dialog boxes.

    The symbol of the object you had previously created changes according to its stereotype:
  11. In the collaboration diagram, create an object corresponding to each stereotype.

    Your diagram now contains 3 objects with different symbols corresponding to different stereotypes.
  12. Select Model→Objects to display the list of objects.
  13. Click the Customize Columns and Filter tool in the list toolbar and select Stereotype in the list of columns.

    The object stereotypes appear in the list. You are going to define the name and code of each object based on their stereotype.
    Object Stereotype Name & Code
    Object_1 <<Boundary>> Internet Browser
    Object_2 <<Control>> Application Server
    Object_3 <<Entity>> Database Server

  14. Click OK in the List of Objects.
  15. Drag the actor Customer from the Browser to the collaboration diagram in order to create a symbol for Customer.

 


Copyright (C) 2005. Sybase Inc. All rights reserved.