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()
Create an ExceptionJsonTOCExceptionJsonTOC(String version, String releaseDate)
Create an ExceptionJsonTOC
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addException(org.spdx.library.model.v2.license.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()
String
getLicenseListVersion()
String
getReleaseDate()
void
setLicenseListVersion(String licenseListVersion)
void
setReleaseDate(String releaseDate)
-
-
-
Method Detail
-
getLicenseListVersion
@Nullable public String getLicenseListVersion()
- Returns:
- the licenseListVersion
-
getExceptions
public List<org.spdx.storage.listedlicense.ExceptionJsonTOC.ExceptionJson> getExceptions()
- Returns:
- the exceptions
-
getExceptionIds
public Map<String,String> getExceptionIds()
- Returns:
- map of lower case to correct case exception IDs
-
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
public void setLicenseListVersion(String licenseListVersion)
- Parameters:
licenseListVersion
- the licenseListVersion to set
-
setReleaseDate
public void setReleaseDate(String releaseDate)
- Parameters:
releaseDate
- the releaseDate to set
-
-