public class LicenseTemplateFormatWriter extends Object implements ILicenseFormatWriter
| Constructor and Description |
|---|
LicenseTemplateFormatWriter(File templateFolder) |
| Modifier and Type | Method and Description |
|---|---|
File |
getTemplateFolder() |
void |
setTemplateFolder(File templateFolder) |
void |
writeException(org.spdx.rdfparser.license.LicenseException exception,
boolean deprecated,
String deprecatedVersion) |
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 LicenseTemplateFormatWriter(File templateFolder)
templateFolder - Folder containing the template filespublic File getTemplateFolder()
public void setTemplateFolder(File templateFolder)
templateFolder - the templateFolder to setpublic void writeLicense(org.spdx.rdfparser.license.SpdxListedLicense license,
boolean deprecated,
String deprecatedVersion)
throws IOException
ILicenseFormatWriterwriteLicense in interface ILicenseFormatWriterlicense - License to be addeddeprecated - True if deprecateddeprecatedVersion - License list version when the license was deprecated, null otherwiseIOExceptionpublic void writeToC()
throws IOException,
LicenseGeneratorException
ILicenseFormatWriterwriteToC in interface ILicenseFormatWriterIOExceptionLicenseGeneratorExceptionpublic void writeException(org.spdx.rdfparser.license.LicenseException exception,
boolean deprecated,
String deprecatedVersion)
throws IOException,
LicenseGeneratorException
writeException in interface ILicenseFormatWriterexception - Exception to be formatted and writtendeprecated - True if deprecateddeprecatedVersion - License list version when the license was deprecated, null otherwiseIOExceptionLicenseGeneratorExceptionCopyright © 2018 Linux Foundation. All Rights Reserved.