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_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, getXmlSchema
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
generate, getSchemaVersion, toXmlString
protected 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
ParserConfigurationException
public 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 BomXmlGenerator
toString
in class Object
Copyright © 2017–2021 CycloneDX. All rights reserved.