public class MavenArtifact
extends java.lang.Object
Constructor and Description |
---|
MavenArtifact(java.lang.String groupId,
java.lang.String artifactId,
java.lang.String packaging,
java.lang.String version) |
MavenArtifact(java.lang.String groupId,
java.lang.String artifactId,
java.lang.String packaging,
java.lang.String classifier,
java.lang.String version) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
static MavenArtifact |
fromCoordinate(java.lang.String coordinate) |
java.lang.String |
getArtifactId() |
java.lang.String |
getClassifier() |
java.lang.String |
getClassifierFileNameMarker() |
java.lang.String |
getCoordinate()
returns a "groupId:artifactId:version:(classifier:)packaging" string
which maven refers to as the co-ordinate
|
java.lang.String |
getCustomFileNameAfterArtifactMarker() |
java.lang.String |
getExtension()
returns an extension, defaulting to
packaging if one cannot be inferred |
java.lang.String |
getFilename() |
java.lang.String |
getGroupId() |
java.lang.String |
getPackaging() |
java.lang.String |
getVersion() |
int |
hashCode() |
boolean |
isSnapshot() |
void |
setClassifierFileNameMarker(java.lang.String classifierFileNameMarker) |
void |
setCustomFileNameAfterArtifactMarker(java.lang.String customFileNameMarker) |
java.lang.String |
toString() |
public MavenArtifact(java.lang.String groupId, java.lang.String artifactId, java.lang.String packaging, java.lang.String classifier, java.lang.String version)
public MavenArtifact(java.lang.String groupId, java.lang.String artifactId, java.lang.String packaging, java.lang.String version)
public static MavenArtifact fromCoordinate(java.lang.String coordinate)
public java.lang.String getGroupId()
public java.lang.String getArtifactId()
public java.lang.String getVersion()
@Nullable public java.lang.String getClassifier()
public java.lang.String getPackaging()
public boolean isSnapshot()
public java.lang.String getCustomFileNameAfterArtifactMarker()
customFileNameAfterArtifactMarker
public void setCustomFileNameAfterArtifactMarker(java.lang.String customFileNameMarker)
customFileNameAfterArtifactMarker
public java.lang.String getClassifierFileNameMarker()
public void setClassifierFileNameMarker(java.lang.String classifierFileNameMarker)
public java.lang.String getCoordinate()
public java.lang.String getFilename()
@Nullable public java.lang.String getExtension()
packaging
if one cannot be inferredpublic java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object