org.apache.ivy.ant
Class IvyPublish.PublishArtifact

java.lang.Object
  extended by org.apache.ivy.ant.IvyPublish.PublishArtifact
All Implemented Interfaces:
Artifact, ExtendableItem
Enclosing class:
IvyPublish

public class IvyPublish.PublishArtifact
extends java.lang.Object
implements Artifact


Constructor Summary
IvyPublish.PublishArtifact()
           
 
Method Summary
 java.lang.String getAttribute(java.lang.String attName)
          Gets the value of an attribute Can be used to access the value of a standard attribute (like organisation, revision) or of an extra attribute.
 java.util.Map getAttributes()
          Returns a Map of all attributes of this extendable item, including standard and extra ones.
 java.lang.String[] getConfigurations()
           
 java.lang.String getExt()
           
 java.lang.String getExtraAttribute(java.lang.String attName)
          Gets the value of an extra attribute Can be used only to access the value of an extra attribute, not a standard one (like organisation, revision)
 java.util.Map getExtraAttributes()
          Returns a Map of all extra attributes of this extendable item.
 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 getStandardAttribute(java.lang.String attName)
          Gets the value of a standard attribute Can be used only to access the value of a standard attribute (like organisation, revision), not an extra one
 java.util.Map getStandardAttributes()
          Returns a Map of all standard attributes of this extendable item.
 java.lang.String getType()
           
 java.net.URL getUrl()
          Returns the url at which this artifact can be found independently of ivy configuration.
 void setExt(java.lang.String ext)
           
 void setName(java.lang.String name)
           
 void setType(java.lang.String type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IvyPublish.PublishArtifact

public IvyPublish.PublishArtifact()
Method Detail

getConfigurations

public java.lang.String[] getConfigurations()
Specified by:
getConfigurations in interface Artifact

getExt

public java.lang.String getExt()
Specified by:
getExt in interface Artifact

getId

public ArtifactRevisionId getId()
Specified by:
getId in interface Artifact
Returns:
the id of the artifact

getModuleRevisionId

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

Specified by:
getModuleRevisionId in interface Artifact
Returns:

getName

public java.lang.String getName()
Specified by:
getName in interface Artifact

getPublicationDate

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

Specified by:
getPublicationDate in interface Artifact
Returns:
the resolved publication date

getType

public java.lang.String getType()
Specified by:
getType in interface Artifact

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)

Specified by:
getUrl in interface Artifact
Returns:
url at which this artifact can be found independently of ivy configuration

setExt

public void setExt(java.lang.String ext)

setName

public void setName(java.lang.String name)

setType

public void setType(java.lang.String type)

getAttribute

public java.lang.String getAttribute(java.lang.String attName)
Description copied from interface: ExtendableItem
Gets the value of an attribute Can be used to access the value of a standard attribute (like organisation, revision) or of an extra attribute.

Specified by:
getAttribute in interface ExtendableItem
Parameters:
attName - the name of the attribute to get
Returns:
the value of the attribute, null if the attribute doesn't exist

getAttributes

public java.util.Map getAttributes()
Description copied from interface: ExtendableItem
Returns a Map of all attributes of this extendable item, including standard and extra ones. The Map keys are attribute names as Strings, and values are corresponding attribute values (as String too)

Specified by:
getAttributes in interface ExtendableItem
Returns:

getExtraAttribute

public java.lang.String getExtraAttribute(java.lang.String attName)
Description copied from interface: ExtendableItem
Gets the value of an extra attribute Can be used only to access the value of an extra attribute, not a standard one (like organisation, revision)

Specified by:
getExtraAttribute in interface ExtendableItem
Parameters:
attName - the name of the extra attribute to get
Returns:
the value of the attribute, null if the attribute doesn't exist

getExtraAttributes

public java.util.Map getExtraAttributes()
Description copied from interface: ExtendableItem
Returns a Map of all extra attributes of this extendable item. The Map keys are attribute names as Strings, and values are corresponding attribute values (as String too)

Specified by:
getExtraAttributes in interface ExtendableItem
Returns:

getStandardAttribute

public java.lang.String getStandardAttribute(java.lang.String attName)
Description copied from interface: ExtendableItem
Gets the value of a standard attribute Can be used only to access the value of a standard attribute (like organisation, revision), not an extra one

Specified by:
getStandardAttribute in interface ExtendableItem
Parameters:
attName - the name of the standard attribute to get
Returns:
the value of the attribute, null if the attribute doesn't exist

getStandardAttributes

public java.util.Map getStandardAttributes()
Description copied from interface: ExtendableItem
Returns a Map of all standard attributes of this extendable item. The Map keys are attribute names as Strings, and values are corresponding attribute values (as String too)

Specified by:
getStandardAttributes in interface ExtendableItem
Returns: