Class: SBOM::CycloneDX::Record::Standard::Requirement

Inherits:
Base
  • Object
show all
Defined in:
lib/sbom/cyclone_dx/record/standard.rb,
sig/sbom/cyclone_dx/record/standard.rbs

Overview

Schema name: Requirement

Constant Summary

Constants inherited from Base

Base::Record

Instance Attribute Summary

Attributes inherited from Base

#errors

Instance Method Summary collapse

Methods inherited from Base

#<=>, const, custom_validators, fields, #formatted_errors, json_create, json_name, prop, #valid!, #valid?, validate

Methods included from _Klass

#const, #const_names, #create, #create!, #custom_validators, #fields, #json_name, #prop, #prop_names, #validate

Methods included from _Instance

#as_json, #errors, #formatted_errors, #to_json, #valid?

Constructor Details

#initialize ⇒ Requirement

Returns a new instance of Requirement.

Parameters:

  • bom_ref: (String, nil)
  • identifier: (String, nil)
  • title: (String, nil)
  • text: (String, nil)
  • descriptions: (Array[String], nil)
  • open_cre: (Array[String], nil)
  • parent: (String, nil)
  • properties: (Array[Property], nil)
  • external_references: (Array[ExternalReference], nil)


35
# File 'sig/sbom/cyclone_dx/record/standard.rbs', line 35

def initialize: (?bom_ref: String?, ?identifier: String?, ?title: String?, ?text: String?, ?descriptions: Array[String]?, ?open_cre: Array[String]?, ?parent: String?, ?properties: Array[Property]?, ?external_references: Array[ExternalReference]?) -> void

Instance Method Details

#bom_ref ⇒ String?

Returns:

  • (String, nil)


37
# File 'sig/sbom/cyclone_dx/record/standard.rbs', line 37

def bom_ref: () -> String?

#bom_ref= ⇒ String?

Parameters:

  • (String, nil)

Returns:

  • (String, nil)


38
# File 'sig/sbom/cyclone_dx/record/standard.rbs', line 38

def bom_ref=: (String?) -> String?

#bom_ref? ⇒ Boolean

Returns:

  • (Boolean)


39
# File 'sig/sbom/cyclone_dx/record/standard.rbs', line 39

def bom_ref?: () -> bool

#bom_ref_valid? ⇒ Boolean

Returns:

  • (Boolean)


40
# File 'sig/sbom/cyclone_dx/record/standard.rbs', line 40

def bom_ref_valid?: () -> bool

#descriptions ⇒ Array[String]?

Returns:

  • (Array[String], nil)


57
# File 'sig/sbom/cyclone_dx/record/standard.rbs', line 57

def descriptions: () -> Array[String]?

#descriptions= ⇒ Array[String]?

Parameters:

  • (Array[String], nil)

Returns:

  • (Array[String], nil)


58
# File 'sig/sbom/cyclone_dx/record/standard.rbs', line 58

def descriptions=: (Array[String]?) -> Array[String]?

#descriptions? ⇒ Boolean

Returns:

  • (Boolean)


59
# File 'sig/sbom/cyclone_dx/record/standard.rbs', line 59

def descriptions?: () -> bool

#descriptions_valid? ⇒ Boolean

Returns:

  • (Boolean)


60
# File 'sig/sbom/cyclone_dx/record/standard.rbs', line 60

def descriptions_valid?: () -> bool

#external_references ⇒ Array[ExternalReference]?

Returns:



77
# File 'sig/sbom/cyclone_dx/record/standard.rbs', line 77

def external_references: () -> Array[ExternalReference]?

#external_references= ⇒ Array[ExternalReference]?

Parameters:

Returns:



78
# File 'sig/sbom/cyclone_dx/record/standard.rbs', line 78

def external_references=: (Array[ExternalReference]?) -> Array[ExternalReference]?

#external_references? ⇒ Boolean

Returns:

  • (Boolean)


79
# File 'sig/sbom/cyclone_dx/record/standard.rbs', line 79

def external_references?: () -> bool

#external_references_valid? ⇒ Boolean

Returns:

  • (Boolean)


80
# File 'sig/sbom/cyclone_dx/record/standard.rbs', line 80

def external_references_valid?: () -> bool

#identifier ⇒ String?

Returns:

  • (String, nil)


42
# File 'sig/sbom/cyclone_dx/record/standard.rbs', line 42

def identifier: () -> String?

#identifier= ⇒ String?

Parameters:

  • (String, nil)

Returns:

  • (String, nil)


