public class BomXmlGenerator10 extends AbstractBomXmlGenerator implements BomXmlGenerator
Component
s. Proper usage assumes generate()
is called after
construction and optionally followed by toXmlString()
.CycloneDxSchema.Version
PROLOG
NS_BOM_10, NS_BOM_11, NS_BOM_12, NS_BOM_13, NS_BOM_LATEST, NS_DEPENDENCY_GRAPH_10, VERSION_LATEST
Constructor and Description |
---|
BomXmlGenerator10(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, toString
getJsonSchema, getXmlSchema, getXmlSchema
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
toString
public BomXmlGenerator10(Bom bom)
bom
- the BOM to generatepublic CycloneDxSchema.Version getSchemaVersion()
getSchemaVersion
in interface BomXmlGenerator
public Document generate() throws ParserConfigurationException
generate
in interface BomXmlGenerator
ParserConfigurationException
public String toXmlString() throws GeneratorException
toXmlString
in interface BomXmlGenerator
GeneratorException
Copyright © 2017–2021 CycloneDX. All rights reserved.