Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.
Classify Object Via Classifier Associations
When building an instance model from a predefined Class model, Enterprise Architect can assist in setting classifiers and role names for objects involved in a relationship. For example, if ClassA has association relationships with ClassB and ClassC, you can create an instance of ClassA (ObjectA), then draw an association to a new unclassified object and have the choice of selecting ClassB or ClassC as the classifiers of the new object.
Access Click on the Classified object on a diagram and:
- Drag an Association to an existing, unclassified object or
- Use the Quick Linker arrow to create a Link to an existing or new unclassified object or
- Right-click on existing Association | Advanced | Instance Classifier (Ctrl+L)
Choose an Association Connector dialog
Field/Button |
Action |
See also |
---|---|---|
Classifier Name |
Displays the name (if defined) of each Association connector issuing from the source object's classifier. If the connector has no name, the value <anonymous> displays. |
|
Association |
Represents the source and target classifier elements in each Association connector issuing from the source object's classifier. If you select one of these, the target classifier becomes the classifier for the target object element. Select <none> if you want to create the Association, but not based on the classifier relationships. |
|
<Source Object Name> Role |
Identifies any Roles defined in the Association for the source classifier element, according to the source role multiplicity setting; if you select one of these roles, this will become the specific Role for the source object, as shown on the name of the element on the diagram. If the multiplicity is not set, or the upper bound is * (asterisk), just the role name displays in the list. |
|
<Target Object Name> Role |
Identifies any Roles defined in the Association for the target classifier, according to the target role multiplicity setting; if you select one of these roles, it will become the specific Role for the target object as shown on the name of the element in the diagram (and on the 'Binding' page of the Association connector 'Properties' dialog). If the multiplicity is not set, or the upper bound is * (asterisk), just the role name displays in the list. |
|
OK |
Click on the Association and source and target roles, then click on this button to:
If you selected the <none> entry, a simple Association is created and the target object is unclassified. |
|
Cancel |
Cancel the dialog without changing any classifier settings. |
Notes
- When creating a new association or object, the 'Properties' dialog might appear before the 'Choose an Association Connector' dialog; complete any 'Properties' fields as required, and click on the
Learn more