|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.finalist.mmbase2uml.MMBase2UML
public class MMBase2UML
The MMBase2UMLTester reads an MMBase application and creates a XMI file containg a UML description of the MMBase application.
Constructor Summary | |
---|---|
MMBase2UML()
|
Method Summary | |
---|---|
com.finalist.uml14.simpleuml.SimpleModel |
createModel(net.sf.mmapps.modules.config.ApplicationConfiguration appConf)
Parses the information of the MMBase application and returns a SimpleModel representing the application. |
com.finalist.uml14.simpleuml.SimpleModel |
createModel(net.sf.mmapps.modules.config.ApplicationConfiguration appConf,
boolean addClassDiagram)
Parses the information of the MMBase application and returns a SimpleModel representing the application. |
com.finalist.uml14.simpleuml.SimpleModel |
initModel(net.sf.mmapps.modules.config.ApplicationConfiguration appConf)
Initialize a model with some standard needed features. |
static void |
main(java.lang.String[] args)
This application parses an MMBase application and than writes an XMI file that contains the UML description of the MMBase application. |
void |
parseApplication(java.lang.String sourcePath,
java.lang.String targetPath)
Analyses the sourcePath that was given. |
void |
parseApplication(java.lang.String sourcePath,
java.lang.String targetPath,
java.lang.String createClassDiagram)
Analyses the sourcePath that was given. |
net.sf.mmapps.modules.config.Configuration |
readMultipleApp(java.lang.String dirPath)
Reads multiple applications from the specified directory. |
net.sf.mmapps.modules.config.ApplicationConfiguration |
readRemoteApp(java.lang.String url)
Reads a remote MMBase cloud and returns a Configuration with all the information about one application. |
net.sf.mmapps.modules.config.ApplicationConfiguration |
readSingleApp(java.lang.String filePath)
Reads the MMBase application from the filepath. |
void |
writeModel(com.finalist.uml14.simpleuml.SimpleModel simpleModel,
java.lang.String outputDir)
Writes the model to a file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MMBase2UML()
Method Detail |
---|
public static void main(java.lang.String[] args)
args
- The first argument parsed is either a directory with multiple
MMBase-applications, a directory with one single MMBase application or a
remote url to a online MMBase application.
The second argument may be the name of the output directory.public void parseApplication(java.lang.String sourcePath, java.lang.String targetPath)
sourcePath
- The path to be parsed.targetPath
- The path to write the XMI files to.public void parseApplication(java.lang.String sourcePath, java.lang.String targetPath, java.lang.String createClassDiagram)
sourcePath
- The path to be parsed.targetPath
- The path to write the XMI files to.createClassDiagram
- "true" if a class diagram in DI format should be generated.public net.sf.mmapps.modules.config.ApplicationConfiguration readSingleApp(java.lang.String filePath)
filePath
- A reference to a directory with a single MMBase application.
public net.sf.mmapps.modules.config.Configuration readMultipleApp(java.lang.String dirPath)
dirPath
- A reference to a directory with multiple applications.
public net.sf.mmapps.modules.config.ApplicationConfiguration readRemoteApp(java.lang.String url)
url
- A reference to the remotecloud.
public com.finalist.uml14.simpleuml.SimpleModel initModel(net.sf.mmapps.modules.config.ApplicationConfiguration appConf)
appConf
- configuration of the application.
public com.finalist.uml14.simpleuml.SimpleModel createModel(net.sf.mmapps.modules.config.ApplicationConfiguration appConf)
appConf
- The application configuration.
public com.finalist.uml14.simpleuml.SimpleModel createModel(net.sf.mmapps.modules.config.ApplicationConfiguration appConf, boolean addClassDiagram)
appConf
- The application configuration.addClassDiagram
- if true, a class diagram will be added to the model im DI format.
public void writeModel(com.finalist.uml14.simpleuml.SimpleModel simpleModel, java.lang.String outputDir)
simpleModel
- The model that has to be written to the file.outputDir
- the directory to write the model to.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |