Package org.cyclonedx.generators
Class AbstractBomGenerator
- java.lang.Object
-
- org.cyclonedx.CycloneDxSchema
-
- org.cyclonedx.generators.AbstractBomGenerator
-
- Direct Known Subclasses:
BomJsonGenerator,BomXmlGenerator
public abstract class AbstractBomGenerator extends CycloneDxSchema
-
-
Field Summary
Fields Modifier and Type Field Description protected Bombomprotected Formatformatprotected com.fasterxml.jackson.databind.ObjectMappermapperprotected Versionversion-
Fields inherited from class org.cyclonedx.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 Constructor Description AbstractBomGenerator(Version version, Bom bom, Format format)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FormatgetFormat()Returns the format that this generator creates.VersiongetSchemaVersion()Returns the version of the CycloneDX schema used by this instanceprotected voidsetupObjectMapper(boolean isXml)-
Methods inherited from class org.cyclonedx.CycloneDxSchema
getJsonSchema, getXmlSchema, getXmlSchema
-
-
-
-
Method Detail
-
getSchemaVersion
public Version getSchemaVersion()
Returns the version of the CycloneDX schema used by this instance- Returns:
- a CycloneDxSchemaVersion enum
-
getFormat
public Format getFormat()
Returns the format that this generator creates.- Returns:
- a Format enum
-
setupObjectMapper
protected void setupObjectMapper(boolean isXml)
-
-