public interface ILicenseFormatWriter
| Modifier and Type | Method and Description |
|---|---|
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
|
void writeLicense(org.spdx.rdfparser.license.SpdxListedLicense license,
boolean deprecated,
String deprecatedVersion)
throws IOException,
LicenseGeneratorException
license - License to be addeddeprecated - True if deprecateddeprecatedVersion - License list version when the license was deprecated, null otherwiseIOExceptionLicenseGeneratorExceptionvoid writeToC()
throws IOException,
LicenseGeneratorException
IOExceptionLicenseGeneratorExceptionvoid writeException(org.spdx.rdfparser.license.ListedLicenseException exception)
throws IOException,
LicenseGeneratorException,
org.spdx.html.InvalidLicenseTemplateException
exception - Exception to be formatted and writtenIOExceptionLicenseGeneratorExceptionorg.spdx.html.InvalidLicenseTemplateExceptionCopyright © 2018 Linux Foundation. All Rights Reserved.