public final class UMLExportImportUtility
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static boolean |
exportAsEcore(java.lang.String[] exportFiles,
java.lang.String destination,
IConverterHandler converterHandler)
Exports specified files to the destination folder in Ecore format.
|
static boolean |
exportAsUML2(java.lang.String[] exportFiles,
java.lang.String destination,
boolean exportAppliedProfiles,
boolean recreateIDs,
IConverterHandler converterHandler)
Exports specified files to the destination folder in the Eclipse UML2
format.
|
static boolean |
exportAsUML2XMI(java.lang.String[] exportFiles,
java.lang.String destination,
boolean exportAppliedProfiles,
boolean recreateIDs,
IConverterHandler converterHandler)
Exports specified files to the destination folder in the Eclipse UML2 XMI
format.
|
static java.util.List<org.eclipse.emf.common.util.URI> |
importFromEcore(java.lang.String[] importFiles,
java.lang.String containerPath,
org.eclipse.core.resources.IContainer container,
boolean createModels,
IConverterHandler converterHandler)
Imports specified files (in Ecore format) to the container.
|
static java.util.List<org.eclipse.emf.common.util.URI> |
importFromUML2(java.lang.String[] importFiles,
java.lang.String containerPath,
org.eclipse.core.resources.IContainer container,
boolean recreateIDs,
IConverterHandler converterHandler)
Imports specified files (in the Eclipse UML2 format) to the container.
|
static java.util.List<org.eclipse.emf.common.util.URI> |
importFromUML2XMI(java.lang.String[] importFiles,
java.lang.String containerPath,
org.eclipse.core.resources.IContainer container,
boolean recreateIDs,
IConverterHandler converterHandler)
Imports specified files (in the Eclipse UML2 XMI format) to the
container.
|
public static boolean exportAsEcore(java.lang.String[] exportFiles, java.lang.String destination, IConverterHandler converterHandler)
exportFiles
- Files to be exported (absolute paths)destination
- Destination path (absolute path)converterHandler
- Converter handlerpublic static boolean exportAsUML2(java.lang.String[] exportFiles, java.lang.String destination, boolean exportAppliedProfiles, boolean recreateIDs, IConverterHandler converterHandler)
exportFiles
- Files to be exported (absolute paths)destination
- Destination path (absolute path)exportAppliedProfiles
- Indicator if the applied profiles should be exported as wellrecreateIDs
- Indicator if the IDs should be recreatedconverterHandler
- Converter handlerpublic static boolean exportAsUML2XMI(java.lang.String[] exportFiles, java.lang.String destination, boolean exportAppliedProfiles, boolean recreateIDs, IConverterHandler converterHandler)
exportFiles
- Files to be exported (absolute paths)destination
- Destination path (absolute path)exportAppliedProfiles
- Indicator if the applied profiles should be exported as wellrecreateIDs
- Indicator if the IDs should be recreatedconverterHandler
- Converter handlerpublic static java.util.List<org.eclipse.emf.common.util.URI> importFromEcore(java.lang.String[] importFiles, java.lang.String containerPath, org.eclipse.core.resources.IContainer container, boolean createModels, IConverterHandler converterHandler)
importFiles
- Files to be imported (absolute paths)containerPath
- Path for the container (absolute path)container
- Container for imported filescreateModels
- Indicator if the models should be created as root elements. It
instructs the importer on what is going to be the type of the
root element. If create models options is set to 'true' then
root elements will be created as Models, otherwise they will
be created as Packages (which is the default behavior).converterHandler
- Converter handlerpublic static java.util.List<org.eclipse.emf.common.util.URI> importFromUML2(java.lang.String[] importFiles, java.lang.String containerPath, org.eclipse.core.resources.IContainer container, boolean recreateIDs, IConverterHandler converterHandler)
importFiles
- Files to be imported (absolute paths)containerPath
- Path for the container (absolute path)container
- Container for imported filesrecreateIDs
- Indicator if the IDs should be re-createdconverterHandler
- Converter handlerpublic static java.util.List<org.eclipse.emf.common.util.URI> importFromUML2XMI(java.lang.String[] importFiles, java.lang.String containerPath, org.eclipse.core.resources.IContainer container, boolean recreateIDs, IConverterHandler converterHandler)
importFiles
- Files to be imported (absolute paths)containerPath
- Path for the container (absolute path)container
- Container for imported filesrecreateIDs
- Indicator if the IDs should be re-createdconverterHandler
- Converter handler