Class AbstractBomGenerator

java.lang.Object
org.cyclonedx.CycloneDxSchema
org.cyclonedx.generators.AbstractBomGenerator
Direct Known Subclasses:
BomJsonGenerator, BomXmlGenerator

public abstract class AbstractBomGenerator extends CycloneDxSchema
  • Field Details

    • mapper

      protected com.fasterxml.jackson.databind.ObjectMapper mapper
    • version

      protected final Version version
    • bom

      protected Bom bom
    • format

      protected final Format format
  • Constructor Details

    • AbstractBomGenerator

      public AbstractBomGenerator(Version version, Bom bom, Format format)
  • Method Details

    • 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)