Package com.nomagic.magicdraw.mof
Class MofPlugin
java.lang.Object
com.nomagic.magicdraw.plugins.Plugin
com.nomagic.magicdraw.mof.MofPlugin
Plugin provides MOF (EMOF and CMOF) export/import functionality.
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
exportMof
(Project project, Set<Package> packages, MofType mof, File mofFile, boolean runValidation, boolean silent, ProgressStatus progressStatus) Exports given project to MOF XMI.static void
exportMof
(Project project, Set<Package> packages, MofType mof, File mofFile, boolean runValidation, ProgressStatus progressStatus) Exports given project to MOF XMI.static void
importMof
(File mofFile, MofDescriptor mof, File umlFile, ProgressStatus progressStatus, boolean removeTemp) Imports given MOF to new project.Methods inherited from class com.nomagic.magicdraw.plugins.Plugin
getDescriptor
-
Method Details
-
exportMof
@OpenApi public static void exportMof(Project project, Set<Package> packages, MofType mof, File mofFile, boolean runValidation, boolean silent, ProgressStatus progressStatus) throws Exception Exports given project to MOF XMI.- Parameters:
project
- project to export.packages
- project packages to export.mof
- mof type.mofFile
- output file.runValidation
- run model validation when exporting.silent
- silent (wihtout user interruption) exportprogressStatus
- progress status.- Throws:
Exception
-
exportMof
@OpenApi public static void exportMof(Project project, Set<Package> packages, MofType mof, File mofFile, boolean runValidation, ProgressStatus progressStatus) throws Exception Exports given project to MOF XMI.- Parameters:
project
- project to export.packages
- project packages to export.mof
- mof type.mofFile
- output file.runValidation
- run model validation when exporting.progressStatus
- progress status.- Throws:
Exception
-
importMof
@OpenApi public static void importMof(File mofFile, MofDescriptor mof, File umlFile, ProgressStatus progressStatus, boolean removeTemp) throws Exception Imports given MOF to new project.- Parameters:
mofFile
- MOF file to import.mof
- MOF type.umlFile
- Transformed file.progressStatus
- progress status.- Throws:
Exception
-