public class LicenseHTMLFile extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
LicenseHTMLFile.FormattedUrl
Parses a URL and stores the site name and the original URL
|
| Constructor and Description |
|---|
LicenseHTMLFile() |
LicenseHTMLFile(SpdxListedLicense license) |
| Modifier and Type | Method and Description |
|---|---|
SpdxListedLicense |
getLicense() |
void |
setLicense(SpdxListedLicense license) |
void |
writeToFile(File htmlFile,
String tableOfContentsReference) |
public LicenseHTMLFile(SpdxListedLicense license)
templateFileName - File name for the Mustache template filelicense - Listed license to be usedisDeprecated - True if the license has been deprecateddeprecatedVersion - Version since the license has been deprecated (null if not deprecated)public LicenseHTMLFile()
public SpdxListedLicense getLicense()
public void setLicense(SpdxListedLicense license)
license - the license to setpublic void writeToFile(File htmlFile, String tableOfContentsReference) throws IOException, com.github.mustachejava.MustacheException, InvalidLicenseTemplateException
IOExceptioncom.github.mustachejava.MustacheExceptionInvalidLicenseTemplateExceptionCopyright © 2018 Linux Foundation. All Rights Reserved.