class
CycloneDX::ComponentData
- CycloneDX::ComponentData
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
cyclonedx/models.crConstant Summary
-
VALID_DATA_TYPES =
["source-code", "configuration", "dataset", "definition", "other"]
Constructors
- .new(pull : JSON::PullParser)
- .new(data_type : String | Nil = nil, name : String | Nil = nil, description : String | Nil = nil, bom_ref : String | Nil = nil)
Instance Method Summary
- #bom_ref : String | Nil
- #data_type : String | Nil
- #description : String | Nil
- #name : String | Nil
-
#to_xml(xml : XML::Builder, element_name : String = "dataset")
element_namediffers by context: acomponentDataTypeis named<data>directly under a component, but<dataset>inside a model card's<datasets>collection.
Constructor Detail
def self.new(data_type : String | Nil = nil, name : String | Nil = nil, description : String | Nil = nil, bom_ref : String | Nil = nil)
#
Instance Method Detail
def 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.