Class Versioning
java.lang.Object
org.apache.maven.artifact.repository.metadata.Versioning
- All Implemented Interfaces:
Serializable
,Cloneable
Versioning information for an artifact (un-versioned or
snapshot).
- Version:
- $Revision$ $Date$
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
When the metadata was last updated.private String
What the latest version in the directory is, including snapshots.private String
What the latest version in the directory is, of the releases only.private Snapshot
The current snapshot data in use for this version (artifact snapshots only).private List<SnapshotVersion>
Field snapshotVersions.Field versions. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addSnapshotVersion
(SnapshotVersion snapshotVersion) Method addSnapshotVersion.void
addVersion
(String string) Method addVersion.clone()
Method clone.Get when the metadata was last updated.Get what the latest version in the directory is, including snapshots.Get what the latest version in the directory is, of the releases only.Get the current snapshot data in use for this version (artifact snapshots only).Method getSnapshotVersions.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
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
-
Field Details
-
latest
What the latest version in the directory is, including snapshots. -
release
What the latest version in the directory is, of the releases only. -
snapshot
The current snapshot data in use for this version (artifact snapshots only). -
versions
Field versions. -
lastUpdated
When the metadata was last updated. -
snapshotVersions
Field snapshotVersions.
-
-
Constructor Details
-
Versioning
public Versioning()
-
-
Method Details
-
addSnapshotVersion
Method addSnapshotVersion.- Parameters:
snapshotVersion
-
-
addVersion
Method addVersion.- Parameters:
string
-
-
clone
Method clone. -
getLastUpdated
Get when the metadata was last updated.- Returns:
- String
-
getLatest
Get what the latest version in the directory is, including snapshots.- Returns:
- String
-
getRelease
Get what the latest version in the directory is, of the releases only.- Returns:
- String
-
getSnapshot
Get the current snapshot data in use for this version (artifact snapshots only).- Returns:
- Snapshot
-
getSnapshotVersions
Method getSnapshotVersions.- Returns:
- List
-
getVersions
Method getVersions.- Returns:
- List
-
removeSnapshotVersion
Method removeSnapshotVersion.- Parameters:
snapshotVersion
-
-
removeVersion
Method removeVersion.- Parameters:
string
-
-
setLastUpdated
Set when the metadata was last updated.- Parameters:
lastUpdated
-
-
setLatest
Set what the latest version in the directory is, including snapshots.- Parameters:
latest
-
-
setRelease
Set what the latest version in the directory is, of the releases only.- Parameters:
release
-
-
setSnapshot
Set the current snapshot data in use for this version (artifact snapshots only).- Parameters:
snapshot
-
-
setSnapshotVersions
Set information for each sub-artifact available in this artifact snapshot.- Parameters:
snapshotVersions
-
-
setVersions
Set versions available of the artifact (both releases and snapshots).- Parameters:
versions
-
-
updateTimestamp
public void updateTimestamp() -
setLastUpdatedTimestamp
-