Package org.spdx.html
Class LicenseJSONFile
java.lang.Object
org.spdx.html.AbstractJsonFile
org.spdx.html.LicenseJSONFile
public class LicenseJSONFile extends AbstractJsonFile
This class holds a JSON details file for a specific license
- Author:
- Gary O'Neall
-
Constructor Summary
Constructors Constructor Description LicenseJSONFile()Create a license JSON file with no license initialized -
Method Summary
Modifier and Type Method Description protected org.json.simple.JSONObjectgetJsonObject()voidsetDeprecated(boolean deprecated)voidsetLicense(SpdxListedLicense license, boolean deprecated)
-
Constructor Details
-
LicenseJSONFile
public LicenseJSONFile()Create a license JSON file with no license initialized
-
-
Method Details
-
setLicense
- 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
-