Class BomXmlGenerator
java.lang.Object
org.cyclonedx.CycloneDxSchema
org.cyclonedx.generators.AbstractBomGenerator
org.cyclonedx.generators.xml.BomXmlGenerator
-
Field Summary
FieldsFields inherited from class AbstractBomGenerator
bom, format, mapper, versionFields inherited from class CycloneDxSchema
ALL_VERSIONS, NS_BOM_10, NS_BOM_11, NS_BOM_12, NS_BOM_13, NS_BOM_14, NS_BOM_15, NS_BOM_16, NS_BOM_LATEST, NS_DEPENDENCY_GRAPH_10, VERSION_LATEST -
Constructor Summary
ConstructorsConstructorDescriptionBomXmlGenerator(Bom bom, Version version) Constructs a new BomXmlGenerator object. -
Method Summary
Modifier and TypeMethodDescriptiongenerate()Creates a CycloneDX BoM from a set of Components.protected DocumentgenerateDocument(Bom bom) toString()Creates a text representation of a CycloneDX BoM Document.Methods inherited from class AbstractBomGenerator
getFormat, getSchemaVersion, setupObjectMapperMethods inherited from class CycloneDxSchema
getJsonSchema, getXmlSchema, getXmlSchema
-
Field Details
-
PROLOG
- See Also:
-
-
Constructor Details
-
BomXmlGenerator
-
-
Method Details
-
generateDocument
- Throws:
ParserConfigurationException
-
generate
Creates a CycloneDX BoM from a set of Components.- Returns:
- an XML Document representing a CycloneDX BoM
- Throws:
ParserConfigurationException- if an error occurs- Since:
- 1.1.0
-
toXmlString
- Throws:
GeneratorException
-
toString
Creates a text representation of a CycloneDX BoM Document. This method callstoXmlString()and will return an empty string iftoXmlString()throws an exception. It's preferred to calltoXmlString()directly so that exceptions can be caught.
-