public class LicenseRdfaFormatWriter extends Object implements ILicenseFormatWriter
| Constructor and Description |
|---|
LicenseRdfaFormatWriter(String version,
String releaseDate,
File rdfaFolder) |
| Modifier and Type | Method and Description |
|---|---|
org.spdx.html.LicenseHTMLFile |
getLicHtml() |
File |
getRdfaFolder() |
String |
getReleaseDate() |
org.spdx.html.LicenseTOCHTMLFile |
getTableOfContentsHTML() |
String |
getVersion() |
void |
setLicHtml(org.spdx.html.LicenseHTMLFile licHtml) |
void |
setRdfaFolder(File rdfaFolder) |
void |
setReleaseDate(String releaseDate) |
void |
setTableOfContentsHTML(org.spdx.html.LicenseTOCHTMLFile tableOfContentsHTML) |
void |
setVersion(String version) |
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 File getRdfaFolder()
public void setRdfaFolder(File rdfaFolder)
rdfaFolder - the rdfaFolder to setpublic 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.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
writeException in interface ILicenseFormatWriterexception - Exception to be formatted and writtenIOExceptionorg.spdx.html.InvalidLicenseTemplateExceptionCopyright © 2018 Linux Foundation. All Rights Reserved.