public class LicenseMarkdownFormatWriter extends Object implements ILicenseFormatWriter
| Constructor and Description |
|---|
LicenseMarkdownFormatWriter(String version,
String releaseDate,
File markdownFile) |
| Modifier and Type | Method and Description |
|---|---|
File |
getMarkdownFile() |
void |
setMarkdownFile(File markdownFile) |
void |
writeException(LicenseException exception,
boolean deprecated,
String deprecatedVersion) |
void |
writeLicense(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 getMarkdownFile()
public void setMarkdownFile(File markdownFile)
markdownFile - the markdownFile to setpublic void writeLicense(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
ILicenseFormatWriterwriteToC in interface ILicenseFormatWriterIOExceptionpublic void writeException(LicenseException exception, boolean deprecated, String deprecatedVersion) throws IOException
writeException in interface ILicenseFormatWriterexception - Exception to be formatted and writtendeprecated - True if deprecateddeprecatedVersion - License list version when the license was deprecated, null otherwiseIOExceptionCopyright © 2018 Linux Foundation. All Rights Reserved.