io.github.pmckeown.dependencytrack.finding.Finding Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dependency-track-maven-plugin Show documentation
Show all versions of dependency-track-maven-plugin Show documentation
Maven plugin to integrate with a Dependency Track server to submit dependency manifests and gather project metrics.
package io.github.pmckeown.dependencytrack.finding;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
@XmlType
public class Finding {
private Component component;
private Vulnerability vulnerability;
private Analysis analysis;
@JsonCreator
public Finding(@JsonProperty("component") Component component,
@JsonProperty("vulnerability") Vulnerability vulnerability, @JsonProperty("analysis") Analysis analysis) {
this.component = component;
this.vulnerability = vulnerability;
this.analysis = analysis;
}
@XmlElement
public Component getComponent() {
return component;
}
@XmlElement
public Vulnerability getVulnerability() {
return vulnerability;
}
@XmlElement
public Analysis getAnalysis() {
return analysis;
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this, ToStringStyle.JSON_STYLE);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy