Please enable JavaScript to view this site.

Altova UModel 2020 Professional Edition

When generating C#, Java, or VB.NET code, as well as XSD schemas, UModel uses a templating language called SPL (Spy Programming Language). The SPL templates dictate the syntax of the generated code files. It is possible to customize the SPL templates, for example, in order to slightly change the syntax of the generated code. Editing SPL templates is meaningful only for languages supported by UModel. If you want to create completely new SPL templates for other languages, it would be possible to generate new code but it would not be possible to update existing code (since the language syntax would be unknown to UModel).

 

The default SPL templates are available in the UModelSPL directory relative to the program installation directory.

 

Do not modify the existing default SPL templates, since these directly affect the default code generation. Should you need to customize code generation, create custom templates instead, as shown below.

 

SPL templates are only used when new code is generated (that is, when new classes, operations etc have been added to the model, and then code generation takes place). Any existing code is not affected by the SPL templates.

 

For an introduction to SPL, see SPL Reference.

 

 

To modify the provided SPL templates:

1.Locate the provided SPL templates in the UModel installation directory ("Program Files"), for example: ...\UModel2020\UModelSPL\Java\Default.

2.Copy the SPL files you want to modify into the parent directory. For example, if you want to modify the appearance of a Java class in generated code, copy the Class.spl file from ...\UModel2020\UModelSPL\Java\Default to ...\UModel2020\UModelSPL\Java.

3.Make the changes to the .spl file(s) and save them.

 

 

To use the custom SPL templates:

1.Select the menu option Project | Synchronization settings.

2.Select the User-defined override default check box in the SPL templates group.

© 2019 Altova GmbH