public class DefaultDependableCoordinate extends java.lang.Object implements DependableCoordinate
@Parameter private DefaultDependableCoordinate[] dependencies;and
private DefaultDependableCoordinate dependable = new DefaultDependableCoordinate(); @Parameter( property = "groupId" ) private String groupId; @Parameter( property = "artifactId" ) private String artifactId; @Parameter( property = "version" ) private String version; @Parameter( property = "classifier" ) private String classifier; @Parameter( property = "type" ) private String type; public void setGroupId( String groupId ) { this.dependable.setGroupId( groupId ); } public void setArtifactId( String artifactId ) { this.dependable.setArtifactId( artifactId ); } public void setVersion( String version ) { this.dependable.setVersion( version ); } public void setClassifier( String classifier ) { this.dependable.setClassifier( classifier ); } public void setType( String type ) { this.dependable.setType( type ); }Note: type is not the same as extension!
ArtifactHandler
s are used to map a type to an extension.Modifier and Type | Field and Description |
---|---|
private java.lang.String |
artifactId |
private java.lang.String |
classifier |
private java.lang.String |
groupId |
private java.lang.String |
type |
private java.lang.String |
version |
Constructor and Description |
---|
DefaultDependableCoordinate() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getArtifactId() |
java.lang.String |
getClassifier() |
java.lang.String |
getGroupId() |
java.lang.String |
getType() |
java.lang.String |
getVersion()
A version or versionRange
|
void |
setArtifactId(java.lang.String artifactId) |
void |
setClassifier(java.lang.String classifier) |
void |
setGroupId(java.lang.String groupId) |
void |
setType(java.lang.String type) |
void |
setVersion(java.lang.String version) |
java.lang.String |
toString() |
private java.lang.String groupId
private java.lang.String artifactId
private java.lang.String version
private java.lang.String type
private java.lang.String classifier
public final java.lang.String getGroupId()
getGroupId
in interface DependableCoordinate
public final void setGroupId(java.lang.String groupId)
groupId
- The groupId to be set.public final java.lang.String getArtifactId()
getArtifactId
in interface DependableCoordinate
public final void setArtifactId(java.lang.String artifactId)
artifactId
- The artifactId to be set.public final java.lang.String getVersion()
DependableCoordinate
getVersion
in interface DependableCoordinate
public final void setVersion(java.lang.String version)
version
- The version to be set.public final java.lang.String getType()
getType
in interface DependableCoordinate
public void setType(java.lang.String type)
type
- The type to be set.public final java.lang.String getClassifier()
getClassifier
in interface DependableCoordinate
null
public final void setClassifier(java.lang.String classifier)
classifier
- The classifier to be set.public java.lang.String toString()
toString
in class java.lang.Object
DefaultArtifact.toString()