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(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
|
public File getMarkdownFile()
public void setMarkdownFile(File markdownFile)
markdownFile - the markdownFile 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
ILicenseFormatWriterwriteToC in interface ILicenseFormatWriterIOExceptionpublic void writeException(org.spdx.rdfparser.license.ListedLicenseException exception)
throws IOException
writeException in interface ILicenseFormatWriterexception - Exception to be formatted and writtenIOExceptionCopyright © 2018 Linux Foundation. All Rights Reserved.