Package org.eclipse.emf.ecp.view.edapt
Class EdaptViewModelMigrator
- java.lang.Object
-
- org.eclipse.emf.ecp.view.edapt.EdaptViewModelMigrator
-
- All Implemented Interfaces:
StringViewModelMigrator
,ViewModelMigrator
public class EdaptViewModelMigrator extends java.lang.Object implements ViewModelMigrator, StringViewModelMigrator
AViewModelMigrator
using edapt.- Author:
- Lucas, jfaltermeier
-
-
Constructor Summary
Constructors Constructor Description EdaptViewModelMigrator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
checkMigration(java.lang.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.java.lang.String
performMigration(java.lang.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.
-
-
-
Method Detail
-
checkMigration
public boolean checkMigration(java.lang.String serializedViewModel)
Checks whether a view model needs to be migrated.- Specified by:
checkMigration
in interfaceStringViewModelMigrator
- Parameters:
serializedViewModel
- the view model that should be checked- Returns:
- true, if the view model does not require a migration, false otherwise.
- Since:
- 1.8
- See Also:
StringViewModelMigrator.checkMigration(java.lang.String)
-
checkMigration
public boolean checkMigration(org.eclipse.emf.common.util.URI resourceURI)
Description copied from interface:ViewModelMigrator
Checks whether a view model needs to be migrated.- Specified by:
checkMigration
in interfaceViewModelMigrator
- Parameters:
resourceURI
- The URI of the view model that should be checked.- Returns:
- true, if the view model does not require a migration, false otherwise.
-
performMigration
public java.lang.String performMigration(java.lang.String serializedViewModel) throws ViewModelMigrationException
Migrates a view model to the latest version.- Specified by:
performMigration
in interfaceStringViewModelMigrator
- Parameters:
serializedViewModel
- the view model that should be checked- Returns:
- the migrated string
- Throws:
ViewModelMigrationException
- in case of an error- Since:
- 1.8
- See Also:
StringViewModelMigrator.performMigration(java.lang.String)
-
performMigration
public void performMigration(org.eclipse.emf.common.util.URI resourceURI) throws ViewModelMigrationException
Description copied from interface:ViewModelMigrator
Migrates a view model to the latest version.- Specified by:
performMigration
in interfaceViewModelMigrator
- Parameters:
resourceURI
- The URI of the view model that should be migrated.- Throws:
ViewModelMigrationException
- in case of an error
-
-