readme - Java2XMI

readme - Java2XMI

Inhalt


Topic:.readme_Java2XMI.

pStyle=std tableStyle=stdTable

What is Java2XMI

The ZBNF-Script in zbnfjax/zbnf/Java2C.zbnf (internet: Java2C.zbnf) was created and is used in the Java2C-Project. There Java-Sourcecode is parsed using ZBNF and converted with Algorithm written in Java to C-Language-programs.

The same script is used to parse Java-code to generate XMI-Code. The XSL-Scripts to generate the XMI are located in zbnfjax/xsl/Java2xmiTypes.xsl and .../Java2xmi.xslp. Using this scripts it is able to convert normal Java-Sourcecodes to an XMI-Model for UML.

Look at this graphic:


This UML-class diagramm shows the class associations within the ZBNF-parser. This class diagramm is created using the XMI-File of this example, imported in the Rhapsody-UML-Tool. The XMI images the repository of the UML-model, the creation of this class diagramm uses the model informations of the XMI-file. No additional informations are stored there, only the informations produced with the Java2XMI-converter. The graphic positions are tuned manually. But it needs only about one hour to get this diagramm. The time to spend is used to position the classes, correct layout of the dependency-lines, choose the attributes and methods to show in the class body (only the most important) and so on. It is a work of documentation. The base data to do this work is the repository got from the XMI-import.

The graphic may detect unoptimal associations etc, which may correct in the source code. It is a recursion of documentation and source writing. This class-diagramm may be optimal, because the software is optimal.

The example contains:

Work for future: