Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.
Tagged Values
Topics
Topic |
Detail |
See also |
||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
What is a Tagged Value |
Tagged Values are a convenient way of adding additional information to an element, beyond what is directly supported by UML. The UML specification provides the Tagged Value element for just this purpose. Often Tagged Values are used during code generation or by other tools to pass information or operate on elements in particular ways. Tagged Values are the preferred method of extending the code generation capabilities of the modeling tool per element / per language. A Tagged Value, strictly, is the value of a property of a modeling item, the property being called a tag. For example, a Class element called Person might have a tag called Age with the Tagged Value of 42. The combination of tag and value, however, is often referred to as a Tagged Value. Enterprise Architect defines a Tagged Value Type, which constrains the possible values of a tag and can specify how a value is assigned to the tag. For example, the tag Age might have a Tagged Value Type of Integer, so the user simply types in a numeric value. Alternatively, the type could be Spin, with lower and upper limits of, say, 20 and 120, so the user sets a value by clicking on arrows in the field to increment or decrement the value within the limits of 20 and 120. To quickly add Tagged Values to one of more elements, see the Quick Add - Tagged Value to Elements topic.
|
|||||||||||||||||
The Tagged Values Window |
The Tagged Values window is used to view and modify Tagged Values for the currently selected modeling item, either in the current diagram or in the Project Browser. The Tagged Values window is a dockable window. You can use it to perform the following actions:
A Technology Developer can also create new structured Tagged Values, reference data Tagged Values and custom Tagged Values from predefined Tagged Value Types.
|
Assign a Tagged Value to an Item Assign Notes to a Tagged Value |
||||||||||||||||
The following model components can use the Tagged Values window as a convenient way to quickly view and modify Tagged Values:
When over-riding an inherited property, Enterprise Architect copies the tag from the parent down to the child element and sets the new value, leaving the original tag unchanged.
|
|
|||||||||||||||||
Tagged Values Toolbar Buttons |
The buttons in the Tagged Values toolbar enable you to add, edit, sort, delete and arrange the Tagged Values of model features
From left to right, the button functions are as follows:
|
|