Class MigrationContext

java.lang.Object
com._1c.g5.v8.dt.migration.MigrationContext

public class MigrationContext extends Object
Migration context is used by migration phases to communicate between each other.
  • Constructor Details

    • MigrationContext

      public MigrationContext()
  • Method Details

    • getProjectOriginVersion

      public org.osgi.framework.Version getProjectOriginVersion()
      Gets the origin version of the project.
      Returns:
      The version of the product being used to create this particular project.
    • getProjectVersion

      public Version getProjectVersion()
      Gets the current version of EDT project.
      Returns:
      The version of the EDT project.
    • getStoreVersion

      public org.osgi.framework.Version getStoreVersion()
      Gets the original store version of the project.
      Returns:
      The original store version of the project (as it was before the migration).
    • setProjectOriginVersion

      public void setProjectOriginVersion(org.osgi.framework.Version projectOriginVersion)
      Sets the project orgin version.
      Parameters:
      projectOriginVersion - The version of the product being used to create this particular project. Cannot be null.
    • setProjectVersion

      public void setProjectVersion(Version projectVersion)
      Sets the current project version (1C runtime compliant).
      Parameters:
      projectVersion - The version of the project to set. Cannot be null.
    • setStoreVersion

      public void setStoreVersion(org.osgi.framework.Version storeVersion)
      Sets the original store version.
      Parameters:
      storeVersion - The original version of the store extracted from the migrated project manifest. Cannot be null.