Class DmrToSegmentsMigratorImpl

    • Constructor Detail

      • DmrToSegmentsMigratorImpl

        public DmrToSegmentsMigratorImpl()
    • Method Detail

      • needsMigration

        public boolean needsMigration​(org.eclipse.emf.common.util.URI resourceUri)
        Description copied from interface: DmrToSegmentsMigrator
        Checks whether a view model still contains legacy domain model references that need to be migrated to segments.
        Specified by:
        needsMigration in interface DmrToSegmentsMigrator
        Parameters:
        resourceUri - The URI of the view model that should be checked.
        Returns:
        true, if the view model requires a migration, false otherwise.
      • needsMigration

        protected boolean needsMigration​(org.eclipse.emf.ecore.resource.Resource resource)
        Checks whether a view model still contains legacy domain model references that need to be migrated to segments. The resource must be loaded before handing it into this method.
        Parameters:
        resource - The loaded resource
        Returns:
        true, if the view model requires a migration, false otherwise.