Defining stereotype tags

When the Tags tab applies to a stereotype, it specifies the tag definition for all elements that use the given stereotype.

Procedure

  1. Create the profile to hold the tag if it does not exist.
  2. If it does not exist, define a stereotype for the profile and select <<New>. The Features window opens.
  3. Select the Tags tab to display the window.
  4. The Quick Add fields let you define the name for the tag and its default value quickly and click Add.
  5. You might want to enter a more detailed description of the tag in the area above Quick Add.
  6. Click OK.

Results

The new tag is added to the Tags tab. In addition, it is added to the browser.

Browser showing addition of tags

This sample tag is listed as Profile::Component::<TagName> (in this example, Avionics::Component::RiskFactor) because it was defined under the stereotype of the profile. You would use this tag for components with the corresponding stereotype. For example, if you have a component named System with the SafetyCritical stereotype, its Tag tab would include the tag Avionics::SafetyCritical::RiskFactor.

Note: To create a tag using the browser, right-click the stereotype and select Add New > Tag. You can rename the tag if you want.

Feedback