Specifying how the UML-to-XSD transformation processes nested UML classes

You can specify whether the UML-to-XSD transformation converts a nested class into an anonymous type when no explicit association exists between the nesting class and the nested class. By default, the transformation converts a nested class into an anonymous type only if it has an association relationship with the nesting class. You can specify that the transformation converts all nested classes into anonymous types so that the generated XSD type corresponds to the elements that the nested classes contain.

Before you specify how the UML-to-XSD transformation processes UML classes, you should read the information that is available at Modeling > Transform > Configure Transformations. From the Transformations/Configurations list, select UML to XSD. On the Transformation Description page, click View Transformation Documentation.

You must be in the Modeling perspective.

To specify how the UML-to-XSD transformation processes UML classes:
  1. Click Modeling > Transform > Configure Transformations.
  2. In the Configure Transformations window, from the Transformations/Configurations list, select a transformation configuration.
  3. Click the Properties tab.
  4. On the Properties page, in the Property column, click Convert a nested class to anonymous type implicitly.
  5. In the Value column, click true or false.
  6. Click Apply.
  7. Click Close.
The options are applied the next time that you run this transformation configuration.
Feedback
(C) Copyright IBM Corporation 2004, 2005. All Rights Reserved.