You can use domain modeling class diagrams to create association
relationships between Java™ classifiers to visually represent Java fields, or attributes, as associations.
That is, you create Java fields
and place them outside of classifiers as associations in class diagrams.
Before you begin
You must have a domain modeling class diagram with Java classifiers open.
About this task
To create an association relationship between Java classifiers, complete the following steps:
Procedure
- In the Palette, click Association.
- In the diagram editor, click a Java classifier,
drag it to another Java classifier, and release the
mouse.
- In the Create Association wizard,
in the Name field, type a name for the new
field.
- In the Initial Value field, specify
the initial value expression.
- Under Type and Dimensions, specify
dimensions.
- Under Visibility, click a visibility
style.
- Under Modifiers, click modifiers.
- Click Finish.
Results
A Java field is created and visually
represented as an association relationship in the class diagram.