Download Enterprise Architect User Guide

Transcript
117
Work With Elements | Attributes
In the Override Attribute Initializers dialog, select the variable name and enter a new initial value. If required,
you can type a note in the Note field. When you display inherited attributes, Enterprise Architect merges the
list of attributes from all ancestors and merges the attribute initializers, so that the final child Class displays the
correct attribute set and initial values.
3.3.7 Create Object From Attribute
If you drag an attribute from the Project Browser onto an Activity diagram, the attribute generates an Object
element of the same name. This is very useful for creating connectors between elements and specific
attributes. For example, a Class element of stereotype table defines its fields as attributes; Requirement
elements that define requirements for those fields can then be linked to the appropriate table fields via the
attribute Object elements.
Note:
From Enterprise Architect release 7.5, you can create this relationship more directly by linking an attribute in
an element to another element, or linking two attributes in different elements. See the Connect to Element
Feature 202 topic.
In the following diagram, the billingAddress Object was generated by dragging the billingAddress attribute from
the Account Class in the Project Browser onto the diagram. The user then created Realize relationships
between the Account element and the billingAddress element, and between the billingAddress element and
the REQ028 Requirement element.
UML Modeling with Enterprise Architect - UML Modeling Tool