MagicDraw UML and SysML Plugin eSchool
Motto: "Learn good ways to work with MagicDraw UML and its SysML Plugin !"
About the eSchool
UML2 in MagicDraw
MagicDraw UML tips
MagicDraw SysML Plugin
MagicDraw for Java
MagicDraw for XML
Advanced UML and SysML Training

Reverse engineering Java variables

In this trail we examine what happens to the different types of Java variables when they are reversed into MagicDraw UML.

You should be familiar with the Java variables terms and definitions from:

http://java.sun.com/docs/books/tutorial/java/nutsandbolts/variables.html

http://java.sun.com/docs/books/tutorial/java/javaOO/variables.html

http://java.sun.com/docs/books/tutorial/java/javaOO/classvars.html

A first reverse engineering of a simple test suite is shown below. A class Main has a number of different types of attributes (Java fields), operations (Java methods), and it depends on a Thing Interface, which it can create directly through the default implementation Thing_, or via a Factory.

As usual, I have chosen to NOT yet create Associations from the attributes (as reversed from the Java fields); let's now join up the system a bit by converting selected UML attributes from Java object references to Property ends of Associations ..

Image: 
Search
MagicDraw UML for Java software engineering