Prev Next

Code Template Customization

Enterprise Architect helps you to generate source code from UML models for a wide range of programming languages. Standard templates (mappings) are provided out-of-the-box but you can customize the way that code is generated by using the powerful and flexible Code Template Framework (CTF). This sophisticated framework allows you to customize every detail of the way code is generated, including the facility to create new templates for languages not supported in the base product. For example, JavaScript is not one of the supported languages but a series of templates can be written quickly to generate JavaScript from UML models. In these cases existing templates act as a useful starting point and reference for new languages.

The code template framework also provides the mechanism for generation of behavioral models and is used for the transformation templates.

Features

Feature

Detail

See also

Default Templates

Default Code Templates are built into Enterprise Architect for forward engineering supported languages.

Code and Transform Templates Base Templates

Code Template Editor

A Code Template Editor is provided for creating and maintaining user-defined Code Templates.

Code Template Editor

Customizing Code Templates

Descriptions of the template syntax and the macros and functions you can use to control the effects of the templates.

Code Template Framework

Synchronize Code

A subset of the default Code Templates to synchronize code.

Synchronize Code