Class Component
java.lang.Object
org.cyclonedx.model.ExtensibleElement
org.cyclonedx.model.Component
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddComponent(Component component) voidaddExternalReference(ExternalReference externalReference) voidvoidaddProperty(Property property) booleanDeprecated.Gets the component authors as a list of contacts.getCpe()getData()getGroup()Deprecated.getName()getPurl()getScope()getSwhid()getSwid()getTags()getType()inthashCode()voidDeprecated.since version 1.6, usesetAuthors(List)insteadvoidsetAuthors(List<OrganizationalContact> authors) Sets the component authors as a list of contacts.voidvoidsetComponents(List<Component> components) voidsetCopyright(String copyright) voidvoidsetCryptoProperties(CryptoProperties cryptoProperties) voidsetData(List<ComponentData> data) voidsetDescription(String description) voidsetEvidence(Evidence evidence) voidsetExternalReferences(List<ExternalReference> externalReferences) voidvoidvoidsetLicenseChoice(LicenseChoice licenseChoice) Deprecated.voidsetLicenses(LicenseChoice licenses) voidsetManufacturer(OrganizationalEntity manufacturer) voidsetMimeType(String mimeType) voidsetModelCard(ModelCard modelCard) voidsetModified(Boolean modified) voidvoidsetOmniborId(List<String> omniborId) voidsetPedigree(Pedigree pedigree) voidsetProperties(List<Property> properties) voidsetProvides(List<String> provides) voidsetPublisher(String publisher) voidsetPurl(com.github.packageurl.PackageURL purl) voidvoidsetReleaseNotes(ReleaseNotes releaseNotes) voidsetScope(Component.Scope scope) voidsetSignature(Signature signature) voidsetSupplier(OrganizationalEntity supplier) voidvoidvoidvoidsetType(Component.Type type) voidsetVersion(String version) Methods inherited from class ExtensibleElement
add, addExtensibleType, getExtensibleTypes, getExtensions, setExtensibleTypes, setExtensions
-
Constructor Details
-
Component
public Component()
-
-
Method Details
-
getBomRef
-
setBomRef
-
getMimeType
-
setMimeType
-
getSupplier
-
setSupplier
-
getAuthor
Deprecated.since version 1.6, usegetAuthors()insteadGets the deprecated author field as a string.- Returns:
- the author name as a string
-
setAuthor
Deprecated.since version 1.6, usesetAuthors(List)insteadSets the deprecated author field as a string.- Parameters:
author- the author name as a string
-
getPublisher
-
setPublisher
-
getGroup
-
setGroup
-
getName
-
setName
-
getVersion
-
setVersion
-
getDescription
-
setDescription
-
getScope
-
setScope
-
getHashes
-
setHashes
-
addHash
-
getLicenses
-
setLicenses
-
getLicenseChoice
Deprecated. -
setLicenseChoice
Deprecated. -
getCopyright
-
setCopyright
-
getCpe
- Returns:
- the Common Platform Enumeration of the component
-
setCpe
- Parameters:
cpe- a valid CPE 2.2 or CPE 2.3 string
-
getPurl
-
setPurl
-
setPurl
public void setPurl(com.github.packageurl.PackageURL purl) -
getSwid
-
setSwid
-
getModified
-
isModified
-
setModified
-
getPedigree
-
setPedigree
-
getExternalReferences
-
addExternalReference
-
setExternalReferences
-
getProperties
-
setProperties
-
addProperty
-
getComponents
-
setComponents
-
addComponent
-
getEvidence
-
setEvidence
-
getType
-
setType
-
getReleaseNotes
-
setReleaseNotes
-
getSignature
-
setSignature
-
getModelCard
-
setModelCard
-
getData
-
setData
-
getOmniborId
-
setOmniborId
-
getSwhid
-
setSwhid
-
getCryptoProperties
-
setCryptoProperties
-
getProvides
-
setProvides
-
getTags
-
setTags
-
getAuthors
Gets the component authors as a list of contacts. This replaces the deprecated string-based author field.- Returns:
- the list of authors, or null if not set
- Since:
- 1.6
-
setAuthors
Sets the component authors as a list of contacts. This replaces the deprecated string-based author field.- Parameters:
authors- the list of authors- Since:
- 1.6
-
getManufacturer
-
setManufacturer
-
hashCode
-
equals
-
getAuthors()instead