O'Reilly logo

Learning UML by Sinan Si Alhir

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required