Class EmfUml2PersistenceHelper
- java.lang.Object
-
- com.nomagic.magicdraw.emfuml2xmi.helpers.BaseEmfUml2PersistenceHelper
-
- com.nomagic.magicdraw.emfuml2xmi.v2.EmfUml2PersistenceHelper
-
@OpenApi public final class EmfUml2PersistenceHelper extends com.nomagic.magicdraw.emfuml2xmi.helpers.BaseEmfUml2PersistenceHelper
Stores save and load options.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
addResourceSetInitializer(ResourceSetInitializer initializer)
Register resource set initializer.static void
clean(java.util.Collection elements, ProgressStatus progress)
Disposes given Eclipse UML2 elements.static PersistenceOptionsProvider
getLoadOptionsProvider()
Returns load options provider.static PersistenceOptionsProvider
getSaveOptionsProvider()
Returns save options providerstatic void
removeResourceSetInitializer(ResourceSetInitializer initializer)
Remove resource set initializer.static void
setLoadOptionsProvider(PersistenceOptionsProvider loadOptionsProvider)
Sets load options provider.static void
setSaveOptionsProvider(PersistenceOptionsProvider saveOptionsProvider)
Sets save options provider.
-
-
-
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
-
-