Class Version


  • public class Version
    extends Object
    The version correspond to a JAR version that is required by some package. An update version is defined by the JAR version, a relative path to the JAR file and a list of packages requiring this version. The path points to a copy of the JAR version in the update manager storage. (thus the path is relative to the update manager root) Let say you install a package pkg1 that requires the version 1.0 for the jar X. If this version is not yet provided by another package a new version will be created and the jar file copied in the update manager storage under the destination 'path' (e.g. bundles/X-1.0.jar).
    Author:
    Bogdan Stefanescu
    • Field Detail

      • version

        protected String version
        The version name (including classifier)
      • path

        protected String path
        The path of the backup file
    • Constructor Detail

      • Version

        public Version​(String version)
    • Method Detail

      • hasPackage

        public boolean hasPackage​(String pkgId)
      • removePackage

        public boolean removePackage​(String pkgId)
      • hasPackages

        public boolean hasPackages()
      • getPath

        public final String getPath()
      • setPath

        public final void setPath​(String path)
      • getVersion

        public final String getVersion()
      • getFileVersion

        public final FileVersion getFileVersion()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object