|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.mojo.versions.api.AbstractVersionDetails
org.codehaus.mojo.versions.api.ArtifactVersions
public class ArtifactVersions
Holds the results of a search for versions of an artifact.
| Constructor Summary | |
|---|---|
ArtifactVersions(org.apache.maven.artifact.Artifact artifact,
List versions,
VersionComparator versionComparator)
Creates a new ArtifactVersions instance. |
|
| Method Summary | |
|---|---|
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 -! syntax
to rule out any qualifiers from range boundaries). |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ArtifactVersions(org.apache.maven.artifact.Artifact artifact,
List versions,
VersionComparator versionComparator)
ArtifactVersions instance.
artifact - The artifact.versions - The versions.versionComparator - The version comparison rule.| Method Detail |
|---|
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)
VersionDetails
getVersions in interface VersionDetailsgetVersions in class AbstractVersionDetailsincludeSnapshots - true if snapshots are to be included.
public VersionComparator getVersionComparator()
VersionDetails
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||