Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.
Attributes
Attributes are features of an element that represent the properties or internal data elements of that element. Not all element types support attributes, and others have restrictions - for example, attributes of Interfaces must have Public scope.
Elements with attributes (typically Classes) display their features in diagrams in the manner shown below. Attributes display in the first compartment of properties in colored text - the default color is red (for example, Age : int).
For a Customer Class, CustomerName and CustomerAddress can be attributes. Attributes have several important characteristics, such as type, scope (visibility), static, derived and notes.
Create and Modify Element Attributes
Note: |
This facility is only available if the element supports attributes. |
In the Project Browser, Classes with attributes have their features collected beneath them, each preceded by a blue box ().
- In the Diagram view, either:
- Right-click on the element to be edited, and from the context menu select the Attributes menu option
- Click on the element and press [F9], or
- Drag the attribute from the Project Browser onto the element.
- The <Element name> Attributes dialog displays.
Notes: |
|
See the topics on the Attributes dialog General, Detail and Constraints tabs.
Note: |
If the parent element provides source or target roles for a connector, the connector can be attached to a specific attribute. See the Connect to Element Feature topic. |
See Also