public class LicenseTOCJSONFile extends AbstractJsonFile
| Modifier and Type | Field and Description |
|---|---|
static String |
JSON_REFERENCE_FIELD |
| Constructor and Description |
|---|
LicenseTOCJSONFile(String version,
String releaseDate) |
| Modifier and Type | Method and Description |
|---|---|
void |
addLicense(SpdxListedLicense license,
String licHTMLReference,
String licJSONReference,
boolean deprecated)
Add a license to the JSON table of contents file
|
protected org.json.simple.JSONObject |
getJsonObject() |
writeToFilepublic static final String JSON_REFERENCE_FIELD
public void addLicense(SpdxListedLicense license, String licHTMLReference, String licJSONReference, boolean deprecated)
license - License to be addedlicHTMLReference - file path to the license file HTMLlicHTMLReference - file path to the license file JSON detaildeprecated - true if the license ID is deprecatedprotected org.json.simple.JSONObject getJsonObject()
getJsonObject in class AbstractJsonFileCopyright © 2018 Linux Foundation. All Rights Reserved.