public class LicenseTOCJSONFile extends Object
| 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
|
void |
writeToFile(File jsonFile) |
public 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 deprecatedpublic void writeToFile(File jsonFile) throws IOException
IOExceptionCopyright © 2016 Linux Foundation. All Rights Reserved.