You can implement the validateContext method in a TransformationProvider
class to validate the properties that you add to a transformation.
Before you begin
You must have
a plug-in manifest file open in the manifest editor. The manifest file must contain an instance
of the transformation provider extension point, a transformation provider
element, and a transformation.
About this task
To enable the validation of properties in a transformation:
Procedure
- On the Extensions tab, in the All
Extensions area, click a TransformationProvider element.
- In the Extension Element Details area,
click class. The Java file
editor opens.
- In the Java file editor, in the transformation
provider class, add the validation code for the validateContext() method.
For more information about this method, which is contained in the
class named com.ibm.xtools.transform.core.AbstractTransformationProvider,
see the Rational® Transformation
Developer Guide.
Note: Some information, such as links to Eclipse
documentation or to developer guides, is available only from the help
topics that are installed with the product.
- Click .
Results
The validation code is invoked the next time that the transformation
runs.