Package com._1c.g5.v8.dt.migration
Class MigrationContext
java.lang.Object
com._1c.g5.v8.dt.migration.MigrationContext
Migration context is used by migration phases to communicate between each other.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.osgi.framework.VersionGets the origin version of the project.Gets the current version of EDT project.org.osgi.framework.VersionGets the original store version of the project.voidsetProjectOriginVersion(org.osgi.framework.Version projectOriginVersion) Sets the project orgin version.voidsetProjectVersion(Version projectVersion) Sets the current project version (1C runtime compliant).voidsetStoreVersion(org.osgi.framework.Version storeVersion) Sets the original store version.
-
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
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
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.
-