public abstract class AbstractBomXmlGenerator extends CycloneDxSchema implements BomXmlGenerator
CycloneDxSchema.Version| Modifier and Type | Field and Description |
|---|---|
protected static String |
PROLOG |
NS_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 |
|---|
AbstractBomXmlGenerator() |
| Modifier and Type | Method and Description |
|---|---|
DocumentBuilder |
buildSecureDocumentBuilder()
Constructs a new document builder with security features enabled.
|
protected Document |
generateDocument(Bom bom) |
com.fasterxml.jackson.databind.ObjectMapper |
getMapper() |
String |
toString()
Creates a text representation of a CycloneDX BoM Document.
|
getJsonSchema, getXmlSchema, getXmlSchemaclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgenerate, getSchemaVersion, toXmlStringprotected static final String PROLOG
public com.fasterxml.jackson.databind.ObjectMapper getMapper()
public DocumentBuilder buildSecureDocumentBuilder() throws ParserConfigurationException
ParserConfigurationException - thrown if there is
a parser configuration exceptionprotected Document generateDocument(Bom bom) throws ParserConfigurationException
ParserConfigurationExceptionpublic String toString()
BomXmlGenerator.toXmlString() and will return an empty string if BomXmlGenerator.toXmlString()
throws an exception. Its preferred to call BomXmlGenerator.toXmlString() directly
so that exceptions can be caught.toString in interface BomXmlGeneratortoString in class ObjectCopyright © 2017–2022 OWASP Foundation. All rights reserved.