io.github.algomaster99.terminator.commons.cyclonedx.Dependency Maven / Gradle / Ivy
package io.github.algomaster99.terminator.commons.cyclonedx;
import java.util.LinkedHashSet;
import java.util.Set;
import javax.annotation.processing.Generated;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
/**
* Dependency
*
* Defines the direct dependencies of a component or service. Components or services that do not have their own dependencies MUST be declared as empty elements within the graph. Components or services that are not represented in the dependency graph MAY have unknown dependencies. It is RECOMMENDED that implementations assume this to be opaque and not an indicator of a object being dependency-free. It is RECOMMENDED to leverage compositions to indicate unknown dependency graphs.
*
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"ref",
"dependsOn"
})
@Generated("jsonschema2pojo")
public class Dependency {
/**
* Descriptor for an element identified by the attribute 'bom-ref' in the same BOM document.
* In contrast to `bomLinkElementType`.
* (Required)
*
*/
@JsonProperty("ref")
@JsonPropertyDescription("Descriptor for an element identified by the attribute 'bom-ref' in the same BOM document.\nIn contrast to `bomLinkElementType`.")
private Object ref;
/**
* Depends On
*
* The bom-ref identifiers of the components or services that are dependencies of this dependency object.
*
*/
@JsonProperty("dependsOn")
@JsonDeserialize(as = java.util.LinkedHashSet.class)
@JsonPropertyDescription("The bom-ref identifiers of the components or services that are dependencies of this dependency object.")
private Set