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!
ArtifactHandlers 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 DependableCoordinatepublic final void setGroupId(String groupId)
groupId - The groupId to be set.public final String getArtifactId()
getArtifactId in interface DependableCoordinatepublic final void setArtifactId(String artifactId)
artifactId - The artifactId to be set.public final String getVersion()
DependableCoordinategetVersion in interface DependableCoordinatepublic final void setVersion(String version)
version - The version to be set.public final String getType()
getType in interface DependableCoordinatepublic void setType(String type)
type - The type to be set.public final String getClassifier()
getClassifier in interface DependableCoordinatenullpublic final void setClassifier(String classifier)
classifier - The classifier to be set.public String toString()
toString in class ObjectDefaultArtifact.toString()Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.