Class LicenseRdfaFormatWriter
java.lang.Object
org.spdx.licenselistpublisher.licensegenerator.LicenseRdfaFormatWriter
- All Implemented Interfaces:
ILicenseFormatWriter
public class LicenseRdfaFormatWriter extends Object implements ILicenseFormatWriter
- Author:
- Gary O'Neall
-
Constructor Summary
Constructors Constructor Description LicenseRdfaFormatWriter(String version, String releaseDate, File rdfaFolder) -
Method Summary
Modifier and Type Method Description LicenseHTMLFilegetLicHtml()FilegetRdfaFolder()StringgetReleaseDate()LicenseTOCHTMLFilegetTableOfContentsHTML()StringgetVersion()voidsetLicHtml(LicenseHTMLFile licHtml)voidsetRdfaFolder(File rdfaFolder)voidsetReleaseDate(String releaseDate)voidsetTableOfContentsHTML(LicenseTOCHTMLFile tableOfContentsHTML)voidsetVersion(String version)voidwriteException(org.spdx.library.model.license.ListedLicenseException exception)voidwriteLicense(org.spdx.library.model.license.SpdxListedLicense license, boolean deprecated, String deprecatedVersion)Formats and writes a specific licensevoidwriteToC()Write the Table of Contents file for the format if applicable
-
Constructor Details
-
LicenseRdfaFormatWriter
- Parameters:
version- License list versionreleaseDate- release date for the license listrdfaFolder- Folder to store all of the RDFa files
-
-
Method Details
-
getRdfaFolder
- Returns:
- the rdfaFolder
-
setRdfaFolder
- Parameters:
rdfaFolder- the rdfaFolder to set
-
getVersion
- Returns:
- the version
-
setVersion
- Parameters:
version- the version to set
-
getReleaseDate
- Returns:
- the releaseDate
-
setReleaseDate
- Parameters:
releaseDate- the releaseDate to set
-
getLicHtml
- Returns:
- the licHtml
-
setLicHtml
- Parameters:
licHtml- the licHtml to set
-
getTableOfContentsHTML
- Returns:
- the tableOfContentsHTML
-
setTableOfContentsHTML
- Parameters:
tableOfContentsHTML- the tableOfContentsHTML to set
-
writeLicense
public void writeLicense(org.spdx.library.model.license.SpdxListedLicense license, boolean deprecated, String deprecatedVersion) throws IOException, LicenseGeneratorException, org.spdx.library.InvalidSPDXAnalysisExceptionDescription copied from interface:ILicenseFormatWriterFormats and writes a specific license- Specified by:
writeLicensein interfaceILicenseFormatWriter- Parameters:
license- License to be addeddeprecated- True if deprecateddeprecatedVersion- License list version when the license was deprecated, null otherwise- Throws:
IOExceptionLicenseGeneratorExceptionorg.spdx.library.InvalidSPDXAnalysisException
-
writeToC
Description copied from interface:ILicenseFormatWriterWrite the Table of Contents file for the format if applicable- Specified by:
writeToCin interfaceILicenseFormatWriter- Throws:
IOException
-
writeException
public void writeException(org.spdx.library.model.license.ListedLicenseException exception) throws IOException, org.spdx.licenseTemplate.InvalidLicenseTemplateException, org.spdx.library.InvalidSPDXAnalysisException- Specified by:
writeExceptionin interfaceILicenseFormatWriter- Parameters:
exception- Exception to be formatted and written- Throws:
IOExceptionorg.spdx.licenseTemplate.InvalidLicenseTemplateExceptionorg.spdx.library.InvalidSPDXAnalysisException
-