To modify the features of an association, open the Features
window for the association.
About this task
An association has the following
features:
- Name specifies the name of the association.
- L specifies the label for the element, if
any. For information about creating labels, see Assign descriptive labels to elements.
- Stereotype specifies the stereotype of the
association, if any. They are enclosed in guillemets, for example «s1» and
enable you to tag classes for documentation purposes.
Note: The COM stereotypes are constructive; that is, they
affect code generation.
- Consists of specifies whether the association
consists of:
- A single association end (End <X>)
- Two given ends (Both Ends)
- An association element and two association ends
(Association Element)
- An association class and two association ends (Association
Class)
Note: There is no representation of the
association class in the diagram, nor is there code generation for
the association class. The only representation of the association
class is in the
Consists of field.
- Association
Ends specifies the ends of the association. If only one end is
specified, the Role Name field for End2 field is unavailable.
Using this group box, you can change the role name of each enabled
end. An enabled end is an end that is part of the specification
of the association. The label under this field contains the type of
the association end (the class to which the end is connected), the
navigability of the end, and its aggregation kind. For a non-existing
end, this label contains only "Role of."
- Description describes the association. To
include a hyperlink in this field, see Creating hyperlinks.
Note: If the association class or element does
not exist, the
Name,
Stereotype,
Label, and
Description fields
are disabled.
In addition to the General tab,
the Features window for an association contains the following tabs:
- End1 or End2
- End1 properties or End2 properties
- If the Consists of field is set to Association Class,
the window also includes tabs for attributes and operations.