Class AbstractBomGenerator
java.lang.Object
org.cyclonedx.CycloneDxSchema
org.cyclonedx.generators.AbstractBomGenerator
- Direct Known Subclasses:
BomJsonGenerator, BomXmlGenerator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Bomprotected final Formatprotected com.fasterxml.jackson.databind.ObjectMapperprotected final 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the format that this generator creates.Returns the version of the CycloneDX schema used by this instanceprotected voidsetupObjectMapper(boolean isXml) Methods inherited from class CycloneDxSchema
getJsonSchema, getXmlSchema, getXmlSchema
-
Field Details
-
mapper
protected com.fasterxml.jackson.databind.ObjectMapper mapper -
version
-
bom
-
format
-
-
Constructor Details
-
AbstractBomGenerator
-
-
Method Details
-
getSchemaVersion
Returns the version of the CycloneDX schema used by this instance- Returns:
- a CycloneDxSchemaVersion enum
-
getFormat
-
setupObjectMapper
protected void setupObjectMapper(boolean isXml)
-