Operation Parameter Tagged Values

Return to Introduction  Previous page  Next page

Operation parameters can have Tagged Values associated with them. Tagged values offer a convenient extension mechanism for UML elements, so you can define any tags you like and then assign values to them using this form.

Tagged values are written to the XMI output, and can be input to other third party tools for code generation or other activity.

Tip: Tagged values are supported for Attributes, Operations, Objects and Connectors.

Add a Tagged Value

To add a Tagged Value for a parameter, follow the steps below:

1.Select the View | Tagged Values menu option or press [Ctrl]+[Shift]+[6]. The Tagged Values window displays.
2.Click on the operation containing the parameter in a diagram or in the Project Browser window. The Tagged Values window now has the operation and parameters selected.
3.Click on the required parameter in the Parameters compartment of the Tagged Values window, and either click on the New Tags button or press [Ctrl]+[N]. The Tagged Value dialog displays.
 
ParameterTags
 
4.Type the tag name in the Tag field (or select a custom-defined tag from the drop-down list), then add the tag value in the Value field.
5.Click on the OK button to confirm the operation.

Tip: Custom tags can be defined by creating a custom Tagged Value type. For more information see the Enterprise Architect Software Developers' Kit (SDK).