Altova UModel 2024 Professional Edition

SPL Reference

Home Prev Top Next

This section gives an overview of SPL (Spy Programming Language), the code generator's template language.

 

It is assumed that you have prior programming experience, and are familiar with operators, functions, variables and classes, as well as the basics of object-oriented programming - which is used heavily in SPL.

 

The templates used by UModel are supplied in the ...\UModelspl folder. You can use these files as an aid to help you in developing your own templates.

 

How code generator works

Inputs to the code generator are the template files (.spl) and the object model provided by UModel. The template files contain SPL instructions for creating files, reading information from the object model and performing calculations, interspersed with literal code fragments in the target programming language.

 

The template file is interpreted by the code generator and outputs .java, .cs source code files, or any other type of file depending on the template.

© 2017-2023 Altova GmbH