public class Versioning
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
lastUpdated
When the metadata was last updated.
|
private java.lang.String |
latest
What the latest version in the directory is, including
snapshots.
|
private java.lang.String |
release
What the latest version in the directory is, of the releases
only.
|
private Snapshot |
snapshot
The current snapshot data in use for this version (artifact
snapshots only).
|
private java.util.List<SnapshotVersion> |
snapshotVersions
Field snapshotVersions.
|
private java.util.List<java.lang.String> |
versions
Field versions.
|
Constructor and Description |
---|
Versioning() |
Modifier and Type | Method and Description |
---|---|
void |
addSnapshotVersion(SnapshotVersion snapshotVersion)
Method addSnapshotVersion.
|
void |
addVersion(java.lang.String string)
Method addVersion.
|
Versioning |
clone()
Method clone.
|
java.lang.String |
getLastUpdated()
Get when the metadata was last updated.
|
java.lang.String |
getLatest()
Get what the latest version in the directory is, including
snapshots.
|
java.lang.String |
getRelease()
Get what the latest version in the directory is, of the
releases only.
|
Snapshot |
getSnapshot()
Get the current snapshot data in use for this version
(artifact snapshots only).
|
java.util.List<SnapshotVersion> |
getSnapshotVersions()
Method getSnapshotVersions.
|
java.util.List<java.lang.String> |
getVersions()
Method getVersions.
|
void |
removeSnapshotVersion(SnapshotVersion snapshotVersion)
Method removeSnapshotVersion.
|
void |
removeVersion(java.lang.String string)
Method removeVersion.
|
void |
setLastUpdated(java.lang.String lastUpdated)
Set when the metadata was last updated.
|
void |
setLastUpdatedTimestamp(java.util.Date date) |
void |
setLatest(java.lang.String latest)
Set what the latest version in the directory is, including
snapshots.
|
void |
setRelease(java.lang.String release)
Set what the latest version in the directory is, of the
releases only.
|
void |
setSnapshot(Snapshot snapshot)
Set the current snapshot data in use for this version
(artifact snapshots only).
|
void |
setSnapshotVersions(java.util.List<SnapshotVersion> snapshotVersions)
Set information for each sub-artifact available in this
artifact snapshot.
|
void |
setVersions(java.util.List<java.lang.String> versions)
Set versions available of the artifact (both releases and
snapshots).
|
void |
updateTimestamp() |
private java.lang.String latest
private java.lang.String release
private Snapshot snapshot
private java.util.List<java.lang.String> versions
private java.lang.String lastUpdated
private java.util.List<SnapshotVersion> snapshotVersions
public void addSnapshotVersion(SnapshotVersion snapshotVersion)
snapshotVersion
- public void addVersion(java.lang.String string)
string
- public Versioning clone()
clone
in class java.lang.Object
public java.lang.String getLastUpdated()
public java.lang.String getLatest()
public java.lang.String getRelease()
public Snapshot getSnapshot()
public java.util.List<SnapshotVersion> getSnapshotVersions()
public java.util.List<java.lang.String> getVersions()
public void removeSnapshotVersion(SnapshotVersion snapshotVersion)
snapshotVersion
- public void removeVersion(java.lang.String string)
string
- public void setLastUpdated(java.lang.String lastUpdated)
lastUpdated
- public void setLatest(java.lang.String latest)
latest
- public void setRelease(java.lang.String release)
release
- public void setSnapshot(Snapshot snapshot)
snapshot
- public void setSnapshotVersions(java.util.List<SnapshotVersion> snapshotVersions)
snapshotVersions
- public void setVersions(java.util.List<java.lang.String> versions)
versions
- public void updateTimestamp()
public void setLastUpdatedTimestamp(java.util.Date date)