public class EdaptViewModelMigrator extends Object implements ViewModelMigrator, StringViewModelMigrator
ViewModelMigrator
using edapt.Constructor and Description |
---|
EdaptViewModelMigrator() |
Modifier and Type | Method and Description |
---|---|
boolean |
checkMigration(String serializedViewModel)
Checks whether a view model needs to be migrated.
|
boolean |
checkMigration(org.eclipse.emf.common.util.URI resourceURI)
Checks whether a view model needs to be migrated.
|
String |
performMigration(String serializedViewModel)
Migrates a view model to the latest version.
|
void |
performMigration(org.eclipse.emf.common.util.URI resourceURI)
Migrates a view model to the latest version.
|
public boolean checkMigration(String serializedViewModel)
checkMigration
in interface StringViewModelMigrator
serializedViewModel
- the view model that should be checkedStringViewModelMigrator.checkMigration(java.lang.String)
public boolean checkMigration(org.eclipse.emf.common.util.URI resourceURI)
ViewModelMigrator
checkMigration
in interface ViewModelMigrator
resourceURI
- The URI of the view model that should be checked.public String performMigration(String serializedViewModel) throws ViewModelMigrationException
performMigration
in interface StringViewModelMigrator
serializedViewModel
- the view model that should be checkedViewModelMigrationException
- in case of an errorStringViewModelMigrator.performMigration(java.lang.String)
public void performMigration(org.eclipse.emf.common.util.URI resourceURI) throws ViewModelMigrationException
ViewModelMigrator
performMigration
in interface ViewModelMigrator
resourceURI
- The URI of the view model that should be migrated.ViewModelMigrationException
- in case of an errorCopyright © 2016. All rights reserved.