public class ArtifactVersions extends AbstractVersionDetails
| Constructor and Description |
|---|
ArtifactVersions(org.apache.maven.artifact.Artifact artifact,
List<org.apache.maven.artifact.versioning.ArtifactVersion> versions,
VersionComparator versionComparator)
Creates a new
ArtifactVersions instance. |
| Modifier and Type | Method and Description |
|---|---|
org.apache.maven.artifact.Artifact |
getArtifact()
Returns the artifact who's version information we are holding.
|
String |
getArtifactId()
Returns the artifactId of the artifact who's versions we are holding.
|
String |
getGroupId()
Returns the groupId of the artifact who's versions we are holding.
|
VersionComparator |
getVersionComparator()
Gets the rule for version comparison of this artifact.
|
org.apache.maven.artifact.versioning.ArtifactVersion[] |
getVersions(boolean includeSnapshots)
Returns all available versions in increasing order.
|
static boolean |
isVersionInRange(org.apache.maven.artifact.versioning.ArtifactVersion version,
org.apache.maven.artifact.versioning.VersionRange range)
Checks if the version is in the range (and ensures that the range respects the
-! |
String |
toString() |
containsVersion, getAllUpdates, getAllUpdates, getAllUpdates, getAllUpdates, getAllUpdates, getAllUpdates, getAllUpdates, getAllUpdates, getCurrentVersion, getNewerVersions, getNewerVersions, getNewestUpdate, getNewestUpdate, getNewestUpdate, getNewestUpdate, getNewestUpdate, getNewestUpdate, getNewestUpdate, getNewestUpdate, getNewestVersion, getNewestVersion, getNewestVersion, getNewestVersion, getNewestVersion, getOldestUpdate, getOldestUpdate, getOldestUpdate, getOldestUpdate, getOldestUpdate, getOldestUpdate, getOldestUpdate, getOldestUpdate, getOldestVersion, getOldestVersion, getOldestVersion, getOldestVersion, getOldestVersion, getVersions, getVersions, getVersions, getVersions, getVersions, getVersions, isCurrentVersionDefined, isIncludeSnapshots, setCurrentVersion, setCurrentVersion, setIncludeSnapshotspublic ArtifactVersions(org.apache.maven.artifact.Artifact artifact,
List<org.apache.maven.artifact.versioning.ArtifactVersion> versions,
VersionComparator versionComparator)
ArtifactVersions instance.artifact - The artifact.versions - The versions.versionComparator - The version comparison rule.public static boolean isVersionInRange(org.apache.maven.artifact.versioning.ArtifactVersion version,
org.apache.maven.artifact.versioning.VersionRange range)
-! syntax
to rule out any qualifiers from range boundaries).version - the version to check.range - the range to check.true if and only if the version is in the range.public org.apache.maven.artifact.Artifact getArtifact()
public String getGroupId()
public String getArtifactId()
public org.apache.maven.artifact.versioning.ArtifactVersion[] getVersions(boolean includeSnapshots)
VersionDetailsgetVersions in interface VersionDetailsgetVersions in class AbstractVersionDetailsincludeSnapshots - true if snapshots are to be included.public VersionComparator getVersionComparator()
VersionDetailsCopyright © 2008-2014. All Rights Reserved.