Attributes are the data members of a class.IBM® Rational® Rhapsody® automatically generates accessor (get) and mutator (set) methods for attributes, so you do not need to define them yourself.
About this task
The Attributes tab of the Features window contains a list of the attributes that belong to the class. Use the controls on this tab to do the following tasks:
- To add a new attribute, either click the <New> row in the list of attributes, or click the New button
in the upper, right corner of the window. The new row is populated with the default values.
- Modify an existing attribute.
To modify an attribute, you can use any of the following methods: - Select the attribute and change the value name, change its parameters, or both from the list boxes.
- Select the attribute and click the Invoke Feature Dialog button
to open the Features window for the attribute and make your changes there. You can also double‑click the attribute name or icon next to the name to open the Features window.
- Delete an attribute.
To delete an attribute from the model, select the attribute and click the Delete button
.
- View the attribute values.
To view the values for an attribute, open the Features window for it.
You can use the following keyboard shortcuts within an editable list:
- Arrow keys to move between rows and columns.
- Enter key to start or stop editing in a text box, or to make a selection in a combination box.
- Insert key to insert a new element below the selected element.
- Delete key to delete the selected element.
- Esc key to cancel editing.