UML Designer User's Guide


Generating using idioms

For another Thing element, Catalog Entry, we defined several responsibilities using the Value idiom. Let's see how these responsibilities become protocol messages:

  1. Generate a protocol for Catalog Entry using the same procedure you used for Catalog (select Transform>Generate Protocol and accept the default options).
  2. After you generate the protocol, select Protocols from the list of relationships and then select the new protocol, <CatalogEntry>.
  3. Double-click on <CatalogEntry> to open a browser on the protocol.
  4. In the middle pane of the new browser, select Messages. You should see a list of messages defined in the protocol:

    These messages are the getters and setters for the values kept by the catalog entry. UML Designer automatically generated these messages based on the three responsibilities we specified for the CatalogEntry Thing.

  5. In the middle pane of the browser, select Attributes. You should see a list of attributes defined in the protocol:

    These attributes represent the values kept by the catalog entry. UML Designer also generated these attributes based on the three responsibilities we specified for the CatalogEntry Thing.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]