Use > Modeling > Data Model > Exporting the Data Model to a UML Tool > How to Convert XML of a Selected Part of the Class Model

How to Convert XML of a Selected Part of the Class Model

This task describes how to use the custom plug-in to convert the XML of a selected part of the class model to the UML tool format.

The plug-in can be either a Java class or an XSLT text file. If you use a Java class, it must implement the ITransformToUML(ExportToUML.jar) interface; the transformToUML() method receives an XML string as a parameter and returns a byte array that is written to the output file.

For details on the custom plug-in input, see Tool Plug-in Input.

Activate the Plug-in Using a Java Class

Add the display name and fully-qualified class name to the config.xml file in the ExportToUML directory, as follows:

        <ConverterToUML>
            <Name><display name></Name>
            <Class><fully qualified class name></Class>
        </ConverterToUML>

Continue with the procedure for exporting the class model. For details, see How to Export the Class Model.

Activate the Plug-in Using an XSLT Text File

In this case, XSLT from the specified file is applied to the class model XML and is written to the output file.

Add the display name and full path of the XSLT file to the config.xml file in the ExportToUML directory, as follows:

        <ConverterToUML>
            <Name><display name></Name>
            <XsltFile><Full_path_of_the_XSLT_file></XsltFile>
        </ConverterToUML>

Continue with the procedure for exporting the class model. For details, see How to Export the Class Model.

Related Topics Link IconRelated Information