org.kuali.maven.plugins.graph.dot
Class DefaultArtifact

java.lang.Object
  extended by org.kuali.maven.plugins.graph.dot.DefaultArtifact
All Implemented Interfaces:
Comparable, org.apache.maven.artifact.Artifact

public class DefaultArtifact
extends Object
implements org.apache.maven.artifact.Artifact


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

Constructor Detail

DefaultArtifact

public DefaultArtifact()
Method Detail

getGroupId

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

setGroupId

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

getArtifactId

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

setArtifactId

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

getClassifier

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

setClassifier

public void setClassifier(String classifier)

getVersion

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

setVersion

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

getType

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

setType

public void setType(String type)

getScope

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

setScope

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

compareTo

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

hasClassifier

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

getFile

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

setFile

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

getBaseVersion

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

setBaseVersion

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

getId

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

getDependencyConflictId

public String getDependencyConflictId()
Specified by:
getDependencyConflictId 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

getMetadataList

public Collection<?> getMetadataList()
Specified by:
getMetadataList in interface org.apache.maven.artifact.Artifact

setRepository

public void setRepository(org.apache.maven.artifact.repository.ArtifactRepository remoteRepository)
Specified by:
setRepository 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

updateVersion

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

getDownloadUrl

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

setDownloadUrl

public void setDownloadUrl(String downloadUrl)
Specified by:
setDownloadUrl 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 List<?> getDependencyTrail()
Specified by:
getDependencyTrail in interface org.apache.maven.artifact.Artifact

setDependencyTrail

public void setDependencyTrail(List dependencyTrail)
Specified by:
setDependencyTrail 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 newRange)
Specified by:
setVersionRange in interface org.apache.maven.artifact.Artifact

selectVersion

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

isSnapshot

public boolean isSnapshot()
Specified by:
isSnapshot 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(String version)
Specified by:
setResolvedVersion in interface org.apache.maven.artifact.Artifact

setArtifactHandler

public void setArtifactHandler(org.apache.maven.artifact.handler.ArtifactHandler handler)
Specified by:
setArtifactHandler 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

getAvailableVersions

public List<?> getAvailableVersions()
Specified by:
getAvailableVersions in interface org.apache.maven.artifact.Artifact

setAvailableVersions

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

isOptional

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

setOptional

public void setOptional(boolean optional)
Specified by:
setOptional 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


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.