org.apache.maven.plugin.gpg
Class AttachedSignedArtifact

java.lang.Object
  extended by org.apache.maven.plugin.gpg.AttachedSignedArtifact
All Implemented Interfaces:
java.lang.Comparable, org.apache.maven.artifact.Artifact

public class AttachedSignedArtifact
extends java.lang.Object
implements org.apache.maven.artifact.Artifact

A wrapper class for attached artifacts which have a GPG signature. Needed as attached artifacts in general do not have metadata.


Field Summary
 
Fields inherited from interface org.apache.maven.artifact.Artifact
LATEST_VERSION, RELEASE_VERSION, SCOPE_COMPILE, SCOPE_PROVIDED, SCOPE_RUNTIME, SCOPE_SYSTEM, SCOPE_TEST, SNAPSHOT_VERSION, VERSION_FILE_PATTERN
 
Constructor Summary
AttachedSignedArtifact(org.apache.maven.artifact.Artifact delegate, AscArtifactMetadata signature)
           
 
Method Summary
 void addMetadata(org.apache.maven.artifact.metadata.ArtifactMetadata metadata)
           
 int compareTo(java.lang.Object o)
           
 boolean equals(java.lang.Object o)
           
 org.apache.maven.artifact.handler.ArtifactHandler getArtifactHandler()
           
 java.lang.String getArtifactId()
           
 java.util.List getAvailableVersions()
           
 java.lang.String getBaseVersion()
           
 java.lang.String getClassifier()
           
 java.lang.String getDependencyConflictId()
           
 org.apache.maven.artifact.resolver.filter.ArtifactFilter getDependencyFilter()
           
 java.util.List getDependencyTrail()
           
 java.lang.String getDownloadUrl()
           
 java.io.File getFile()
           
 java.lang.String getGroupId()
           
 java.lang.String getId()
           
 java.util.Collection getMetadataList()
           
 org.apache.maven.artifact.repository.ArtifactRepository getRepository()
           
 java.lang.String getScope()
           
 org.apache.maven.artifact.versioning.ArtifactVersion getSelectedVersion()
           
 java.lang.String getType()
           
 java.lang.String getVersion()
           
 org.apache.maven.artifact.versioning.VersionRange getVersionRange()
           
 boolean hasClassifier()
           
 int hashCode()
           
 boolean isOptional()
           
 boolean isRelease()
           
 boolean isResolved()
           
 boolean isSelectedVersionKnown()
           
 boolean isSnapshot()
           
 void selectVersion(java.lang.String version)
           
 void setArtifactHandler(org.apache.maven.artifact.handler.ArtifactHandler artifactHandler)
           
 void setArtifactId(java.lang.String artifactId)
           
 void setAvailableVersions(java.util.List availableVersions)
           
 void setBaseVersion(java.lang.String baseVersion)
           
 void setDependencyFilter(org.apache.maven.artifact.resolver.filter.ArtifactFilter artifactFilter)
           
 void setDependencyTrail(java.util.List dependencyTrail)
           
 void setDownloadUrl(java.lang.String downloadUrl)
           
 void setFile(java.io.File file)
           
 void setGroupId(java.lang.String groupId)
           
 void setOptional(boolean optional)
           
 void setRelease(boolean release)
           
 void setRepository(org.apache.maven.artifact.repository.ArtifactRepository repository)
           
 void setResolved(boolean resolved)
           
 void setResolvedVersion(java.lang.String version)
           
 void setScope(java.lang.String scope)
           
 void setVersion(java.lang.String version)
           
 void setVersionRange(org.apache.maven.artifact.versioning.VersionRange range)
           
 java.lang.String toString()
           
 void updateVersion(java.lang.String version, org.apache.maven.artifact.repository.ArtifactRepository localRepository)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AttachedSignedArtifact

public AttachedSignedArtifact(org.apache.maven.artifact.Artifact delegate,
                              AscArtifactMetadata signature)
Method Detail

setArtifactId

public void setArtifactId(java.lang.String artifactId)
Specified by:
setArtifactId in interface org.apache.maven.artifact.Artifact

getAvailableVersions

public java.util.List getAvailableVersions()
Specified by:
getAvailableVersions in interface org.apache.maven.artifact.Artifact

setAvailableVersions

public void setAvailableVersions(java.util.List availableVersions)
Specified by:
setAvailableVersions in interface org.apache.maven.artifact.Artifact

getBaseVersion

public java.lang.String getBaseVersion()
Specified by:
getBaseVersion in interface org.apache.maven.artifact.Artifact

setBaseVersion

public void setBaseVersion(java.lang.String baseVersion)
Specified by:
setBaseVersion in interface org.apache.maven.artifact.Artifact

getDownloadUrl

public java.lang.String getDownloadUrl()
Specified by:
getDownloadUrl in interface org.apache.maven.artifact.Artifact

setDownloadUrl

public void setDownloadUrl(java.lang.String downloadUrl)
Specified by:
setDownloadUrl in interface org.apache.maven.artifact.Artifact

setGroupId

public void setGroupId(java.lang.String groupId)
Specified by:
setGroupId in interface org.apache.maven.artifact.Artifact

getRepository

public org.apache.maven.artifact.repository.ArtifactRepository getRepository()
Specified by:
getRepository in interface org.apache.maven.artifact.Artifact

setRepository

public void setRepository(org.apache.maven.artifact.repository.ArtifactRepository repository)
Specified by:
setRepository in interface org.apache.maven.artifact.Artifact

getScope

