public class MDArtifact extends AbstractArtifact
| Constructor and Description |
|---|
MDArtifact(ModuleDescriptor md,
java.lang.String name,
java.lang.String type,
java.lang.String ext) |
MDArtifact(ModuleDescriptor md,
java.lang.String name,
java.lang.String type,
java.lang.String ext,
boolean isMetadata) |
MDArtifact(ModuleDescriptor md,
java.lang.String name,
java.lang.String type,
java.lang.String ext,
java.net.URL url,
java.util.Map extraAttributes) |
| Modifier and Type | Method and Description |
|---|---|
void |
addConfiguration(java.lang.String conf) |
java.lang.String[] |
getConfigurations()
Returns the list of configurations where this artifact is associated to.
|
java.lang.String |
getExt()
Retrieve the extension of the artifact.
|
ArtifactRevisionId |
getId()
Return the specific identifier of this artifact.
|
ModuleRevisionId |
getModuleRevisionId()
Returns the resolved module revision id for this artifact
|
java.lang.String |
getName()
Return the name of the artifact, generally 'part' of the basename of the file.
|
java.util.Date |
getPublicationDate()
Returns the resolved publication date for this artifact
|
java.lang.String |
getType()
Returns the type of the artifact, typically 'jar', 'source', 'javadoc', 'debian', ...
|
java.net.URL |
getUrl()
Returns the url at which this artifact can be found independently of ivy configuration.
|
boolean |
isMetadata()
Returns true if this artifact represents a module metadata artifact, false if it's a
published artifact
|
static Artifact |
newIvyArtifact(ModuleDescriptor md) |
equals, getAttribute, getAttributes, getExtraAttribute, getExtraAttributes, getQualifiedExtraAttributes, hashCode, toStringpublic MDArtifact(ModuleDescriptor md, java.lang.String name, java.lang.String type, java.lang.String ext)
public MDArtifact(ModuleDescriptor md, java.lang.String name, java.lang.String type, java.lang.String ext, boolean isMetadata)
public MDArtifact(ModuleDescriptor md, java.lang.String name, java.lang.String type, java.lang.String ext, java.net.URL url, java.util.Map extraAttributes)
public static Artifact newIvyArtifact(ModuleDescriptor md)
public ModuleRevisionId getModuleRevisionId()
Artifactpublic java.util.Date getPublicationDate()
Artifactpublic ArtifactRevisionId getId()
Artifactpublic java.lang.String getName()
Artifactpublic java.lang.String getType()
Artifactpublic java.lang.String getExt()
Artifactpublic java.lang.String[] getConfigurations()
Artifactpublic void addConfiguration(java.lang.String conf)
public java.net.URL getUrl()
Artifactpublic boolean isMetadata()
Artifact