Interface StringViewModelMigrator
-
- All Known Implementing Classes:
EdaptViewModelMigrator
public interface StringViewModelMigrator
A String View Model Migrator may migrate view models which are available in memory as a string representation.- Since:
- 1.8
- Author:
- Johannes Faltermeier
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
checkMigration(java.lang.String serializedViewModel)
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.
-
-
-
Method Detail
-
checkMigration
boolean checkMigration(java.lang.String serializedViewModel)
Checks whether a view model needs to be migrated.- Parameters:
serializedViewModel
- the view model that should be checked- Returns:
- true, if the view model does not require a migration, false otherwise.
-
performMigration
java.lang.String performMigration(java.lang.String serializedViewModel) throws ViewModelMigrationException
Migrates a view model to the latest version.- Parameters:
serializedViewModel
- the view model that should be checked- Returns:
- the migrated string
- Throws:
ViewModelMigrationException
- in case of an error
-
-