Java code generation
General remarks
Java code
generation consists of producing Java files for a model's classes. Before actually generating, it may be necessary to:
·
annotate the model using tagged
values
·
define
notes
Generating types and accessors
Objecteering Java Developer suggests a default translation of the types modeled in Java types. In the same way, it has a default strategy for generating parameter and attribute declarations, and for generating accessors.
Objecteering
Java Developer provides two ways of converting UML types into Java types:
· The first transformation system, JavaTypes, is used to ensure backward compatibility with older versions of Objecteering, or to develop Java 2 applications.
· The second conversion method, Java5Types, based on the new features of Java 5, ensures more modern code generation, based on the Java collections framework.
Other translations and strategies can be implemented, without you having to redefine Objecteering Java Developer.
Main topics in this user guide
This user guide will explain:
· The correspondence between Java notions and modeling notions
· The note types and tagged value types provided by Objecteering Java Developer
· The parameterization of the types of generated parameters and attributes
· The parameterization of the declaration of the generated parameters and attributes
· The parameterization of the accessors of the generated attributes