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 Details

    • ExceptionJsonTOC

      public ExceptionJsonTOC(String version, String releaseDate)
    • ExceptionJsonTOC

      public ExceptionJsonTOC()
  • Method Details

    • 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
    • getReleaseDate

      @Nullable public String getReleaseDate()
      Returns:
      the releaseDate
    • addException

      public void addException(ListedLicenseException exception, String exceptionHTMLReference, String exceptionJSONReference, boolean deprecated) throws InvalidSPDXAnalysisException
      Add a new exception to the list of exceptions
      Parameters:
      exception -
      exceptionHTMLReference -
      exceptionJSONReference -
      deprecated -
      Throws:
      InvalidSPDXAnalysisException
    • setLicenseListVersion

      public void setLicenseListVersion(String licenseListVersion)
      Parameters:
      licenseListVersion - the licenseListVersion to set
    • setReleaseDate

      public void setReleaseDate(String releaseDate)
      Parameters:
      releaseDate - the releaseDate to set