Package org.spdx.storage.listedlicense
Class ExceptionJsonTOC
java.lang.Object
org.spdx.storage.listedlicense.ExceptionJsonTOC
public class ExceptionJsonTOC extends Object
Table of Contents for the listed license list as represented as a JSON index file
at spdx.org/licenses/licenses.json
- Author:
- Gary O'Neall
-
Constructor Summary
Constructors Constructor Description ExceptionJsonTOC()ExceptionJsonTOC(String version, String releaseDate) -
Method Summary
Modifier and Type Method Description voidaddException(ListedLicenseException exception, String exceptionHTMLReference, String exceptionJSONReference, boolean deprecated)Add a new exception to the list of exceptionsMap<String,String>getExceptionIds()List<org.spdx.storage.listedlicense.ExceptionJsonTOC.ExceptionJson>getExceptions()StringgetLicenseListVersion()StringgetReleaseDate()voidsetLicenseListVersion(String licenseListVersion)voidsetReleaseDate(String releaseDate)
-
Constructor Details
-
ExceptionJsonTOC
-
ExceptionJsonTOC
public ExceptionJsonTOC()
-
-
Method Details
-
getLicenseListVersion
- Returns:
- the licenseListVersion
-
getExceptions
- Returns:
- the exceptions
-
getExceptionIds
- Returns:
- map of lower case to correct case exception IDs
-
getReleaseDate
- Returns:
- the releaseDate
-
addException
public void addException(ListedLicenseException exception, String exceptionHTMLReference, String exceptionJSONReference, boolean deprecated) throws InvalidSPDXAnalysisExceptionAdd a new exception to the list of exceptions- Parameters:
exception-exceptionHTMLReference-exceptionJSONReference-deprecated-- Throws:
InvalidSPDXAnalysisException
-
setLicenseListVersion
- Parameters:
licenseListVersion- the licenseListVersion to set
-
setReleaseDate
- Parameters:
releaseDate- the releaseDate to set
-