Transformation models (XML files of type ".txm") contain information about the model schema and relates model types to Eclipse projects, folders and files to be generated. Transformation models are edited using the Exemplar Analysis tool in the Design Pattern Toolkit.
The Exemplar Analysis tool displays two tree structures. On the left, there is the set of all files, folders and projects in the set of exemplar projects you selected when you first created the model. On the right side of the display is a description of the model
including the name of the transformation, the transformation ID, the type of Eclipse file against which this transformation is to be applied and a hierarchical view of the transformation schema. This last hierarchical view includes model types and attributes that make up the your transformation's schema and also includes the projects, folders and files to be created for each of the model types.
It is the information displayed in the right hand side of the Exemplar Analysis tool that makes up your transformation mode from which your Design Pattern Toolkit transformation will be generated.
![]() |
A project containing some or all of the exemplar. Drag this icon to a model type to indicate that a project like this should be generated for each instance of that type in the input model |
![]() |
A folder in one of the exemplar projects.Drag this icon to a model type to indicate that a folder by this name should be created for each instance of that type in the input model |
![]() |
A file in one of the exemplar projects. Drag this icon to a model type to indicate that a file like this should be generated for each instance of that type in the input model |
![]() |
A model type in the model used by your transformation. You can rename this model type using the properties view and you can drag the model type to another model type to indicate aa dependant or composite association. |
![]() |
An attribute in the model type represented by the icon's parent. The properties view lets you rename the attribute and specify whether this is a key for the model type. |
![]() |
A role played by one of the files generated for the parent model type. There may be one or more files nested underneath a role indicating that those files from the exemplar all play the same role in the overal design and that the files could all have been generated by the same template. The properties view lets you specify the name of the role, the name of the DPTK template to be eventually generated, the kind of artifact to be generated (java, text or binary) and the prefix used to build the names of naming convention attributes. |
![]() |
A file from one of the exemplar projects. This file has been identified as one of the files that could be generated for each model instance, but the file has not yet been associated (by drag and drop) with a role. |
![]() |
A file from one of the exemplar projects. This file has been associated with a role. |
© Copyright IBM Corporation 2000,
2005. All Rights Reserved.