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, toString
public 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()
Artifact
public java.util.Date getPublicationDate()
Artifact
public ArtifactRevisionId getId()
Artifact
public java.lang.String getName()
Artifact
public java.lang.String getType()
Artifact
public java.lang.String getExt()
Artifact
public java.lang.String[] getConfigurations()
Artifact
public void addConfiguration(java.lang.String conf)
public java.net.URL getUrl()
Artifact
public boolean isMetadata()
Artifact