Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.
General Properties of Attributes
This topic describes the fields and options of the General page of the Attributes dialog.
Reference
Field |
Usage |
See also |
||||||
---|---|---|---|---|---|---|---|---|
Name |
Display the name of the attribute; for a new attribute, type the name (with no spaces).
|
|
||||||
Type |
Display the attribute's type; if necessary, either:
The type can be defined by the code language (data type) or by a classifier element; when you click on the drop-down arrow, the first set of values in the list provides the data types, and the second (longer) set provides the possible classifiers. To add new code language data types that can be displayed in this list, see the Data Types topic.
|
|||||||
Initial Value |
Display an optional initial value; if necessary, type in or browse for a new initial value.
|
|
||||||
Stereotype |
Define the optional stereotype of the attribute; if necessary, either:
|
|
||||||
Alias |
Display an optional alias for the attribute; if necessary, type in a new alias.
|
|
||||||
Scope |
Define the attribute as Public, Protected, Private or Package; if necessary, click on the drop-down arrow and select a different scope.
|
|
||||||
Static |
Indicate that the attribute is a static member.
|
|
||||||
Const |
Indicate that the attribute is a constant.
|
|
||||||
Is Literal |
(For Enumeration elements) Defaults to selected, to define the attribute as an enumeration literal. Deselect the checkbox to define the attribute as a normal element attribute. In the Attributes compartment on the diagram, the enumeration literals are listed separately, above the normal attributes (ensure that the Stereotype field for the normal attribute is not set to enum).
|
|
||||||
Containment |
Define the containment type (By Reference, By Value or Not Specified); if necessary, click on the drop-down arrow and select a different containment type.
|
|
||||||
Property |
Indicate that the attribute has automatic property creation; when you select this checkbox, the Create Property Implementation dialog displays.
|
|||||||
Notes |
Enter any free text notes associated with the attribute; you can format the notes text using the Notes toolbar at the top of the field.
|
Topics
Topic |
Detail |
See also |
||||
---|---|---|---|---|---|---|
Usage |
To change the position of a selected attribute in the list at the bottom of the dialog, click on the Scroll Up or Scroll Down (hand) buttons. To review an existing attribute, click on the attribute name in the list. You can re-organize and filter the information shown for each attribute, using the List Header facilities for reported information. To delete an existing attribute, click on the attribute name in the list and click on the Delete button. To create a new attribute, either:
If you have changed the attribute details, click on the Save button to save the changes.
|
|
Notes
• | By default, the attributes are listed in alphabetical order; before changing this sequence, you must deselect the Sort Features Alphabetically checkbox on the Objects page of the Options dialog (Tools | Options | Objects) |