Home. 
.

transparent

transparent

transparent

Generate Program Code from UML Models

UModel® 2008 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® 2008 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.



Altova UModel UML project menu

The UModel® 2008 code generator is based on the same technology used in Altova XMLSpy® and Altova MapForce®. Supplied Java profiles generate industry-standard Java 1.4, Java 5.0, and Java 6.0 code compatible with Eclipse, Borland® JBuilder®, and other popular Java development environments. Profiles for C# 1.2, C# 2.0, and C# 3.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® 2008 provides compatibility for new language constructs introduced in C# 3.0 and VB9.0 that directly support XML.

The version for each language is easily selected from a drop-down menu. You can even begin a project in one version and switch in a later development cycle.



Altova UModel UML project menu

Developers who select Java 5.0 or Java 6.0 will appreciate UModel® 2008 support for Java generics as UML templates, with auto-completion and syntax coloring for templates and template bindings. UModel® 2008 also supports C# 2.0 , C# 3.0, and Visual Basic .NET 8.0 and 9.0 generics, with their strong type checking and instantiation at runtime.



Altova UModel UML project menu

UModel® 2008 also supports 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.



Altova UModel UML project menu

For C# programmers, UModel® 2008 creates code in C# 1.2, C# 2.0, and C# 3.0 an extended .NET programming language originally based on C++, supporting C# generics with strong type checking and instantiation at runtime. C# generics avoid obscure compile and link errors that can sometimes occur in C++.

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

The program source code created by UModel® 2008 is defined in customizable templates that you can modify to optimize for your compiler or target platform. The templates are written in a simple yet powerful template language called SPL that gives full control over mapping UML 2.0 diagrams to the primitive data types of your selected programming language.

Using SPL you can easily customize code according to your company's writing conventions, or use specialized base libraries for different compilers.

(If you have already customized the code generation engine in Altova XMLSpy® 2008 or Altova MapForce® 2008 you will recognize the code templates and SPL language used by UModel® 2008.)

The code generation templates provided for standard Java, C#, and Visual Basic .NET statements are stored in separate files from your UModel® 2008 projects. This modularized approach keeps customizations manageable and makes it easy for you to reuse your own templates with new modeling projects. You can even save alternate sets of templates and switch between them to benchmark your UML model in different code implementations.

As UModel® 2008 generates code, the message window logs each file written and confirms success or indicates failure of the process.



Altova UModel UML project menu

If you receive a warning or error message, you can select it and UModel automatically highlights the offending element in the Model Tree. You can then right-click on the element to locate and open the diagrams where it is used. In this illustration, the user forgot to set the Java namespace root before attempting to generate code, resulting in several errors.



Altova UModel UML message window with erors

Experience the benefits of trouble-free code generation from UML models for yourself! Download a free 30-day trial of UModel® 2008 right now.



transparent
Download
Pricelist
Buy
Video
Datasheet
Feature Comparsion
Print
Mail
Digg
delicious
.
Did you know?
.

The Altova Software Maintenance Package (SMP) includes:

Free Updates - access new software versions and maintenance releases.

Technical Support - priority response to your problem or quesion.

Online Help - file a support request or enter a discussion forum on the Web.

.

Altova SMP

.
.

UML logo

.
.

transparent

transparent