|
||||||||||
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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 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 VersionDetails
getVersions
in class AbstractVersionDetails
includeSnapshots
- true
if snapshots are to be included.
public VersionComparator getVersionComparator()
VersionDetails
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |