Attribute Details

On the Attributes page of the Features dialog, you can define a number of important properties of an attribute using the properties list in the bottom left of the dialog.

Access    Right-click element in diagram | Features and Properties | Attributes (F9)  or
Right-click element in Project Browser | Attributes

Define Properties

Field

Action

See Also

Containment

Type the name of the containment type, or click on the drop-down arrow and select a standard type (By Reference, By Value or Not Specified).

 

 

Static

Click on the drop-down arrow and select True or False to indicate whether the attribute is a static member.

 

 

Property

If the attribute has automatic property creation, click on the ( ... ) button to define how it should be implemented for the programming language you are modeling for.

The Create Property Implementation dialog displays.

 

 

Create Properties

Is Literal

(For Enumeration elements) Click on the drop-down arrow and select True or False to indicate whether the attribute is an enumeration literal.

In the Attributes compartment on the diagram, the enumeration literals are listed separately, above the normal attributes (check that the Stereotype field for the normal attribute is not set to enum).

 

 

Transient

(For Java code) Click on the drop-down arrow and select True or False to indicate whether the attribute can change regardless of what the code is performing.

 

 

Derived

Click on the drop-down arrow and select True or False to indicate whether the attribute is derived from one or more other attributes; for example, full name can be derived from the last name and first name attributes.

 

 

Is ID

Click on the drop-down arrow and select True or False to indicate whether the attribute can be used to uniquely identify an instance of the containing Class.

 

 

Multiplicity

 

Click on the ( ... ) button to display  the Multiplicity dialog, and define the multiplicity of the attribute.

 

Field/Button

Action

Lower bound

Type the lower limit to the number of elements allowed in the collection.

 

Upper bound

Type the  upper limit to the number of elements allowed in the collection.

 

Allow Duplicates

Select the checkbox to indicate that duplicate values are allowed.

This field maps to the UML property isUnique, with a value FALSE.

 

Multiplicity is Ordered

 

Select the checkbox to indicate that the collection is ordered.

OK

Click on this button to save the information and close the dialog.

 

 

Is Collection

Click on the drop-down arrow and select True or False to indicate whether the attribute is a collection (array), so that it can contain multiple concurrent values, or a single value.

 

 

Container Type

Type the name of the container type for the collection.

 

 

Learn more