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 Summary
Fields Modifier and Type Field Description static StringJSON_REFERENCE_FIELD -
Constructor Summary
Constructors Constructor Description ExceptionTOCJSONFile(String version, String releaseDate) -
Method Summary
Modifier and Type Method Description voidaddException(LicenseException exception, String excHTMLReference, String excJSONReference, boolean deprecated)Add a license to the JSON table of contents fileprotected org.json.simple.JSONObjectgetJsonObject()
-
Field Details
-
JSON_REFERENCE_FIELD
- See Also:
- Constant Field Values
-
-
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 addedexcHTMLReference- file path to the exception file HTMLexcHTMLReference- file path to the exception file JSON detaildeprecated- true if the exception ID is deprecated
-
getJsonObject
protected org.json.simple.JSONObject getJsonObject()- Specified by:
getJsonObjectin classAbstractJsonFile- Returns:
- the JsonObject to be written
-