Class ExceptionJsonTOC
java.lang.Object
org.spdx.storage.listedlicense.ExceptionJsonTOC
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
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCreate an ExceptionJsonTOCExceptionJsonTOC(String version, String releaseDate) Create an ExceptionJsonTOC -
Method Summary
Modifier and TypeMethodDescriptionvoidaddException(org.spdx.library.model.v2.license.ListedLicenseException exception, String exceptionHTMLReference, String exceptionJSONReference, boolean deprecated) Add a new exception to the list of exceptionsRetrieve a map of lower case to correct case exception IDsRetrieve the list of exceptionsRetrieve the license list versionRetrieve the release datevoidsetLicenseListVersion(String licenseListVersion) Set the license list versionvoidsetReleaseDate(String releaseDate) Set the release date
-
Constructor Details
-
ExceptionJsonTOC
-
ExceptionJsonTOC
public ExceptionJsonTOC()Create an ExceptionJsonTOC
-
-
Method Details
-
getLicenseListVersion
-
getExceptions
Retrieve the list of exceptions- Returns:
- the exceptions
-
getExceptionIds
-
getReleaseDate
-
addException
public void addException(org.spdx.library.model.v2.license.ListedLicenseException exception, String exceptionHTMLReference, String exceptionJSONReference, boolean deprecated) throws org.spdx.core.InvalidSPDXAnalysisException Add a new exception to the list of exceptions- Parameters:
exception- exception to be addedexceptionHTMLReference- URL of the exception HTMLexceptionJSONReference- URL of the JSONdeprecated- true if deprecated- Throws:
org.spdx.core.InvalidSPDXAnalysisException- on error accessing Exception properties
-
setLicenseListVersion
Set the license list version- Parameters:
licenseListVersion- the licenseListVersion to set
-
setReleaseDate
Set the release date- Parameters:
releaseDate- the releaseDate to set
-