public class LicenseJSONFile extends Object
| Constructor and Description |
|---|
LicenseJSONFile()
Create a license JSON file with no license initialized
|
| Modifier and Type | Method and Description |
|---|---|
void |
setDeprecated(boolean deprecated) |
void |
setLicense(SpdxListedLicense license,
boolean deprecated) |
void |
writeToFile(File jsonFile) |
public 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 deprecatedpublic void writeToFile(File jsonFile) throws IOException
jsonFile - File to write JSON data toIOExceptionCopyright © 2016 Linux Foundation. All Rights Reserved.