Managing input and output metamodels in mapping models

In a model-to-model transformation mapping project, the metamodels that you specify in a mapping model determine which input and output objects you can add to the mapping declarations in the mapping model. You can add and remove metamodels from a mapping model. You can also edit the Uniform Resource Indicator (URI) of a metamodel.

Before you begin

You must have a mapping model open. A mapping model has .mapping as a file name extension.

About this task

Changes to metamodels as a result of iterative development might impact a mapping model. You might add or remove metamodels when the scope of a transformation increases, or if metamodel objects move to different metamodels. You might edit a metamodel URI if the metamodel location changes.

Check the Problems view for error and warning information about missing metamodels. The table on the Input Models and Output Models tabs also displays warnings if the specified metamodel paths are incorrect.

To manage the input and output metamodels in a mapping model:

Procedure

  1. In the Mapping Root area of the mapping editor, right-click the shape that displays the name of the mapping model; then click Show in properties.
  2. In the Properties view, click the Input Models tab or the Output Models tab, depending on the type of metamodel that you want to manage.
  3. Complete one or more of the following steps:
    • To add a metamodel to the mapping model, click Add Model.
    • To specify a different location for a metamodel, in the table, click the name of the metamodel and click Edit Model URI. Edit the path to the metamodel and click OK.
    • To delete a metamodel from the mapping model, in the table, click the name of the metamodel and click Remove Model.
  4. Click File > Save.

Feedback