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(org.spdx.rdfparser.license.SpdxListedLicense license) |
| Modifier and Type | Method and Description |
|---|---|
org.spdx.rdfparser.license.SpdxListedLicense |
getLicense() |
void |
setLicense(org.spdx.rdfparser.license.SpdxListedLicense license) |
void |
writeToFile(File htmlFile,
String tableOfContentsReference) |
public LicenseHTMLFile(org.spdx.rdfparser.license.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 org.spdx.rdfparser.license.SpdxListedLicense getLicense()
public void setLicense(org.spdx.rdfparser.license.SpdxListedLicense license)
license - the license to setpublic void writeToFile(File htmlFile, String tableOfContentsReference) throws IOException, com.github.mustachejava.MustacheException, org.spdx.html.InvalidLicenseTemplateException
IOExceptioncom.github.mustachejava.MustacheExceptionorg.spdx.html.InvalidLicenseTemplateExceptionCopyright © 2018 Linux Foundation. All Rights Reserved.