public class BomXmlGenerator13 extends AbstractBomXmlGenerator implements BomXmlGenerator
Components. Proper usage assumes generate() is called after
construction and optionally followed by toXmlString().CycloneDxSchema.VersionPROLOGNS_BOM_10, NS_BOM_11, NS_BOM_12, NS_BOM_13, NS_BOM_14, NS_BOM_LATEST, NS_DEPENDENCY_GRAPH_10, VERSION_LATEST| Constructor and Description |
|---|
BomXmlGenerator13(Bom bom)
Constructs a new BomGenerator object.
|
| Modifier and Type | Method and Description |
|---|---|
Document |
generate()
Creates a CycloneDX BoM from a set of Components.
|
CycloneDxSchema.Version |
getSchemaVersion()
Returns the version of the CycloneDX schema used by this instance
|
String |
toXmlString() |
buildSecureDocumentBuilder, generateDocument, getMapper, toStringgetJsonSchema, getXmlSchema, getXmlSchemaclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waittoStringpublic BomXmlGenerator13(Bom bom)
bom - the BOM to generatepublic CycloneDxSchema.Version getSchemaVersion()
getSchemaVersion in interface BomXmlGeneratorpublic Document generate() throws ParserConfigurationException
generate in interface BomXmlGeneratorParserConfigurationExceptionpublic String toXmlString() throws GeneratorException
toXmlString in interface BomXmlGeneratorGeneratorExceptionCopyright © 2017–2022 OWASP Foundation. All rights reserved.