Coder Social home page Coder Social logo

java2uml's Introduction

JavaUML

Overview

We designed software that converts Java source code into visual UML class diagram. Our software extracts
classes, variables, methods, along with their access modifiers from Java code and turns them to usable 
tokens that allow us to implement a diagram visualizer. Moreover, it enables us to consider association 
relationship as well as multiplicity.

We developed a fast and user-friendly software with a startup GUI that guides users through the process 
of generating a UML diagram utilizing third party API's. Our product can run both online(yUML) and
offline(Planuml), depending which 
option is chosen. More, our program accepts multiple Java source files with multiple classes in it. Our 
software does not accept jar files, however, there is a description on how to get java source files from 
jar file in the menu bar.

We designed our software to output a UML class diagram in png format. This way user will always have UML 
class diagram with a good layout. Moreover, our software uses the UML API style, which means that it has 
aggregation, association, inheritance, dependency, composition and realization. After testing our program 
on some Java source files and comparing them to the UML class diagrams, we can say that our software is 
reliable. We did not implement the editing feature, because we would like our users to get a final 
product. However, in the menu bar we included a description on how to manually edit our output.

Design

Our software follows simple design. First, we have a user-friendly startup GUI with different options 
such as save, select, apply, etc. Then depending on which options user selected, we pass those parameters 
to our Parser. We used open source Java parser to extract classes, variables, methods, along with their 
access modifiers from Java code, turn them into usable tokens, and store them as a Tokenizer instance. 
This also enables us to consider relationships like, generalization (which relates to the extends keyword 
in Java), and realization (which relates to the implements keyword in Java). After getting usable tokens, 
we go through them and generate a string that holds all needed information to generate a text file. 
Moreover, we implemented a few methods and classes, like Relation and Item to handle relationships. The 
other classes are just there to help our program function as it is. Further, we generated png file by 
passing our text file to Plantuml and yUML open source generator. The Plantuml and yUML generators are 
handling our layout. Our software allows user to select where it wants to save the text and png file. 
Moreover, we save a copy of it in the Java2UML directory.

Quickstart

To run compile and run use command:

    ant run

Demo

Contributors

Feng Liu, Andres Cuevas, and Strahinja Trecakov

java2uml's People

Contributors

acueva13 avatar lvncnt avatar trecakov avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.