Class Archive

  • Direct Known Subclasses:
    ArchiveType, ArchiveType

    public abstract class Archive
    extends java.lang.Object
    A downloadable version of a RepoPackage, corresponding to a specific version number, and optionally host OS, host bitness, JVM version or JVM bitness. Includes a complete version of the package (Archive.CompleteType), and optionally binary patches from previous revisions to this one (Archive.PatchType). Primarily a superclass for xjc-generated JAXB-compatible classes.
    • Field Detail

      • sHostConfig

        public static Archive.HostConfig sHostConfig
        See Archive.HostConfig for more details. If you ever need to override how a package is parsed, you can re-set this with a new instance, but you should be especially careful not to do so at an inappropriate time, like when a package is mid-parse.
    • Constructor Detail

      • Archive

        public Archive()
    • Method Detail

      • isCompatible

        public boolean isCompatible()
        Returns:
        true if this archive is compatible with the current system with respect to the specified host os, bit size, jvm version, and jvm bit size (if any).
      • getComplete

        @NonNull
        public abstract Archive.CompleteType getComplete()
        Returns the full zip of this package.
      • setComplete

        public void setComplete​(@NonNull
                                Archive.CompleteType complete)
        Sets the full zip of this package.
      • getHostBits

        @Nullable
        protected java.lang.Integer getHostBits()
        Returns the required host bit size (32 or 64), if any. This is just for compatibility with v1 schema, you should use getHostArch().
      • getHostArch

        @Nullable
        public java.lang.String getHostArch()
        Returns the required host architecture ("x86", "x64", or "aarch64").
      • setHostBits

        public void setHostBits​(@Nullable
                                java.lang.Integer bits)
        Sets the required host bit size (32 or 64), if any.
      • getJvmBits

        @Nullable
        public java.lang.Integer getJvmBits()
        Returns the required JVM bit size (32 or 64), if any
      • setJvmBits

        public void setJvmBits​(@Nullable
                               java.lang.Integer bits)
        Sets the required JVM bit size (32 or 64), if any.
      • getHostOs

        @Nullable
        public java.lang.String getHostOs()
        Returns the required host OS ("windows", "linux", "macosx"), if any.
      • setHostOs

        public void setHostOs​(@Nullable
                              java.lang.String os)
        Sets the required host OS ("windows", "linux", "macosx"), if any.
      • getAllPatches

        @NonNull
        public java.util.List<Archive.PatchType> getAllPatches()
        Returns all the version-to-version patches for this Archive.
      • getMinJvmVersion

        @Nullable
        public RevisionType getMinJvmVersion()
        Returns the minimum JVM version needed for this Archive, if any.
      • setMinJvmVersion

        public void setMinJvmVersion​(@Nullable
                                     RevisionType revision)
        Sets the minimum JVM version needed for this Archive, if any.