Skip to content

Overview Java


There are two generators that are related to the Java programing language:

  • Java
  • Java Predef (is only needed for the development of code generators)

Generator Java

When executing the Java generator with a Virtual Developer Modeler file created with the DSL ‘Basic’, you can only generate bean classes with fields, getters and setters and enumerations. The Java generator can do much more than this, though. The additional functionality is used by more powerful generators that create more complex Java code that uses frameworks or technologies like for instance JEE or implement design patterns or a whole software architecture.

Generator Java Predef

The generator Java Predef takes jar (or jmod) files as input and generates Java code that can create object representations for all types contained in the jar files. To use this generator only makes sense when you want to develop code generators yourself. If you want to know more about this, please read the documentation for the development of code generators with and for Virtual Developer.

It is possible to just use a *.jar or *.jmod file as input. But furthermore it is also possible to add one *.properties file to the input model. The possible key value pairs are:

    Set the bundle name in the MANIFEST
  • bundle.version
    Set the bundle version in the MANIFEST, also used for Eport-Package
  • model.url
    An url where to download the java archive, if it is set the *.properties file is sufficient as input model. To download more than one java archive use model.url.0, model.url.1, …
  • import.version
    Set the version of the imports, all valid manifest version entries are allowed
    Set a specific version to this package and all subpackages
  • import.add
    Add an import entry to the manifest, to add more than one import us import.add.0, import.add.1, …

Example file for keycloak (with some unnecessary imports):



Technologies, Frameworks, Libraries

  • Java
  • JSE standard libraries


  • Virtual Developer Modeler
  • Domain Specific Languages: Basic


  • Virtual Developer Cloud Connector (Eclipse, Maven or CLI)