Package org.spdx.html

Class ExceptionTOCJSONFile

java.lang.Object
org.spdx.html.AbstractJsonFile
org.spdx.html.ExceptionTOCJSONFile

public class ExceptionTOCJSONFile
extends AbstractJsonFile
This class holds a JSON file for a license exception table of contents
Author:
Gary O'Neall Copied from LicenseTOCJSONFile by Kyle E. Mitchell
  • Field Details

  • Constructor Details

  • Method Details

    • addException

      public void addException​(LicenseException exception, String excHTMLReference, String excJSONReference, boolean deprecated)
      Add a license to the JSON table of contents file
      Parameters:
      exception - License Exception to be added
      excHTMLReference - file path to the exception file HTML
      excHTMLReference - file path to the exception file JSON detail
      deprecated - true if the exception ID is deprecated
    • getJsonObject

      protected org.json.simple.JSONObject getJsonObject()
      Specified by:
      getJsonObject in class AbstractJsonFile
      Returns:
      the JsonObject to be written