Class EmfUml2PersistenceHelper


  • @OpenApi
    public final class EmfUml2PersistenceHelper
    extends com.nomagic.magicdraw.emfuml2xmi.helpers.BaseEmfUml2PersistenceHelper
    Stores save and load options.
    • Method Detail

      • getSaveOptionsProvider

        @OpenApi
        public static PersistenceOptionsProvider getSaveOptionsProvider()
        Returns save options provider
        Returns:
        persistence options provider
      • setSaveOptionsProvider

        @OpenApi
        public static void setSaveOptionsProvider​(PersistenceOptionsProvider saveOptionsProvider)
        Sets save options provider.
      • getLoadOptionsProvider

        @OpenApi
        public static PersistenceOptionsProvider getLoadOptionsProvider()
        Returns load options provider.
        Returns:
        persistence options provider
      • addResourceSetInitializer

        @OpenApi
        public static void addResourceSetInitializer​(ResourceSetInitializer initializer)
        Register resource set initializer.
        Parameters:
        initializer - resource set initializer to add.
      • removeResourceSetInitializer

        @OpenApi
        public static void removeResourceSetInitializer​(ResourceSetInitializer initializer)
        Remove resource set initializer.
        Parameters:
        initializer - resource set initializer to remove.
      • setLoadOptionsProvider

        @OpenApi
        public static void setLoadOptionsProvider​(PersistenceOptionsProvider loadOptionsProvider)
        Sets load options provider.
      • clean

        @OpenApi
        public static void clean​(java.util.Collection elements,
                                 ProgressStatus progress)
        Disposes given Eclipse UML2 elements.
        Parameters:
        elements - Eclipse UML2 elements.
        progress - progress