class CycloneDX::ComponentData

Included Modules

Defined in:

cyclonedx/models.cr

Constant Summary

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

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(data_type : String | Nil = nil, name : String | Nil = nil, description : String | Nil = nil, bom_ref : String | Nil = nil) #

[View source]

Instance Method Detail

def bom_ref : String | Nil #

[View source]
def data_type : String | Nil #

[View source]
def description : String | Nil #

[View source]
def name : String | Nil #

[View source]
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.


[View source]