Package org.apache.ivy.ant
Class IvyPublish.PublishArtifact
java.lang.Object
org.apache.ivy.ant.IvyPublish.PublishArtifact
- All Implemented Interfaces:
Artifact
,ExtendableItem
,org.apache.tools.ant.DynamicAttribute
- Enclosing class:
- IvyPublish
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute
(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.Returns a Map of all attributes of this extendable item, including standard and extra ones.String[]
Returns the list of configurations where this artifact is associated to.getExt()
Retrieve the extension of the artifact.getExtraAttribute
(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)Returns a Map of all extra attributes of this extendable item.getId()
Return the specific identifier of this artifact.Returns the resolved module revision id for this artifactgetName()
Return the name of the artifact, generally 'part' of the basename of the file.Returns the resolved publication date for this artifactReturns a Map of all extra attributes of this extendable item.getType()
Returns the type of the artifact, typically 'jar', 'source', 'javadoc', 'debian', ...getUrl()
Returns the url at which this artifact can be found independently of ivy configuration.boolean
Returns true if this artifact represents a module metadata artifact, false if it's a published artifactvoid
setDynamicAttribute
(String name, String value) void
void
void
-
Constructor Details
-
PublishArtifact
public PublishArtifact()
-
-
Method Details
-
getConfigurations
Description copied from interface:Artifact
Returns the list of configurations where this artifact is associated to.- Specified by:
getConfigurations
in interfaceArtifact
- Returns:
- the list of configuration this artifact is associated to. Never null.
-
getExt
Description copied from interface:Artifact
Retrieve the extension of the artifact. The extension is without dot (ie. 'jar' and not '.jar') -
getId
Description copied from interface:Artifact
Return the specific identifier of this artifact. -
getModuleRevisionId
Description copied from interface:Artifact
Returns the resolved module revision id for this artifact- Specified by:
getModuleRevisionId
in interfaceArtifact
- Returns:
- the resolved module revision id.
-
getName
Description copied from interface:Artifact
Return the name of the artifact, generally 'part' of the basename of the file. -
getPublicationDate
Description copied from interface:Artifact
Returns the resolved publication date for this artifact- Specified by:
getPublicationDate
in interfaceArtifact
- Returns:
- the resolved publication date. Never null.
-
getType
Description copied from interface:Artifact
Returns the type of the artifact, typically 'jar', 'source', 'javadoc', 'debian', ... -
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) -
setExt
-
setName
-
setType
-
getAttribute
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 interfaceExtendableItem
- Parameters:
attName
- the name of the attribute to get- Returns:
- the value of the attribute, null if the attribute doesn't exist
-
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). Extra attributes are included in unqualified form only.- Specified by:
getAttributes
in interfaceExtendableItem
- Returns:
- A Map instance containing all the attributes and their values.
-
getExtraAttribute
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 interfaceExtendableItem
- Parameters:
attName
- the name of the extra attribute to get. This name can be either qualified or unqualified.- Returns:
- the value of the attribute, null if the attribute doesn't exist
-
getExtraAttributes
Description copied from interface:ExtendableItem
Returns a Map of all extra attributes of this extendable item. The Map keys are unqualified attribute names as Strings, and values are corresponding attribute values (as String too)- Specified by:
getExtraAttributes
in interfaceExtendableItem
- Returns:
- A Map instance containing all the extra attributes and their values.
- See Also:
-
getQualifiedExtraAttributes
Description copied from interface:ExtendableItem
Returns a Map of all extra attributes of this extendable item.The Map keys are qualified attribute names as Strings, and values are corresponding attribute values (as String too).
An attribute name is qualified with a namespace exactly the same way xml attributes are qualified. Thus qualified attribute names are of the form
prefix:name
- Specified by:
getQualifiedExtraAttributes
in interfaceExtendableItem
- Returns:
- A Map instance containing all the extra attributes and their values.
- See Also:
-
isMetadata
public boolean isMetadata()Description copied from interface:Artifact
Returns true if this artifact represents a module metadata artifact, false if it's a published artifact- Specified by:
isMetadata
in interfaceArtifact
- Returns:
- true if this artifact represents a module metadata artifact, false if it's a published artifact
-
setDynamicAttribute
- Specified by:
setDynamicAttribute
in interfaceorg.apache.tools.ant.DynamicAttribute
-