Class Versioning
java.lang.Object
org.apache.maven.artifact.repository.metadata.Versioning
- All Implemented Interfaces:
- Serializable,- Cloneable
Versioning information for "groupId/artifactId" or
 "groupId/artifactId/version" SNAPSHOT.
- Version:
- $Revision$ $Date$
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddSnapshotVersion(SnapshotVersion snapshotVersion) Method addSnapshotVersion.voidaddVersion(String string) Method addVersion.clone()Method clone.Get when the metadata was last updated (both "groupId/artifactId" and "groupId/artifactId/version" directories).Get what the last version added to the directory is, including both releases and snapshots ("groupId/artifactId" directory only).Get what the last version added to the directory is, for the releases only ("groupId/artifactId" directory only).Get the current snapshot data in use for this version ("groupId/artifactId/version" only).Method getSnapshotVersions.Method getVersions.voidremoveSnapshotVersion(SnapshotVersion snapshotVersion) Method removeSnapshotVersion.voidremoveVersion(String string) Method removeVersion.voidsetLastUpdated(String lastUpdated) Set when the metadata was last updated (both "groupId/artifactId" and "groupId/artifactId/version" directories).voidsetLastUpdatedTimestamp(Date date) voidSet what the last version added to the directory is, including both releases and snapshots ("groupId/artifactId" directory only).voidsetRelease(String release) Set what the last version added to the directory is, for the releases only ("groupId/artifactId" directory only).voidsetSnapshot(Snapshot snapshot) Set the current snapshot data in use for this version ("groupId/artifactId/version" only).voidsetSnapshotVersions(List<SnapshotVersion> snapshotVersions) Set information for each sub-artifact available in this artifact snapshot.voidsetVersions(List<String> versions) Set versions available of the artifact (both releases and snapshots) ("groupId/artifactId" directory only).void
- 
Constructor Details- 
Versioningpublic Versioning()
 
- 
- 
Method Details- 
addSnapshotVersionMethod addSnapshotVersion.- Parameters:
- snapshotVersion- a snapshotVersion object.
 
- 
addVersionMethod addVersion.- Parameters:
- string- a string object.
 
- 
cloneMethod clone.
- 
getLastUpdatedGet when the metadata was last updated (both "groupId/artifactId" and "groupId/artifactId/version" directories). The timestamp is expressed using UTC in the format yyyyMMddHHmmss.- Returns:
- String
 
- 
getLatestGet what the last version added to the directory is, including both releases and snapshots ("groupId/artifactId" directory only).- Returns:
- String
 
- 
getReleaseGet what the last version added to the directory is, for the releases only ("groupId/artifactId" directory only).- Returns:
- String
 
- 
getSnapshotGet the current snapshot data in use for this version ("groupId/artifactId/version" only).- Returns:
- Snapshot
 
- 
getSnapshotVersionsMethod getSnapshotVersions.- Returns:
- List
 
- 
getVersionsMethod getVersions.- Returns:
- List
 
- 
removeSnapshotVersionMethod removeSnapshotVersion.- Parameters:
- snapshotVersion- a snapshotVersion object.
 
- 
removeVersionMethod removeVersion.- Parameters:
- string- a string object.
 
- 
setLastUpdatedSet when the metadata was last updated (both "groupId/artifactId" and "groupId/artifactId/version" directories). The timestamp is expressed using UTC in the format yyyyMMddHHmmss.- Parameters:
- lastUpdated- a lastUpdated object.
 
- 
setLatestSet what the last version added to the directory is, including both releases and snapshots ("groupId/artifactId" directory only).- Parameters:
- latest- a latest object.
 
- 
setReleaseSet what the last version added to the directory is, for the releases only ("groupId/artifactId" directory only).- Parameters:
- release- a release object.
 
- 
setSnapshotSet the current snapshot data in use for this version ("groupId/artifactId/version" only).- Parameters:
- snapshot- a snapshot object.
 
- 
setSnapshotVersionsSet information for each sub-artifact available in this artifact snapshot. This is only the most recent SNAPSHOT for each unique extension/classifier combination.- Parameters:
- snapshotVersions- a snapshotVersions object.
 
- 
setVersionsSet versions available of the artifact (both releases and snapshots) ("groupId/artifactId" directory only).- Parameters:
- versions- a versions object.
 
- 
updateTimestamppublic void updateTimestamp()
- 
setLastUpdatedTimestamp
 
-