Modelio Java Designer main features

Generating Java files

Java code generation consists of producing Java files for a model’s classes, using the correspondence between Java notions and modeling notions.

Modelio Java Designer has a default strategy for generating parameter and attribute declarations. It converts UML types into Java 5 types, ensuring modern code generation, based on the Java collections framework. Other translations can be implemented easily, using the Modelio Java Designer customization file.

Note: Before actually generating, it may be necessary to specify that classes or packages are Java elements using stereotypes or to annotate the model using tagged values and notes.

Generating documentation

Java documentation generation uses the JDK javadoc tool to produce HTML files from the generated java files. This operation is therefore related to the generated java files. Special notes, inserted during the modeling phase and taken into account during code generation, are then used.

Compiling generated files

The compilation of generated files consists of producing the class files from generated Java files. For this, Modelio Java Designer proposes the generation and execution of ANT files.

Reverse engineering

The reverse engineering operation consists of incorporating classes of existing libraries, especially the JDK, into a model. During the modeling phase, this allows you to:

  • specialize these classes

  • implement them

  • create associations towards them

  • create attributes that have one of these classes as their type

  • create methods parameters that have one of these classes as their type

The reverse feature also allows you to reverse your developed code into a Modelio model.