Package io.quarkus.sbom
Class ComponentDependencies
java.lang.Object
io.quarkus.sbom.ComponentDependencies
Represents the dependency relationships of a single component in an SBOM.
Each instance captures which other components (identified by their bom-ref strings) a given component depends on, along with an optional dependency type for SPDX compatibility.
In CycloneDX, the dependencyType is not used (all relationships are plain dependencies).
In SPDX, the type distinguishes between DEPENDS_ON, DEV_DEPENDENCY_OF, etc.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()The bom-ref of the component whose dependencies are described.The relationship type (e.g., "DEPENDS_ON", "DEV_DEPENDENCY_OF").The bom-refs of the components this component depends on.static ComponentDependenciesof(String bomRef, Collection<String> dependsOn) Creates aComponentDependencieswith no dependency type.
-
Method Details
-
of
Creates aComponentDependencieswith no dependency type.- Parameters:
bomRef- the bom-ref of the component that has these dependenciesdependsOn- the bom-refs of the components it depends on- Returns:
- a new instance
-
builder
-
getBomRef
The bom-ref of the component whose dependencies are described. -
getDependencyType
The relationship type (e.g., "DEPENDS_ON", "DEV_DEPENDENCY_OF"). May be null when the SBOM format does not support typed dependencies. -
getDependsOn
The bom-refs of the components this component depends on.
-