LATEST_VERSION, RELEASE_VERSION, SCOPE_COMPILE, SCOPE_COMPILE_PLUS_RUNTIME, SCOPE_IMPORT, SCOPE_PROVIDED, SCOPE_RUNTIME, SCOPE_RUNTIME_PLUS_SYSTEM, SCOPE_SYSTEM, SCOPE_TEST, SNAPSHOT_VERSION, VERSION_FILE_PATTERN
Constructor and Description |
---|
ArtifactStub() |
public int compareTo(Artifact artifact)
0
compareTo
in interface Comparable<Artifact>
Comparable.compareTo(java.lang.Object)
public String getGroupId()
getGroupId
in interface Artifact
public String getArtifactId()
getArtifactId
in interface Artifact
public String getVersion()
getVersion
in interface Artifact
public void setVersion(String version)
setVersion
in interface Artifact
public void setType(String type)
type
- public String getClassifier()
getClassifier
in interface Artifact
public boolean hasClassifier()
hasClassifier
in interface Artifact
public String getBaseVersion()
getBaseVersion
in interface Artifact
null
.Artifact.getBaseVersion()
public void setBaseVersion(String string)
setBaseVersion
in interface Artifact
Artifact.setBaseVersion(java.lang.String)
public String getId()
getId
in interface Artifact
null
.Artifact.getId()
public String getDependencyConflictId()
getDependencyConflictId
in interface Artifact
groupId:artifactId:type:classifier
.Artifact.getDependencyConflictId()
public void addMetadata(ArtifactMetadata artifactMetadata)
addMetadata
in interface Artifact
Artifact.addMetadata(org.apache.maven.artifact.metadata.ArtifactMetadata)
public Collection<ArtifactMetadata> getMetadataList()
getMetadataList
in interface Artifact
null
.Artifact.getMetadataList()
public void setRepository(ArtifactRepository artifactRepository)
setRepository
in interface Artifact
public ArtifactRepository getRepository()
getRepository
in interface Artifact
public void updateVersion(String string, ArtifactRepository artifactRepository)
updateVersion
in interface Artifact
Artifact.updateVersion(java.lang.String, org.apache.maven.artifact.repository.ArtifactRepository)
public String getDownloadUrl()
getDownloadUrl
in interface Artifact
null
.Artifact.getDownloadUrl()
public void setDownloadUrl(String string)
setDownloadUrl
in interface Artifact
Artifact.setDownloadUrl(java.lang.String)
public ArtifactFilter getDependencyFilter()
getDependencyFilter
in interface Artifact
null
.Artifact.getDependencyFilter()
public void setDependencyFilter(ArtifactFilter artifactFilter)
setDependencyFilter
in interface Artifact
Artifact.setDependencyFilter(org.apache.maven.artifact.resolver.filter.ArtifactFilter)
public ArtifactHandler getArtifactHandler()
getArtifactHandler
in interface Artifact
null
.Artifact.getArtifactHandler()
public List<String> getDependencyTrail()
getDependencyTrail
in interface Artifact
null
.Artifact.getDependencyTrail()
public void setDependencyTrail(List<String> list)
setDependencyTrail
in interface Artifact
Artifact.setDependencyTrail(java.util.List)
public VersionRange getVersionRange()
getVersionRange
in interface Artifact
null
.Artifact.getVersionRange()
public void setVersionRange(VersionRange versionRange)
setVersionRange
in interface Artifact
Artifact.setVersionRange(org.apache.maven.artifact.versioning.VersionRange)
public void selectVersion(String string)
selectVersion
in interface Artifact
Artifact.selectVersion(java.lang.String)
public void setGroupId(String groupId)
setGroupId
in interface Artifact
public void setArtifactId(String artifactId)
setArtifactId
in interface Artifact
public boolean isSnapshot()
isSnapshot
in interface Artifact
false
.Artifact.isSnapshot()
public void setResolved(boolean b)
setResolved
in interface Artifact
Artifact.setResolved(boolean)
public boolean isResolved()
isResolved
in interface Artifact
false
.Artifact.isResolved()
public void setResolvedVersion(String string)
setResolvedVersion
in interface Artifact
Artifact.setResolvedVersion(java.lang.String)
public void setArtifactHandler(ArtifactHandler artifactHandler)
setArtifactHandler
in interface Artifact
Artifact.setArtifactHandler(org.apache.maven.artifact.handler.ArtifactHandler)
public boolean isRelease()
isRelease
in interface Artifact
false
.Artifact.isRelease()
public void setRelease(boolean b)
setRelease
in interface Artifact
Artifact.setRelease(boolean)
public List<ArtifactVersion> getAvailableVersions()
getAvailableVersions
in interface Artifact
null
.Artifact.getAvailableVersions()
public void setAvailableVersions(List<ArtifactVersion> list)
setAvailableVersions
in interface Artifact
Artifact.setAvailableVersions(java.util.List)
public boolean isOptional()
isOptional
in interface Artifact
false
.Artifact.isOptional()
public void setOptional(boolean b)
setOptional
in interface Artifact
b
- public ArtifactVersion getSelectedVersion() throws OverConstrainedVersionException
getSelectedVersion
in interface Artifact
null
.OverConstrainedVersionException
Artifact.getSelectedVersion()
public boolean isSelectedVersionKnown() throws OverConstrainedVersionException
isSelectedVersionKnown
in interface Artifact
false
.OverConstrainedVersionException
Artifact.isSelectedVersionKnown()
public String toString()
toString
in class Object
Object.toString()
public boolean isFromAuthoritativeRepository()
public void setFromAuthoritativeRepository(boolean fromAuthoritativeRepository)
Copyright © 2008–2014 The Apache Software Foundation. All rights reserved.