43
# File 'sig/sbom/cyclone_dx/record/standard.rbs', line 43

def identifier=: (String?) -> String?

#identifier? ⇒ Boolean

Returns:

  • (Boolean)


44
# File 'sig/sbom/cyclone_dx/record/standard.rbs', line 44

def identifier?: () -> bool

#identifier_valid? ⇒ Boolean

Returns:

  • (Boolean)


45
# File 'sig/sbom/cyclone_dx/record/standard.rbs', line 45

def identifier_valid?: () -> bool

#open_cre ⇒ Array[String]?

Returns:

  • (Array[String], nil)


62
# File 'sig/sbom/cyclone_dx/record/standard.rbs', line 62

def open_cre: () -> Array[String]?

#open_cre= ⇒ Array[String]?

Parameters:

  • (Array[String], nil)

Returns:

  • (Array[String], nil)


63
# File 'sig/sbom/cyclone_dx/record/standard.rbs', line 63

def open_cre=: (Array[String]?) -> Array[String]?

#open_cre? ⇒ Boolean

Returns:

  • (Boolean)


64
# File 'sig/sbom/cyclone_dx/record/standard.rbs', line 64

def open_cre?: () -> bool

#open_cre_valid? ⇒ Boolean

Returns:

  • (Boolean)


65
# File 'sig/sbom/cyclone_dx/record/standard.rbs', line 65

def open_cre_valid?: () -> bool

#parent ⇒ String?

Returns:

  • (String, nil)


67
# File 'sig/sbom/cyclone_dx/record/standard.rbs', line 67

def parent: () -> String?

#parent= ⇒ String?

Parameters:

  • (String, nil)

Returns:

  • (String, nil)


68
# File 'sig/sbom/cyclone_dx/record/standard.rbs', line 68

def parent=: (String?) -> String?

#parent? ⇒ Boolean

Returns:

  • (Boolean)


69
# File 'sig/sbom/cyclone_dx/record/standard.rbs', line 69

def parent?: () -> bool

#parent_valid? ⇒ Boolean

Returns:

  • (Boolean)


70
# File 'sig/sbom/cyclone_dx/record/standard.rbs', line 70

def parent_valid?: () -> bool

#properties ⇒ Array[Property]?

Returns:



72
# File 'sig/sbom/cyclone_dx/record/standard.rbs', line 72

def properties: () -> Array[Property]?

#properties= ⇒ Array[Property]?

Parameters:

Returns:



73
# File 'sig/sbom/cyclone_dx/record/standard.rbs', line 73

def properties=: (Array[Property]?) -> Array[Property]?

#properties? ⇒ Boolean

Returns:

  • (Boolean)


74
# File 'sig/sbom/cyclone_dx/record/standard.rbs', line 74

def properties?: () -> bool

#properties_valid? ⇒ Boolean

Returns:

  • (Boolean)


75
# File 'sig/sbom/cyclone_dx/record/standard.rbs', line 75

def properties_valid?: () -> bool

#text ⇒ String?

Returns:

  • (String, nil)


52
# File 'sig/sbom/cyclone_dx/record/standard.rbs', line 52

def text: () -> String?

#text= ⇒ String?

Parameters:

  • (String, nil)

Returns:

  • (String, nil)


53
# File 'sig/sbom/cyclone_dx/record/standard.rbs', line 53

def text=: (String?) -> String?

#text? ⇒ Boolean

Returns:

  • (Boolean)


54
# File 'sig/sbom/cyclone_dx/record/standard.rbs', line 54

def text?: () -> bool

#text_valid? ⇒ Boolean

Returns:

  • (Boolean)


55
# File 'sig/sbom/cyclone_dx/record/standard.rbs', line 55

def text_valid?: () -> bool

#title ⇒ String?

Returns:

  • (String, nil)


47
# File 'sig/sbom/cyclone_dx/record/standard.rbs', line 47

def title: () -> String?

#title= ⇒ String?

Parameters:

  • (String, nil)

Returns:

  • (String, nil)


48
# File 'sig/sbom/cyclone_dx/record/standard.rbs', line 48

def title=: (String?) -> String?

#title? ⇒ Boolean

Returns:

  • (Boolean)


49
# File 'sig/sbom/cyclone_dx/record/standard.rbs', line 49

def title?: () -> bool

#title_valid? ⇒ Boolean

Returns:

  • (Boolean)


50
# File 'sig/sbom/cyclone_dx/record/standard.rbs', line 50

def title_valid?: () -> bool