Class MDArtifact
java.lang.Object
org.apache.ivy.core.module.descriptor.AbstractArtifact
org.apache.ivy.core.module.descriptor.MDArtifact
- All Implemented Interfaces:
Artifact, ExtendableItem
-
Constructor Summary
ConstructorsConstructorDescriptionMDArtifact(ModuleDescriptor md, String name, String type, String ext) MDArtifact(ModuleDescriptor md, String name, String type, String ext, boolean isMetadata) MDArtifact(ModuleDescriptor md, String name, String type, String ext, URL url, Map<String, String> extraAttributes) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddConfiguration(String conf) String[]Returns the list of configurations where this artifact is associated to.getExt()Retrieve the extension of the artifact.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 artifactgetType()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.booleanReturns true if this artifact represents a module metadata artifact, false if it's a published artifactstatic ArtifactMethods inherited from class AbstractArtifact
equals, getAttribute, getAttributes, getExtraAttribute, getExtraAttributes, getQualifiedExtraAttributes, hashCode, toString
-
Constructor Details
-
MDArtifact
-
MDArtifact
-
MDArtifact
-
-
Method Details
-
newIvyArtifact
-
getModuleRevisionId
Description copied from interface:ArtifactReturns the resolved module revision id for this artifact- Returns:
- the resolved module revision id.
-
getPublicationDate
-
getId
Description copied from interface:ArtifactReturn the specific identifier of this artifact.- Returns:
- the id of the artifact
-
getName
-
getType
-
getExt
-
getConfigurations
-
addConfiguration
-
getUrl
-
isMetadata
public boolean isMetadata()Description copied from interface:ArtifactReturns 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
-