Extension Mechanisms and the Object Constraint Language

The next few sections present solutions for Part IV.

  1. The following describes the figure:

    • Organization is a stereotype definition that applies to classes.

    • Made Of is a stereotype definition that applies to associations.

    • The Organization stereotype has a tag definition named Name. This is a string that represents the name of the organization.

    • The Made Of stereotype has a tag definition named String. This is a string that describes the relationship between an organization and the things that make up the organization.

    • The Organization stereotype defines two constraints indicating that the name of the organization must not be an empty string, and that the organization must be made of at least one other thing (any thing).

    • The Made Of stereotype defines a constraint indicating that the description of the relationship between an organization and the thing that makes up the organization must not be an empty string.

  2. The following describes the figure:

    • The Business class is stereotyped as an organization using the Organization stereotype.

    • The Team class is stereotyped as an organization using the Organization stereotype.

    • The Business class is associated with the Team class in which the association is stereotyped using the Made Of stereotype.

    • The Team class is associated with the Person class where the association is stereotyped using the Made Of stereotype.

    • The Person class is not stereotyped.

  3. The following describes the figure:

    • Publisher ...

Get Learning UML now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.