public class DefaultDependableCoordinate extends 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.Constructor and Description |
---|
DefaultDependableCoordinate() |
Modifier and Type | Method and Description |
---|---|
String |
getArtifactId() |
String |
getClassifier() |
String |
getGroupId() |
String |
getType() |
String |
getVersion()
A version or versionRange
|
void |
setArtifactId(String artifactId) |
void |
setClassifier(String classifier) |
void |
setGroupId(String groupId) |
void |
setType(String type) |
void |
setVersion(String version) |
String |
toString() |
public final String getGroupId()
getGroupId
in interface DependableCoordinate
public final void setGroupId(String groupId)
public final String getArtifactId()
getArtifactId
in interface DependableCoordinate
public final void setArtifactId(String artifactId)
public final String getVersion()
DependableCoordinate
getVersion
in interface DependableCoordinate
public final void setVersion(String version)
public final String getType()
getType
in interface DependableCoordinate
public void setType(String type)
public final String getClassifier()
getClassifier
in interface DependableCoordinate
null
public final void setClassifier(String classifier)
public String toString()
toString
in class Object
DefaultArtifact.toString()
Copyright © 2002–2016 The Apache Software Foundation. All rights reserved.