public abstract class Archive
extends java.lang.Object
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.| Modifier and Type | Class and Description |
|---|---|
static class |
Archive.ArchiveFile
General parent for the actual files referenced in an archive.
|
static class |
Archive.CompleteType
Parent for xjc-generated classes containing a complete zip of this archive.
|
static class |
Archive.PatchesType
A list of
Archive.PatchTypes. |
static class |
Archive.PatchType
A binary diff from a previous package version to this one.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
OS_OVERRIDE_ENV_VAR
Environment variable used to override the detected OS.
|
| Constructor and Description |
|---|
Archive() |
| Modifier and Type | Method and Description |
|---|---|
abstract CommonFactory |
createFactory()
Create a
CommonFactory corresponding to this instance's SchemaModule.SchemaModuleVersion. |
java.util.List<Archive.PatchType> |
getAllPatches()
Gets all the version-to-version patches for this
Archive. |
abstract Archive.CompleteType |
getComplete()
Gets the full zip of this package.
|
java.lang.Integer |
getHostBits()
Gets the required host bit size (32 or 64), if any
|
java.lang.String |
getHostOs()
Gets the required host OS ("windows", "linux", "macosx"), if any.
|
java.lang.Integer |
getJvmBits()
Gets the required JVM bit size (32 or 64), if any
|
RevisionType |
getMinJvmVersion()
Gets the minimum JVM version needed for this
Archive, if any. |
Archive.PatchType |
getPatch(Revision fromRevision) |
protected Archive.PatchesType |
getPatches()
Gets the
Archive.PatchesType for this Archive. |
boolean |
isCompatible() |
void |
setComplete(Archive.CompleteType complete)
Sets the full zip of this package.
|
void |
setHostBits(java.lang.Integer bits)
Sets the required host bit size (32 or 64), if any.
|
void |
setHostOs(java.lang.String os)
Sets the required host OS ("windows", "linux", "macosx"), if any.
|
void |
setJvmBits(java.lang.Integer bits)
Sets the required JVM bit size (32 or 64), if any.
|
void |
setMinJvmVersion(RevisionType revision)
Sets the minimum JVM version needed for this
Archive, if any. |
protected void |
setPatches(Archive.PatchesType patches)
Sets the
Archive.PatchesType for this Archive. |
public static final java.lang.String OS_OVERRIDE_ENV_VAR
public boolean isCompatible()
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).@NonNull public abstract Archive.CompleteType getComplete()
public void setComplete(@NonNull
Archive.CompleteType complete)
@Nullable public java.lang.Integer getHostBits()
public void setHostBits(@Nullable
java.lang.Integer bits)
@Nullable public java.lang.Integer getJvmBits()
public void setJvmBits(@Nullable
java.lang.Integer bits)
@Nullable public java.lang.String getHostOs()
public void setHostOs(@Nullable
java.lang.String os)
@NonNull public java.util.List<Archive.PatchType> getAllPatches()
Archive.@Nullable public Archive.PatchType getPatch(Revision fromRevision)
@Nullable protected Archive.PatchesType getPatches()
Archive.PatchesType for this Archive. Probably only needed internally.protected void setPatches(@Nullable
Archive.PatchesType patches)
Archive.PatchesType for this Archive. Probably only needed internally.@Nullable public RevisionType getMinJvmVersion()
Archive, if any.public void setMinJvmVersion(@Nullable
RevisionType revision)
Archive, if any.@NonNull public abstract CommonFactory createFactory()
CommonFactory corresponding to this instance's SchemaModule.SchemaModuleVersion.