Class MofPlugin


  • @OpenApi
    public class MofPlugin
    extends Plugin
    Plugin provides MOF (EMOF and CMOF) export/import functionality.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void exportMof​(Project project, java.util.Set<Package> packages, MofType mof, java.io.File mofFile, boolean runValidation, boolean silent, ProgressStatus progressStatus)
      Exports given project to MOF XMI.
      static void exportMof​(Project project, java.util.Set<Package> packages, MofType mof, java.io.File mofFile, boolean runValidation, ProgressStatus progressStatus)
      Exports given project to MOF XMI.
      static void importMof​(java.io.File mofFile, MofDescriptor mof, java.io.File umlFile, ProgressStatus progressStatus, boolean removeTemp)
      Imports given MOF to new project.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • exportMof

        @OpenApi
        public static void exportMof​(Project project,
                                     java.util.Set<Package> packages,
                                     MofType mof,
                                     java.io.File mofFile,
                                     boolean runValidation,
                                     boolean silent,
                                     ProgressStatus progressStatus)
                              throws java.lang.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) export
        progressStatus - progress status.
        Throws:
        java.lang.Exception
      • exportMof

        @OpenApi
        public static void exportMof​(Project project,
                                     java.util.Set<Package> packages,
                                     MofType mof,
                                     java.io.File mofFile,
                                     boolean runValidation,
                                     ProgressStatus progressStatus)
                              throws java.lang.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:
        java.lang.Exception
      • importMof

        @OpenApi
        public static void importMof​(java.io.File mofFile,
                                     MofDescriptor mof,
                                     java.io.File umlFile,
                                     ProgressStatus progressStatus,
                                     boolean removeTemp)
                              throws java.lang.Exception
        Imports given MOF to new project.
        Parameters:
        mofFile - MOF file to import.
        mof - MOF type.
        umlFile - Transformed file.
        progressStatus - progress status.
        Throws:
        java.lang.Exception