|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 onMethod Detail |
public void setDependency(org.apache.maven.project.Dependency dependency)
Artifact
setDependency
in interface Artifact
dependency
- Dependency this artifact is based on.Artifact.setDependency(org.apache.maven.project.Dependency)
public org.apache.maven.project.Dependency getDependency()
Artifact
getDependency
in interface Artifact
Artifact.getDependency()
public void setPath(java.lang.String repositoryPath)
Artifact
setPath
in interface Artifact
repositoryPath
- Path to the artifact.Artifact.setPath(java.lang.String)
public java.lang.String getPath()
Artifact
getPath
in interface Artifact
Artifact.getPath()
public java.lang.String generatePath()
Artifact
generatePath
in interface Artifact
public java.lang.String getUrlPath()
Artifact
getUrlPath
in interface Artifact
Artifact.getUrlPath()
public java.lang.String getChecksumUrl()
Artifact
getChecksumUrl
in interface Artifact
Artifact.getChecksumUrl()
public java.lang.String getName()
getName
in interface Artifact
public boolean exists()
Artifact
exists
in interface Artifact
Artifact.exists()
public boolean isSnapshot()
Artifact
isSnapshot
in interface Artifact
Artifact.isSnapshot()
public java.io.File getFile()
Artifact
getFile
in interface Artifact
Artifact.getFile()
public void verify() throws ChecksumVerificationException
verify
in interface Artifact
ChecksumVerificationException
- when the checksum differspublic java.lang.String getOverrideType()
getOverrideType
in interface Artifact
public void setOverrideType(java.lang.String overrideType)
setOverrideType
in interface Artifact
public java.lang.String getDescription()
getDescription
in interface Artifact
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |