Package org.spdx.htmltemplates
Class ExceptionHtmlToc
java.lang.Object
org.spdx.htmltemplates.ExceptionHtmlToc
public class ExceptionHtmlToc extends Object
Generates the HTML Table of Contents for License Exceptions
- Author:
- Gary O'Neall
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classExceptionHtmlToc.DeprecatedExceptionRowstatic classExceptionHtmlToc.ExceptionRowHolds the data one of the list rows of exceptions -
Constructor Summary
Constructors Constructor Description ExceptionHtmlToc() -
Method Summary
Modifier and Type Method Description voidaddDeprecatedException(org.spdx.library.model.license.LicenseException exception, String exceptionHTMLReference, String deprecatedVersion)voidaddException(org.spdx.library.model.license.LicenseException exception, String exceptionHTMLReference)Add an exception to the table of contentsvoidwriteToFile(File exceptionTocFile, String version)Creates and writes an Exception Table of Contents file
-
Constructor Details
-
ExceptionHtmlToc
public ExceptionHtmlToc()
-
-
Method Details
-
addException
public void addException(org.spdx.library.model.license.LicenseException exception, String exceptionHTMLReference) throws org.spdx.library.InvalidSPDXAnalysisExceptionAdd an exception to the table of contents- Parameters:
exception-exceptionHTMLReference-- Throws:
org.spdx.library.InvalidSPDXAnalysisException
-
addDeprecatedException
public void addDeprecatedException(org.spdx.library.model.license.LicenseException exception, String exceptionHTMLReference, String deprecatedVersion) throws org.spdx.library.InvalidSPDXAnalysisException- Throws:
org.spdx.library.InvalidSPDXAnalysisException
-
writeToFile
public void writeToFile(File exceptionTocFile, String version) throws com.github.mustachejava.MustacheException, IOExceptionCreates and writes an Exception Table of Contents file- Parameters:
exceptionTocFile- file to write toversion- Version of the License List- Throws:
IOExceptioncom.github.mustachejava.MustacheException
-