Class MavenArtifact
- java.lang.Object
- 
- org.owasp.dependencycheck.data.nexus.MavenArtifact
 
- 
- All Implemented Interfaces:
- java.io.Serializable
 
 @ThreadSafe public class MavenArtifact extends java.lang.Object implements java.io.SerializableSimple bean representing a Maven Artifact.- Author:
- colezlaw, nhenneaux
- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description MavenArtifact()Creates an empty MavenArtifact.MavenArtifact(java.lang.String groupId, java.lang.String artifactId, java.lang.String version)Creates a MavenArtifact with the given attributes.MavenArtifact(java.lang.String groupId, java.lang.String artifactId, java.lang.String version, java.lang.String url)Creates a MavenArtifact with the given attributes.MavenArtifact(java.lang.String groupId, java.lang.String artifactId, java.lang.String version, java.lang.String artifactUrl, java.lang.String pomUrl)Creates a MavenArtifact with the given attributes.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.StringderivePomUrl(java.lang.String artifactId, java.lang.String version, java.lang.String artifactUrl)Tries to determine the URL to the pom.xml.java.lang.StringgetArtifactId()Gets the artifactId.java.lang.StringgetArtifactUrl()Gets the artifactUrl.java.lang.StringgetGroupId()Gets the groupId.java.lang.StringgetPomUrl()Get the value of pomUrl.java.lang.StringgetVersion()Gets the version.voidsetArtifactId(java.lang.String artifactId)Sets the artifactId.voidsetArtifactUrl(java.lang.String artifactUrl)Sets the artifactUrl.voidsetGroupId(java.lang.String groupId)Sets the groupId.voidsetPomUrl(java.lang.String pomUrl)Set the value of pomUrl.voidsetVersion(java.lang.String version)Sets the version.java.lang.StringtoString()Returns the Artifact coordinates as a String.
 
- 
- 
- 
Constructor Detail- 
MavenArtifactpublic MavenArtifact() Creates an empty MavenArtifact.
 - 
MavenArtifactpublic MavenArtifact(java.lang.String groupId, java.lang.String artifactId, java.lang.String version)Creates a MavenArtifact with the given attributes.- Parameters:
- groupId- the groupId
- artifactId- the artifactId
- version- the version
 
 - 
MavenArtifactpublic MavenArtifact(java.lang.String groupId, java.lang.String artifactId, java.lang.String version, java.lang.String url)Creates a MavenArtifact with the given attributes.- Parameters:
- groupId- the groupId
- artifactId- the artifactId
- version- the version
- url- the artifactLink URL
 
 - 
MavenArtifactpublic MavenArtifact(java.lang.String groupId, java.lang.String artifactId, java.lang.String version, java.lang.String artifactUrl, java.lang.String pomUrl)Creates a MavenArtifact with the given attributes.- Parameters:
- groupId- the groupId
- artifactId- the artifactId
- version- the version
- artifactUrl- the artifactLink URL
- pomUrl- the pomUrl
 
 
- 
 - 
Method Detail- 
derivePomUrlpublic static java.lang.String derivePomUrl(java.lang.String artifactId, java.lang.String version, java.lang.String artifactUrl)Tries to determine the URL to the pom.xml.- Parameters:
- artifactId- the artifact id
- version- the version
- artifactUrl- the artifact URL
- Returns:
- the string representation of the URL
 
 - 
toStringpublic java.lang.String toString() Returns the Artifact coordinates as a String.- Overrides:
- toStringin class- java.lang.Object
- Returns:
- the String representation of the artifact coordinates
 
 - 
getGroupIdpublic java.lang.String getGroupId() Gets the groupId.- Returns:
- the groupId
 
 - 
setGroupIdpublic void setGroupId(java.lang.String groupId) Sets the groupId.- Parameters:
- groupId- the groupId
 
 - 
getArtifactIdpublic java.lang.String getArtifactId() Gets the artifactId.- Returns:
- the artifactId
 
 - 
setArtifactIdpublic void setArtifactId(java.lang.String artifactId) Sets the artifactId.- Parameters:
- artifactId- the artifactId
 
 - 
getVersionpublic java.lang.String getVersion() Gets the version.- Returns:
- the version
 
 - 
setVersionpublic void setVersion(java.lang.String version) Sets the version.- Parameters:
- version- the version
 
 - 
getArtifactUrlpublic java.lang.String getArtifactUrl() Gets the artifactUrl.- Returns:
- the artifactUrl
 
 - 
setArtifactUrlpublic void setArtifactUrl(java.lang.String artifactUrl) Sets the artifactUrl.- Parameters:
- artifactUrl- the artifactUrl
 
 - 
getPomUrlpublic java.lang.String getPomUrl() Get the value of pomUrl.- Returns:
- the value of pomUrl
 
 - 
setPomUrlpublic void setPomUrl(java.lang.String pomUrl) Set the value of pomUrl.- Parameters:
- pomUrl- new value of pomUrl
 
 
- 
 
-