Generate Application Code from UML Models

Source code generation from UML models in Altova UModel

UModel® 2017 includes a built-in code generator that creates Java, C#, or Visual Basic .NET code based on the classes in your UML model, freeing you from the mundane task of writing low level infrastructure code so you can concentrate on the business logic and overall architecture of your project.

Take advantage of the source code generated by UModel to accelerate the implementation phase of your project and eliminate the unintended errors that can creep into manually written code and prove time-consuming to debug later on.

Download Trial

Code Generation Support for Multiple Language Versions

The UModel® 2017 code generator is based on the same technology used in Altova XMLSpy® 2017 and Altova MapForce® 2017. Supplied Java profiles generate industry-standard Java 1.4, Java 5.0, Java 6.0, Java 7.0, and Java 8.0 code compatible with Eclipse, Borland® JBuilder®, and other popular Java development environments. Profiles for C# 1.2, C# 2.0, C# 3.0, C# 4.0, C# 5.0, C# 6.0, and C# 7.0 generate code for Microsoft® Visual C# .NET®, Borland® C#Builder®, or other C# development environments. Profiles for Visual Basic .NET support VB 7.1, VB 8.0 and VB9.0.

UModel supports C# generics with strong type checking and instantiation at runtime, and provides compatibility for new language constructs introduced in C# 3.0 and VB9.0 that directly support XML. UModel also supports named arguments, optional parameters, dynamic programming, co- and contravariance introduced in C# 4.0 during round trip engineering, binary import and sequence diagram generation.

Java developers will appreciate support for Java generics as UML templates and Java enumerations, permitting easier definition of collections where all elements are the same type and allowing type errors in those collections to be detected at compile time.

To ensure code quality, UModel includes a model syntax checker to detect diagram errors or inconsistencies before they are replicated downstream in code.

A Java template in a class diagram in Altova UModel
Code generation message window in Altova UModel
A class with .NET properties implemented internally as methods in Altova UModel

Next Steps