Class MarkdownTable
java.lang.Object
org.spdx.licenselistpublisher.MarkdownTable
Holds license information and generates a file in markdown format which links to the HTML version of the license files
- Author:
- Gary O'Neall
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddException(org.spdx.library.model.v2.license.LicenseException exception, boolean deprecated) Add an exception to be added to the markdown table of contentsvoidaddLicense(org.spdx.library.model.v2.license.SpdxListedLicense license, boolean deprecated) Add a license to be included in the markdown table of contentsvoidWrite the text for all of the added licenses and exceptions in the form of a MarkDown formatted tablevoidwriteToFile(File file) Write the markdown table of contents to an existing file.
-
Constructor Details
-
MarkdownTable
-
-
Method Details
-
addException
public void addException(org.spdx.library.model.v2.license.LicenseException exception, boolean deprecated) throws org.spdx.core.InvalidSPDXAnalysisException Add an exception to be added to the markdown table of contents- Parameters:
exception-deprecated-- Throws:
org.spdx.core.InvalidSPDXAnalysisException
-
addLicense
public void addLicense(org.spdx.library.model.v2.license.SpdxListedLicense license, boolean deprecated) throws org.spdx.core.InvalidSPDXAnalysisException Add a license to be included in the markdown table of contents- Parameters:
license-deprecated-- Throws:
org.spdx.core.InvalidSPDXAnalysisException
-
writeToFile
Write the markdown table of contents to an existing file. Overwrites all content- Parameters:
file-- Throws:
IOException
-
writeTOC
Write the text for all of the added licenses and exceptions in the form of a MarkDown formatted table- Parameters:
writer-- Throws:
IOException
-