Contents > 7 SDMetrics Metamodel and XMI Transformation Files > 7.2 XMI Transformation Files > 7.2.2 XMI Transformations and Triggers > 7.2.2.2 Trigger Type "ctext"

7.2.2.2 Trigger Type "ctext"

This trigger retrieves the value from the text enclosed by a child element in the XMI tree.
In our example, the name of the operation is stored as text enclosed in the Foundation.Core.ModelElement.name element. With the trigger
<trigger name="name" type="ctext" src="Foundation.Core.ModelElement.name" />
we retrieve the value for attribute "name" from the text enclosed within the Foundation.Core.ModelElement.name tags. The child element is specified via the "src" attribute of the trigger.