Class AbstractBomGenerator

    • Field Detail

      • mapper

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

        protected final Version version
      • bom

        protected Bom bom
      • format

        protected final Format format
    • Constructor Detail

      • AbstractBomGenerator

        public AbstractBomGenerator​(Version version,
                                    Bom bom,
                                    Format format)
    • 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)