org.apache.ivy.core.module.descriptor
Class MDArtifact

java.lang.Object
  extended by org.apache.ivy.core.module.descriptor.AbstractArtifact
      extended by org.apache.ivy.core.module.descriptor.MDArtifact
All Implemented Interfaces:
Artifact, ExtendableItem

public class MDArtifact
extends AbstractArtifact

Author:
x.hanin

Constructor Summary
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, java.net.URL url, java.util.Map extraAttributes)
           
 
Method Summary
 void addConfiguration(java.lang.String conf)
           
 java.lang.String[] getConfigurations()
           
 java.lang.String getExt()
           
 ArtifactRevisionId getId()
           
 ModuleRevisionId getModuleRevisionId()
          Returns the resolved module revision id for this artifact
 java.lang.String getName()
           
 java.util.Date getPublicationDate()
          Returns the resolved publication date for this artifact
 java.lang.String getType()
           
 java.net.URL getUrl()
          Returns the url at which this artifact can be found independently of ivy configuration.
static Artifact newIvyArtifact(ModuleDescriptor md)
           
 
Methods inherited from class org.apache.ivy.core.module.descriptor.AbstractArtifact
equals, getAttribute, getAttributes, getExtraAttribute, getExtraAttributes, getStandardAttribute, getStandardAttributes, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MDArtifact

public MDArtifact(ModuleDescriptor md,
                  java.lang.String name,
                  java.lang.String type,
                  java.lang.String ext)

MDArtifact

public MDArtifact(ModuleDescriptor md,
                  java.lang.String name,
                  java.lang.String type,
                  java.lang.String ext,
                  java.net.URL url,
                  java.util.Map extraAttributes)
Method Detail

newIvyArtifact

public static Artifact newIvyArtifact(ModuleDescriptor md)

getModuleRevisionId

public ModuleRevisionId getModuleRevisionId()
Description copied from interface: Artifact
Returns the resolved module revision id for this artifact

Returns:

getPublicationDate

public java.util.Date getPublicationDate()
Description copied from interface: Artifact
Returns the resolved publication date for this artifact

Returns:
the resolved publication date

getId

public ArtifactRevisionId getId()
Returns:
the id of the artifact

getName

public java.lang.String getName()

getType

public java.lang.String getType()

getExt

public java.lang.String getExt()

getConfigurations

public java.lang.String[] getConfigurations()

addConfiguration

public void addConfiguration(java.lang.String conf)

getUrl

public java.net.URL getUrl()
Description copied from interface: Artifact
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