Skip navigation links

Package com.ibm.xtools.transform.uml2.mapping

This package provides public API for the mapping transformation utility.

See: Description

Package com.ibm.xtools.transform.uml2.mapping Description

This package provides public API for the mapping transformation utility. This utility is used to specify alternate names for artifacts generated by a transformation that uses UML source elements.

Package Specification

MappingUtility is primary element in the API. Transformation authors should call the initialize method to prepare the transformation context. The terminate method should be called when the transformation is finished using the utility. Between these two calls, any of the other public methods can be called to update the mapping model or extract mapped names. Each of these methods returns an IStatus that uses a code defined in the IMappingCodes interface. Transformation authors can use the codes to determine the meaning of the IStatus.

The IMappingMode interface represents the type of operation the utility will be used for. These include:

The utility class, MappingModeUtility, provides helper methods for working with mapping modes.

Skip navigation links