|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.maven.repository.AbstractArtifact
Base class from which all artifact subclasses are derived.
| Field Summary | |
protected static java.lang.String |
fs
Platform specific file separator used for file system operations. |
| Fields inherited from interface org.apache.maven.repository.Artifact |
OVERRIDE_NONE, OVERRIDE_PATH, OVERRIDE_VERSION |
| Constructor Summary | |
AbstractArtifact(org.apache.maven.project.Dependency dependency)
Default constructor. |
|
| Method Summary | |
boolean |
exists()
Boolean flag indicating whether this artifact exists. |
java.lang.String |
generatePath()
Generate the path for this artifact given its dependency attributes. |
java.lang.String |
getChecksumUrl()
Return the url to the checksum file for this artifact. |
org.apache.maven.project.Dependency |
getDependency()
Get the dependency. |
java.lang.String |
getDescription()
|
java.io.File |
getFile()
Get the location of the artifact in the local file system. |
java.lang.String |
getName()
Get the name of the artifact from the underlying dependency. |
java.lang.String |
getOverrideType()
|
java.lang.String |
getPath()
Return the path of the artifact using platform specific naming conventions. |
java.lang.String |
getUrlPath()
Return an URL path that is platform agnostic. |
boolean |
isSnapshot()
Boolean flag indicating whether this artifact is a snapshot. |
void |
setDependency(org.apache.maven.project.Dependency dependency)
Set the dependency for this JAR artifact. |
void |
setOverrideType(java.lang.String overrideType)
|
void |
setPath(java.lang.String repositoryPath)
Set the path to the artifact. |
void |
verify()
C H E C K S U M V E R I F I C A T I O N |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static final java.lang.String fs
| Constructor Detail |
public AbstractArtifact(org.apache.maven.project.Dependency dependency)
dependency - the dependency the artifact is based on| Method Detail |
public void setDependency(org.apache.maven.project.Dependency dependency)
Artifact
setDependency in interface Artifactdependency - Dependency this artifact is based on.Artifact.setDependency(org.apache.maven.project.Dependency)public org.apache.maven.project.Dependency getDependency()
Artifact
getDependency in interface ArtifactArtifact.getDependency()public void setPath(java.lang.String repositoryPath)
Artifact
setPath in interface ArtifactrepositoryPath - Path to the artifact.Artifact.setPath(java.lang.String)public java.lang.String getPath()
Artifact
getPath in interface ArtifactArtifact.getPath()public java.lang.String generatePath()
Artifact
generatePath in interface Artifactpublic java.lang.String getUrlPath()
Artifact
getUrlPath in interface ArtifactArtifact.getUrlPath()public java.lang.String getChecksumUrl()
Artifact
getChecksumUrl in interface ArtifactArtifact.getChecksumUrl()public java.lang.String getName()
getName in interface Artifactpublic boolean exists()
Artifact
exists in interface ArtifactArtifact.exists()public boolean isSnapshot()
Artifact
isSnapshot in interface ArtifactArtifact.isSnapshot()public java.io.File getFile()
Artifact
getFile in interface ArtifactArtifact.getFile()
public void verify()
throws ChecksumVerificationException
verify in interface ArtifactChecksumVerificationException - when the checksum differspublic java.lang.String getOverrideType()
getOverrideType in interface Artifactpublic void setOverrideType(java.lang.String overrideType)
setOverrideType in interface Artifactpublic java.lang.String getDescription()
getDescription in interface Artifact
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||