Class LicenseRdfaFormatWriter
java.lang.Object
org.spdx.licenselistpublisher.licensegenerator.LicenseRdfaFormatWriter
-
Constructor Summary
ConstructorsConstructorDescriptionLicenseRdfaFormatWriter(String version, String releaseDate, File rdfaFolder) -
Method Summary
Modifier and TypeMethodDescriptionvoidsetLicHtml(LicenseHTMLFile licHtml) voidsetRdfaFolder(File rdfaFolder) voidsetReleaseDate(String releaseDate) voidsetTableOfContentsHTML(LicenseTOCHTMLFile tableOfContentsHTML) voidsetVersion(String version) voidwriteException(ListedExceptionContainer exceptionContainer) voidwriteLicense(ListedLicenseContainer licenseContainer, boolean deprecated, String deprecatedVersion) Formats and writes a specific licensevoidwriteToC()Write the Table of Contents file for the format if applicable
-
Constructor Details
-
LicenseRdfaFormatWriter
-
-
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(ListedLicenseContainer licenseContainer, boolean deprecated, String deprecatedVersion) throws IOException, LicenseGeneratorException, org.spdx.core.InvalidSPDXAnalysisException Description copied from interface:ILicenseFormatWriterFormats and writes a specific license- Specified by:
writeLicensein interfaceILicenseFormatWriter- Parameters:
licenseContainer- License to be addeddeprecated- True if deprecateddeprecatedVersion- License list version when the license was deprecated, null otherwise- Throws:
IOExceptionLicenseGeneratorExceptionorg.spdx.core.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(ListedExceptionContainer exceptionContainer) throws IOException, org.spdx.licenseTemplate.InvalidLicenseTemplateException, org.spdx.core.InvalidSPDXAnalysisException - Specified by:
writeExceptionin interfaceILicenseFormatWriter- Parameters:
exceptionContainer- Exception to be formatted and written- Throws:
IOExceptionorg.spdx.licenseTemplate.InvalidLicenseTemplateExceptionorg.spdx.core.InvalidSPDXAnalysisException
-