public class Versioning extends Object implements Serializable, Cloneable
Constructor and Description |
---|
Versioning() |
Modifier and Type | Method and Description |
---|---|
void |
addSnapshotVersion(SnapshotVersion snapshotVersion)
Method addSnapshotVersion.
|
void |
addVersion(String string)
Method addVersion.
|
Versioning |
clone()
Method clone.
|
String |
getLastUpdated()
Get when the metadata was last updated.
|
String |
getLatest()
Get what the latest version in the directory is, including
snapshots.
|
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).
|
List<SnapshotVersion> |
getSnapshotVersions()
Method getSnapshotVersions.
|
List<String> |
getVersions()
Method getVersions.
|
void |
removeSnapshotVersion(SnapshotVersion snapshotVersion)
Method removeSnapshotVersion.
|
void |
removeVersion(String string)
Method removeVersion.
|
void |
setLastUpdated(String lastUpdated)
Set when the metadata was last updated.
|
void |
setLastUpdatedTimestamp(Date date) |
void |
setLatest(String latest)
Set what the latest version in the directory is, including
snapshots.
|
void |
setRelease(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(List<SnapshotVersion> snapshotVersions)
Set information for each sub-artifact available in this
artifact snapshot.
|
void |
setVersions(List<String> versions)
Set versions available of the artifact (both releases and
snapshots).
|
void |
updateTimestamp() |
public Versioning()
public void addSnapshotVersion(SnapshotVersion snapshotVersion)
snapshotVersion
- public void addVersion(String string)
string
- public Versioning clone()
public String getLastUpdated()
public String getLatest()
public String getRelease()
public Snapshot getSnapshot()
public List<SnapshotVersion> getSnapshotVersions()
public List<String> getVersions()
public void removeSnapshotVersion(SnapshotVersion snapshotVersion)
snapshotVersion
- public void removeVersion(String string)
string
- public void setLastUpdated(String lastUpdated)
lastUpdated
- public void setLatest(String latest)
latest
- public void setRelease(String release)
release
- public void setSnapshot(Snapshot snapshot)
snapshot
- public void setSnapshotVersions(List<SnapshotVersion> snapshotVersions)
snapshotVersions
- public void setVersions(List<String> versions)
versions
- public void updateTimestamp()
public void setLastUpdatedTimestamp(Date date)
Copyright © 2001–2014 The Apache Software Foundation. All rights reserved.