All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.pmckeown.dependencytrack.finding.Component Maven / Gradle / Ivy

Go to download

Maven plugin to integrate with a Dependency Track server to submit dependency manifests and gather project metrics.

There is a newer version: 1.7.0
Show newest version
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;

public class Component {

    private String uuid;
    private String name;
    private String group;
    private String version;

    @JsonCreator
    public Component(@JsonProperty("uuid") String uuid, @JsonProperty("name") String name,
             @JsonProperty("group") String group, @JsonProperty("version") String version) {
        this.uuid = uuid;
        this.name = name;
        this.group = group;
        this.version = version;
    }

    @XmlElement
    public String getUuid() {
        return uuid;
    }

    @XmlElement
    public String getName() {
        return name;
    }

    @XmlElement
    public String getGroup() {
        return group;
    }

    @XmlElement
    public String getVersion() {
        return version;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.JSON_STYLE);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy