public final class BackupUtils extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
BackupUtils.URIMapper
Mapper to perform a mapping on URIs.
|
Modifier and Type | Field and Description |
---|---|
static String |
BACKUP_FILE_EXTENSION
File extension for backed up model.
|
static String |
LOG_FILE_EXTENSION
File extension for log file.
|
Modifier and Type | Method and Description |
---|---|
static List<org.eclipse.emf.common.util.URI> |
backup(List<org.eclipse.emf.common.util.URI> modelURIs,
Metamodel metamodel)
Backup a model based on a number of
URI s. |
static List<org.eclipse.emf.common.util.URI> |
copy(List<org.eclipse.emf.common.util.URI> sourceURIs,
Metamodel metamodel,
BackupUtils.URIMapper mapper)
Copy a model based on a number of
URI s. |
static org.eclipse.emf.common.util.URI |
getBackupURI(org.eclipse.emf.common.util.URI modelURI)
Get the URI of the backup model corresponding to the URI of the model.
|
static org.eclipse.emf.common.util.URI |
getLogURI(org.eclipse.emf.common.util.URI modelURI)
Get the URI of the log file corresponding to the URI of the model.
|
static org.eclipse.emf.common.util.URI |
getModelURI(org.eclipse.emf.common.util.URI backupURI)
Get the URI of the model corresponding to the URI of the backup model.
|
static List<org.eclipse.emf.common.util.URI> |
restore(List<org.eclipse.emf.common.util.URI> backupURIs,
Metamodel metamodel)
Backup a model based on a number of
URI s. |
public static final String BACKUP_FILE_EXTENSION
public static final String LOG_FILE_EXTENSION
public static org.eclipse.emf.common.util.URI getBackupURI(org.eclipse.emf.common.util.URI modelURI)
modelURI
- URI of modelpublic static org.eclipse.emf.common.util.URI getModelURI(org.eclipse.emf.common.util.URI backupURI)
backupURI
- URI of backup modelpublic static org.eclipse.emf.common.util.URI getLogURI(org.eclipse.emf.common.util.URI modelURI)
modelURI
- URI of modelpublic static List<org.eclipse.emf.common.util.URI> backup(List<org.eclipse.emf.common.util.URI> modelURIs, Metamodel metamodel) throws IOException
URI
s.IOException
public static List<org.eclipse.emf.common.util.URI> restore(List<org.eclipse.emf.common.util.URI> backupURIs, Metamodel metamodel) throws IOException
URI
s.IOException
public static List<org.eclipse.emf.common.util.URI> copy(List<org.eclipse.emf.common.util.URI> sourceURIs, Metamodel metamodel, BackupUtils.URIMapper mapper) throws IOException
URI
s.IOException
Copyright © 2020. All rights reserved.