Extension Mechanisms and the Object Constraint Language
The next few sections present solutions for Part IV.
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 namedName
. This is a string that represents the name of the organization.The
Made
Of
stereotype 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
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.
The following describes the figure:
The
Business
class is stereotyped as an organization using theOrganization
stereotype.The
Team
class is stereotyped as an organization using theOrganization
stereotype.The
Business
class is associated with theTeam
class in which the association is stereotyped using theMade Of
stereotype.The
Team
class is associated with thePerson
class where the association is stereotyped using theMade Of
stereotype.The
Person
class is not stereotyped.
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.