Setting the default values of attributes and association ends

In UML models, you can specify the default value that an attribute takes when an instance of a classifier is created. You can also specify the default values of association ends.

About this task

To set the default values of attributes and association ends:

Procedure

  1. In the diagram editor, click an attribute or an association end.
  2. In the Properties view, click the General tab.
  3. Optional: Click Select type and select a type for the attribute.
  4. On the General page, in the Default Value box, type a value.
  5. If the multiplicity of the attribute allows more than one value, and you have set the type for the attribute, you can click the button labeled ... to select one or more values as the default values.

Feedback