Attributes Dialog - General Tab

The General tab of the Attributes dialog is shown below:

Attributes-General

To review an existing attribute, click on the attribute name in the Attributes panel.

To delete an existing attribute, click on the attribute name in the Attributes panel and click on the Delete button.

To create a new attribute, either:

  • Click on the New button, or
  • Click on an existing attribute name in the Attributes panel, and click on the Copy button.

Review, edit or complete the fields as indicated in the following table.

Field

Use to

Name

Display the name of the attribute. For a new attribute, type the name (with no spaces).

Alias

Display an optional alias for the attribute. If necessary, type in a new alias.

Type

Display the attribute's data type. If necessary, click on the drop-down arrow and select a different type.

[ ... ] (Select) button

Open the Select Attribute Type dialog, which you use to select or define a different attribute type.

Scope

Define the attribute as Public, Protected, Private or Package. If necessary, click on the drop-down arrow and select a different scope.

Stereotype

Define the optional stereotype of the attribute. If necessary, either type a different stereotype name or click on the drop-down arrow and select a stereotype.

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.

Derived

Indicate that the attribute is a calculated value.

Static

Indicate that the attribute is a static member.

Property

Indicate that the attribute has automatic property creation.

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 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.)

Initial

Display an optional initial value. If necessary, type in a new initial value.

Notes

Enter any free text notes associated with the attribute. You can format the notes text using the Rich Text Notes toolbar at the top of the field.

To change the position of an attribute in the list in the Attributes panel, click on the Scroll Up or Scroll Down (hand) buttons.

Note:

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).

If you have changed the attribute details, click on the Save button to save the changes.