Please note : This help page is for an older version of Enteprise Archtiect. The latest help can be found here.

Topic
Prev Next

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

Ribbon

Design > Element > Attributes

Context Menu

Right-click element in diagram | Features and Properties | Attributes  or

Right-click element in Project Browser | Attributes

Keyboard Shortcuts

F9

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.

  • 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