org.apache.ivy.core.module.descriptor

Interface Artifact

public interface Artifact extends ExtendableItem

Representation of a published 'file' in the development environment. An artifact is generally a file that is produced by a project build. This is typically a jar, a war, an ear, a zip, a deb, etc.
Method Summary
String[]getConfigurations()
Returns the list of configurations where this artifact is associated to.
StringgetExt()
Retrieve the extension of the artifact.
ArtifactRevisionIdgetId()
Return the specific identifier of this artifact.
ModuleRevisionIdgetModuleRevisionId()
Returns the resolved module revision id for this artifact
StringgetName()
Return the name of the artifact, generally 'part' of the basename of the file.
DategetPublicationDate()
Returns the resolved publication date for this artifact
StringgetType()
Returns the type of the artifact, typically 'jar', 'source', 'javadoc', 'debian', ...
URLgetUrl()
Returns the url at which this artifact can be found independently of ivy configuration.
booleanisMetadata()
Returns true if this artifact represents a module metadata artifact, false if it's a published artifact

Method Detail

getConfigurations

public String[] getConfigurations()
Returns the list of configurations where this artifact is associated to.

Returns: the list of configuration this artifact is associated to. Never null.

getExt

public String getExt()
Retrieve the extension of the artifact. The extension is without dot (ie. 'jar' and not '.jar')

Returns: the extension of the artifact. Never null.

getId

public ArtifactRevisionId getId()
Return the specific identifier of this artifact.

Returns: the id of the artifact

getModuleRevisionId

public ModuleRevisionId getModuleRevisionId()
Returns the resolved module revision id for this artifact

Returns: the resolved module revision id.

getName

public String getName()
Return the name of the artifact, generally 'part' of the basename of the file.

Returns: the name of the artifact. Never null.

getPublicationDate

public Date getPublicationDate()
Returns the resolved publication date for this artifact

Returns: the resolved publication date. Never null.

getType

public String getType()
Returns the type of the artifact, typically 'jar', 'source', 'javadoc', 'debian', ...

Returns: the type of the artifact. Never null.

getUrl

public URL getUrl()
Returns the url at which this artifact can be found independently of ivy configuration. This can be null (and is usually for standard artifacts)

Returns: url at which this artifact can be found independently of ivy configuration

isMetadata

public boolean isMetadata()
Returns true if this artifact represents a module metadata artifact, false if it's a published artifact

Returns: true if this artifact represents a module metadata artifact, false if it's a published artifact