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
- In the diagram editor, click an attribute or an association end.
- In the Properties view, click the General tab.
- Optional: Click Select type and
select a type for the attribute.
- On the General page, in the Default
Value box, type a value.
- 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.