Package org.spdx.html
Class LicenseExceptionJSONFile
java.lang.Object
org.spdx.html.AbstractJsonFile
org.spdx.html.LicenseExceptionJSONFile
public class LicenseExceptionJSONFile extends AbstractJsonFile
This class holds a JSON details file for a specific license
- Author:
- Gary O'Neall
-
Constructor Summary
Constructors Constructor Description LicenseExceptionJSONFile()Create a license JSON file with no license initializedLicenseExceptionJSONFile(LicenseException exception, boolean deprecated) -
Method Summary
Modifier and Type Method Description protected org.json.simple.JSONObjectgetJsonObject()voidsetDeprecated(boolean deprecated)voidsetException(LicenseException exception, boolean deprecated)
-
Constructor Details
-
LicenseExceptionJSONFile
public LicenseExceptionJSONFile()Create a license JSON file with no license initialized -
LicenseExceptionJSONFile
-
-
Method Details
-
setException
- Parameters:
license-deprecated- True if the license ID is deprecated
-
setDeprecated
public void setDeprecated(boolean deprecated)- Parameters:
deprecated- True if the license ID is deprecated
-
getJsonObject
protected org.json.simple.JSONObject getJsonObject()- Specified by:
getJsonObjectin classAbstractJsonFile- Returns:
- the JsonObject to be written
-