After you import the Rational® XDE™ Java™ code models, verify the models and
code for data integrity.
During the import process, the following changes are made to the
imported model and related code:
- References in the code model to XDE framework models such as jdk_min or jdk1.4_min
are replaced with references to Java elements from the JDK. Framework models
are also deleted if the Delete all reference models after code
model import option is specified in the XDE Java Project Import
wizard.
- XDE code
model elements that had a value in the <<JavaCollection>> tagged value,
or a value of 1 or more in the <<JavaDimensions>> tagged value are given
stereotypes in the model that are used by the UML-to-Java 5 transformation
to identify collection classes.
- Components in the model that represent the Java classes from the code are deleted.
- The annotations in the Java code that identified the modelguid of
the corresponding XDE model element are deleted. These identifiers are
no longer valid because the converted model elements have new IDs.
- If you did not select the Replace UML Elements with Java Classes option,
annotations are added to the code to indicate the relationship to the corresponding
element in the UML model.
- Comments are added at the beginning and end of code method bodies that
prevent them from being overwritten when the UML-to-Java 5 transformation
is applied to the model after import.
- In addition to the model and code changes, a transformation configuration
is created that links the model and the imported Java project. This transformation is configured
for the UML-to-Java 5 transformation, with the Use Java 5 option
cleared. The option to include a reverse transformation from Java to
UML is not selected by default, but you can enable this option after the import
process is complete.
To verify Rational XDE Java code model data integrity:
- To locate broken semantic rules in your model, in the Rational UML
Modeling product Project Explorer view, right-click the
model; then click Run Validation.
- Check the Problems view and error log to review
error, warning, and informational messages that might appear during the import
process.