public class LicenseJSONFile extends AbstractJsonFile
| Constructor and Description |
|---|
LicenseJSONFile()
Create a license JSON file with no license initialized
|
| Modifier and Type | Method and Description |
|---|---|
protected org.json.simple.JSONObject |
getJsonObject() |
void |
setDeprecated(boolean deprecated) |
void |
setLicense(SpdxListedLicense license,
boolean deprecated) |
writeToFilepublic LicenseJSONFile()
public void setLicense(SpdxListedLicense license, boolean deprecated)
license - deprecated - True if the license ID is deprecatedpublic void setDeprecated(boolean deprecated)
deprecated - True if the license ID is deprecatedprotected org.json.simple.JSONObject getJsonObject()
getJsonObject in class AbstractJsonFileCopyright © 2017 Linux Foundation. All Rights Reserved.