public java.lang.String getScope()
Specified by:
getScope in interface org.apache.maven.artifact.Artifact

setScope

public void setScope(java.lang.String scope)
Specified by:
setScope in interface org.apache.maven.artifact.Artifact

getVersion

public java.lang.String getVersion()
Specified by:
getVersion in interface org.apache.maven.artifact.Artifact

setVersion

public void setVersion(java.lang.String version)
Specified by:
setVersion in interface org.apache.maven.artifact.Artifact

getVersionRange

public org.apache.maven.artifact.versioning.VersionRange getVersionRange()
Specified by:
getVersionRange in interface org.apache.maven.artifact.Artifact

setVersionRange

public void setVersionRange(org.apache.maven.artifact.versioning.VersionRange range)
Specified by:
setVersionRange in interface org.apache.maven.artifact.Artifact

isRelease

public boolean isRelease()
Specified by:
isRelease in interface org.apache.maven.artifact.Artifact

setRelease

public void setRelease(boolean release)
Specified by:
setRelease in interface org.apache.maven.artifact.Artifact

isSnapshot

public boolean isSnapshot()
Specified by:
isSnapshot in interface org.apache.maven.artifact.Artifact

addMetadata

public void addMetadata(org.apache.maven.artifact.metadata.ArtifactMetadata metadata)
Specified by:
addMetadata in interface org.apache.maven.artifact.Artifact

getClassifier

public java.lang.String getClassifier()
Specified by:
getClassifier in interface org.apache.maven.artifact.Artifact

hasClassifier

public boolean hasClassifier()
Specified by:
hasClassifier in interface org.apache.maven.artifact.Artifact

getGroupId

public java.lang.String getGroupId()
Specified by:
getGroupId in interface org.apache.maven.artifact.Artifact

getArtifactId

public java.lang.String getArtifactId()
Specified by:
getArtifactId in interface org.apache.maven.artifact.Artifact

getType

public java.lang.String getType()
Specified by:
getType in interface org.apache.maven.artifact.Artifact

setFile

public void setFile(java.io.File file)
Specified by:
setFile in interface org.apache.maven.artifact.Artifact

getFile

public java.io.File getFile()
Specified by:
getFile in interface org.apache.maven.artifact.Artifact

getId

public java.lang.String getId()
Specified by:
getId in interface org.apache.maven.artifact.Artifact

getDependencyConflictId

public java.lang.String getDependencyConflictId()
Specified by:
getDependencyConflictId in interface org.apache.maven.artifact.Artifact

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable

updateVersion

public void updateVersion(java.lang.String version,
                          org.apache.maven.artifact.repository.ArtifactRepository localRepository)
Specified by:
updateVersion in interface org.apache.maven.artifact.Artifact

getDependencyFilter

public org.apache.maven.artifact.resolver.filter.ArtifactFilter getDependencyFilter()
Specified by:
getDependencyFilter in interface org.apache.maven.artifact.Artifact

setDependencyFilter

public void setDependencyFilter(org.apache.maven.artifact.resolver.filter.ArtifactFilter artifactFilter)
Specified by:
setDependencyFilter in interface org.apache.maven.artifact.Artifact

getArtifactHandler

public org.apache.maven.artifact.handler.ArtifactHandler getArtifactHandler()
Specified by:
getArtifactHandler in interface org.apache.maven.artifact.Artifact

getDependencyTrail

public java.util.List getDependencyTrail()
Specified by:
getDependencyTrail in interface org.apache.maven.artifact.Artifact

setDependencyTrail

public void setDependencyTrail(java.util.List dependencyTrail)
Specified by:
setDependencyTrail in interface org.apache.maven.artifact.Artifact

selectVersion

public void selectVersion(java.lang.String version)
Specified by:
selectVersion in interface org.apache.maven.artifact.Artifact

setResolved

public void setResolved(boolean resolved)
Specified by:
setResolved in interface org.apache.maven.artifact.Artifact

isResolved

public boolean isResolved()
Specified by:
isResolved in interface org.apache.maven.artifact.Artifact

setResolvedVersion

public void setResolvedVersion(java.lang.String version)
Specified by:
setResolvedVersion in interface org.apache.maven.artifact.Artifact

setArtifactHandler

public void setArtifactHandler(org.apache.maven.artifact.handler.ArtifactHandler artifactHandler)
Specified by:
setArtifactHandler in interface org.apache.maven.artifact.Artifact

isOptional

public boolean isOptional()
Specified by:
isOptional in interface org.apache.maven.artifact.Artifact

getSelectedVersion

public org.apache.maven.artifact.versioning.ArtifactVersion getSelectedVersion()
                                                                        throws org.apache.maven.artifact.versioning.OverConstrainedVersionException
Specified by:
getSelectedVersion in interface org.apache.maven.artifact.Artifact
Throws:
org.apache.maven.artifact.versioning.OverConstrainedVersionException

isSelectedVersionKnown

public boolean isSelectedVersionKnown()
                               throws org.apache.maven.artifact.versioning.OverConstrainedVersionException
Specified by:
isSelectedVersionKnown in interface org.apache.maven.artifact.Artifact
Throws:
org.apache.maven.artifact.versioning.OverConstrainedVersionException

setOptional

public void setOptional(boolean optional)
Specified by:
setOptional in interface org.apache.maven.artifact.Artifact

getMetadataList

public java.util.Collection getMetadataList()
Specified by:
getMetadataList in interface org.apache.maven.artifact.Artifact


Copyright © 2002-2012 Apache Software Foundation. All Rights Reserved.