public class SpdxWebsiteFormatWriter extends Object implements ILicenseFormatWriter
| Constructor and Description |
|---|
SpdxWebsiteFormatWriter(String version,
String releaseDate,
File websiteFolder) |
| Modifier and Type | Method and Description |
|---|---|
org.spdx.html.ExceptionHtmlToc |
getHtmlExceptionToc() |
org.spdx.html.ExceptionTOCJSONFile |
getJsonExceptionToc() |
org.spdx.html.LicenseHTMLFile |
getLicHtml() |
org.spdx.html.LicenseJSONFile |
getLicJson() |
String |
getReleaseDate() |
org.spdx.html.LicenseTOCHTMLFile |
getTableOfContentsHTML() |
org.spdx.html.LicenseTOCJSONFile |
getTableOfContentsJSON() |
String |
getVersion() |
File |
getWebsiteFolder() |
void |
setLicHtml(org.spdx.html.LicenseHTMLFile licHtml) |
void |
setReleaseDate(String releaseDate) |
void |
setTableOfContentsHTML(org.spdx.html.LicenseTOCHTMLFile tableOfContentsHTML) |
void |
setVersion(String version) |
void |
setWebsiteFolder(File websiteFolder) |
void |
writeException(org.spdx.rdfparser.license.ListedLicenseException exception) |
void |
writeLicense(org.spdx.rdfparser.license.SpdxListedLicense license,
boolean deprecated,
String deprecatedVersion)
Formats and writes a specific license
|
void |
writeToC()
Write the Table of Contents file for the format if applicable
|
public String getVersion()
public void setVersion(String version)
version - the version to setpublic String getReleaseDate()
public void setReleaseDate(String releaseDate)
releaseDate - the releaseDate to setpublic org.spdx.html.LicenseJSONFile getLicJson()
public org.spdx.html.LicenseTOCJSONFile getTableOfContentsJSON()
public org.spdx.html.ExceptionHtmlToc getHtmlExceptionToc()
public org.spdx.html.ExceptionTOCJSONFile getJsonExceptionToc()
public File getWebsiteFolder()
public void setWebsiteFolder(File websiteFolder)
websiteFolder - the websiteFolder to setpublic org.spdx.html.LicenseHTMLFile getLicHtml()
public void setLicHtml(org.spdx.html.LicenseHTMLFile licHtml)
licHtml - the licHtml to setpublic org.spdx.html.LicenseTOCHTMLFile getTableOfContentsHTML()
public void setTableOfContentsHTML(org.spdx.html.LicenseTOCHTMLFile tableOfContentsHTML)
tableOfContentsHTML - the tableOfContentsHTML to setpublic void writeLicense(org.spdx.rdfparser.license.SpdxListedLicense license,
boolean deprecated,
String deprecatedVersion)
throws IOException,
LicenseGeneratorException
ILicenseFormatWriterwriteLicense in interface ILicenseFormatWriterlicense - License to be addeddeprecated - True if deprecateddeprecatedVersion - License list version when the license was deprecated, null otherwiseIOExceptionLicenseGeneratorExceptionpublic void writeToC()
throws IOException
ILicenseFormatWriterwriteToC in interface ILicenseFormatWriterIOExceptionpublic void writeException(org.spdx.rdfparser.license.ListedLicenseException exception)
throws IOException,
org.spdx.html.InvalidLicenseTemplateException,
LicenseGeneratorException
writeException in interface ILicenseFormatWriterexception - Exception to be formatted and writtenIOExceptionorg.spdx.html.InvalidLicenseTemplateExceptionLicenseGeneratorExceptionCopyright © 2018 Linux Foundation. All Rights Reserved.