class

CycloneDX::ComponentData

Inherits JSON::Serializable / Reference / Object

Constants

VALID_DATA_TYPES = ["source-code", "configuration", "dataset", "definition", "other"]

Constructors

new(data_type : String | Nil = nil, name : String | Nil = nil, description : String | Nil = nil, bom_ref : String | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

bom_ref
Source
data_type
Source
description
Source
name
Source
to_xml(xml : XML::Builder, element_name : String = "dataset")

element_name differs by context: a componentDataType is named <data> directly under a component, but <dataset> inside a model card's <datasets> collection.

Source