Adding a value to a tag

You can add a value to a tag on the Tags tab of the Features window, or, if you have more than one value, through the Tag Value(s) window.

About this task

To add a value to a tag, enter it in the Value field.
  • If there is only one value, enter it in the Value field or click the Ellipsis button Ellipsis button next to the field to open the Rational Rhapsody internal editor.
  • If there is more than one value, click the Ellipsis button Ellipsis button next to the Value field to open the Tag Value(s) window. The value in the Multiplicity field must be greater than 1 to enable the Tag Value(s) window.

Procedure

To add values using the Tag Value(s) window:

  1. Enter a value for each row.
  2. If the Add New row appears, click the ellipsis for that row Add New field with ellipsis if you want to enter another value.
  3. Click OK.

Results

For tags with multiple values, the values are separated by commas in the Value field of the Features window for the tag.

The number of possible rows on the Tag Value(s) window corresponds to the value you entered in the Multiplicity field for the tag. These are the common values:
  • x - a specific number of values (for example, 1, 2, or 5)
  • * - as many values as you want
  • x,y - either x or y (for example, 3,9)
  • x..y - a minimum of x to a maximum of y (for example, 3..9)
  • 1..* - a minimum of x to as many values as you want (for example, 3..*)

The following examples show how many rows would are on the Tag Value(s) window for different multiplicity values for the tag:

If a tag is a Boolean type, you either select or clear the check box for each row on the Tag Value(s) window. If the tag is an element type, such as a class or an object, you click the Ellipsis button Ellipsis button at the end of each numbered row to open a browser for your model so that you can select the applicable element.

Keep in mind the following restrictions:


Feedback