Extension Mechanisms and the Object Constraint Language
The next few sections present solutions for Part IV.
The following describes the figure:
Organizationis a stereotype definition that applies to classes.Made Ofis a stereotype definition that applies to associations.The
Organizationstereotype has a tag definition namedName. This is a string that represents the name of the organization.The
MadeOfstereotype has a tag definition namedString. This is a string that describes the relationship between an organization and the things that make up the organization.The
Organizationstereotype 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 Ofstereotype 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.
The following describes the figure:
The
Businessclass is stereotyped as an organization using theOrganizationstereotype.The
Teamclass is stereotyped as an organization using theOrganizationstereotype.The
Businessclass is associated with theTeamclass in which the association is stereotyped using theMade Ofstereotype.The
Teamclass is associated with thePersonclass where the association is stereotyped using theMade Ofstereotype.The
Personclass is not stereotyped.
The following describes the figure:
Publisher ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access