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,
boolean isDeprecated,
String deprecatedVersion) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDeprecatedVersion() |
SpdxListedLicense |
getLicense() |
boolean |
isDeprecated() |
void |
setDeprecated(boolean isDeprecated) |
void |
setDeprecatedVersion(String deprecatedVersion) |
void |
setLicense(SpdxListedLicense license) |
void |
writeToFile(File htmlFile,
String tableOfContentsReference) |
public LicenseHTMLFile(SpdxListedLicense license, boolean isDeprecated, String deprecatedVersion)
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 boolean isDeprecated()
public void setDeprecated(boolean isDeprecated)
isDeprecated - the isDeprecated to setpublic String getDeprecatedVersion()
public void setDeprecatedVersion(String deprecatedVersion)
deprecatedVersion - the deprecatedVersion to setpublic void writeToFile(File htmlFile, String tableOfContentsReference) throws IOException, com.github.mustachejava.MustacheException, InvalidLicenseTemplateException
IOExceptioncom.github.mustachejava.MustacheExceptionInvalidLicenseTemplateExceptionCopyright © 2017 Linux Foundation. All Rights Reserved.