Class LicenseHTMLFile

java.lang.Object
org.spdx.htmltemplates.LicenseHTMLFile

public class LicenseHTMLFile
extends Object
This class contains a formatted HTML file for a given license. Specific formatting information is contained in this file.
Author:
Gary O'Neall
  • Constructor Details

    • LicenseHTMLFile

      public LicenseHTMLFile​(org.spdx.library.model.license.SpdxListedLicense license)
      Parameters:
      license - Listed license to be used
    • LicenseHTMLFile

      public LicenseHTMLFile()
  • Method Details

    • getLicense

      public org.spdx.library.model.license.SpdxListedLicense getLicense()
      Returns:
      the license
    • setLicense

      public void setLicense​(org.spdx.library.model.license.SpdxListedLicense license)
      Parameters:
      license - the license to set
    • writeToFile

      public void writeToFile​(File htmlFile, String tableOfContentsReference) throws IOException, com.github.mustachejava.MustacheException, org.spdx.licenseTemplate.InvalidLicenseTemplateException, org.spdx.library.InvalidSPDXAnalysisException
      Throws:
      IOException
      com.github.mustachejava.MustacheException
      org.spdx.licenseTemplate.InvalidLicenseTemplateException
      org.spdx.library.InvalidSPDXAnalysisException