This project is a Python-based tool for translating UML (Unified Modeling Language) diagrams stored in .mdj (MagicDraw) files into Java and C++ code. It provides a convenient way to automate the process of generating code from UML diagrams, saving time and effort for developers.
- Parses .mdj files to extract UML diagrams using JSON parsing.
- Supports translation of UML class diagrams into Java and C++ code.
- Generates class files with attributes, methods, and inheritance relationships based on the UML diagrams.
- Supports both Java and C++ code generation from the same UML diagrams.
Clone this repository to your local machine: git clone https://github.com/Jovan11111/UML_translator.git
Navigate to the project directory: cd UML_translator
Prepare your UML diagrams in .mdj format using MagicDraw or any compatible tool, and save them in project directory(where test files are saved). From the default to the name of you file. Ensure that your UML diagrams follow the required conventions for class structure, attributes, methods, and inheritance relationships. Run the translator script with the path to your .mdj file: python main.py
- All classes in .mdj files have to be in packages.
Contributions are welcome.