Interface ViewModelMigrator

  • All Known Implementing Classes:
    EdaptViewModelMigrator

    public interface ViewModelMigrator
    Author:
    Lucas Koehler
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean checkMigration​(org.eclipse.emf.common.util.URI resourceURI)
      Checks whether a view model needs to be migrated.
      void performMigration​(org.eclipse.emf.common.util.URI resourceURI)
      Migrates a view model to the latest version.
    • Method Detail

      • checkMigration

        boolean checkMigration​(org.eclipse.emf.common.util.URI resourceURI)
        Checks whether a view model needs to be migrated.
        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

        void performMigration​(org.eclipse.emf.common.util.URI resourceURI)
                       throws ViewModelMigrationException
        Migrates a view model to the latest version.
        Parameters:
        resourceURI - The URI of the view model that should be migrated.
        Throws:
        ViewModelMigrationException - in case of an error