Sunday, September 24, 2017

UML Properties dialog box (Attributes category)

UML Properties dialog box (Attributes category)

Use the Attributes category to add, edit, or delete attributes.

Attributes

Lists the attributes you have defined for the class.

To quickly edit the most commonly used settings for an attribute, click a field in the Attributes list, and then select or type a value.

To access all of the settings for an attribute, select the attribute in the Attributes list, and then click Properties.

  • Attribute  Type or edit an identifier string as a name for the attribute. Typically, attribute names begin with a small letter, for example, maximum-size or color.

  • Type  Choose an implementation type for the attribute. If the data type you want isn't listed, right-click a data types package in the tree view, point to New, and then click Datatype, or create a new class.

  • Visibility  Choose the visibility (public, private, or protected) that applies to the attribute. Public means the attribute is publicly available to any class. Protected means the attribute is available inside the class and to its subclasses. Private means that the attribute can only be used inside the class.

  • Multiplicity  Choose the possible number of data values that can be held by an instance. If the multiplicity is 1, then the attribute holds exactly one value.

  • Init. Value  Type the value of the attribute upon initialization. Click a different tab at the bottom of the list to view or set inherited attributes.

New

Click to add an undefined attribute to the list of attributes.

To quickly edit the most commonly used settings for an attribute, click a field in the Attributes list, and then select or type a value.

To access all of the settings for an attribute, select the attribute in the Attributes list, and then click Properties.

Duplicate

Click to add a new attribute to the list with the same property values as the selected attribute.

Delete

Click to delete the selected attribute from the list.

Move Up/Move Down

After you select an attribute under Attributes, click to change the order in which the attribute is stored. You can only reorder within the same classifier.

Properties

After you select an attribute, click to display three categories where you can edit the property values associated with the attribute: Attribute, Constraints, and Tagged Values.

No comments:

Post a Comment