|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uml2re.Reflection
This class performs the reverse engineering from a set of java class files to a UML2 model. It uses some heuristics to extract meaningful associations between the classes. The XMI conforms to what the Eclipse UML2 tool generates.
Field Summary | |
org.eclipse.uml2.Model |
mdl
|
Constructor Summary | |
Reflection(java.lang.String modelName,
java.lang.String[] classpaths)
Initialize the model and set the path containing the class files. |
Method Summary | |
void |
analyzeAll()
Analyze all classe in the active class path. |
void |
analyzeClass(java.lang.String className)
Analyze a single class. |
void |
save(java.lang.String fileName)
Save the model as XMI file. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public org.eclipse.uml2.Model mdl
Constructor Detail |
public Reflection(java.lang.String modelName, java.lang.String[] classpaths) throws java.net.MalformedURLException
modelName
- name of the model created analyzing classesclasspaths
- classpath where the classes can be located
java.net.MalformedURLException
Method Detail |
public void analyzeClass(java.lang.String className) throws java.lang.Exception
analyzeAll()
.
The following heuristics is applied to extract meaningfull associations:
className
- the fully qualified name of the class to analyze.
java.lang.Exception
public void analyzeAll() throws java.lang.Exception
java.lang.Exception
public void save(java.lang.String fileName) throws java.io.IOException
fileName
- the filename WITHOUT extension (.uml2 will be added)
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |