Package org.spdx.storage.listedlicense
Class LicenseJsonTOC
java.lang.Object
org.spdx.storage.listedlicense.LicenseJsonTOC
public class LicenseJsonTOC extends Object
Table of Contents for the listed license list as represented as a JSON index file
at spdx.org/licenses/licenses.json
- Author:
- Gary O'Neall
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLicenseJsonTOC.LicenseJson -
Constructor Summary
Constructors Constructor Description LicenseJsonTOC()LicenseJsonTOC(String version, String releaseDate) -
Method Summary
Modifier and Type Method Description voidaddLicense(SpdxListedLicense license, String licHTMLReference, String licJSONReference, boolean deprecated)Add summary information about a specific license to the licenses listMap<String,String>getLicenseIds()StringgetLicenseListVersion()List<LicenseJsonTOC.LicenseJson>getLicenses()StringgetReleaseDate()voidsetLicenseListVersion(String licenseListVersion)voidsetReleaseDate(String releaseDate)
-
Constructor Details
-
LicenseJsonTOC
-
LicenseJsonTOC
public LicenseJsonTOC()
-
-
Method Details
-
getLicenseListVersion
- Returns:
- the licenseListVersion
-
getLicenses
- Returns:
- the licenses
-
getLicenseIds
- Returns:
- map of lower case to correct case license IDs
-
getReleaseDate
- Returns:
- the releaseDate
-
addLicense
public void addLicense(SpdxListedLicense license, String licHTMLReference, String licJSONReference, boolean deprecated) throws InvalidSPDXAnalysisExceptionAdd summary information about a specific license to the licenses list- Parameters:
license-licHTMLReference-licJSONReference-deprecated-- Throws:
InvalidSPDXAnalysisException
-
setLicenseListVersion
- Parameters:
licenseListVersion- the licenseListVersion to set
-
setReleaseDate
- Parameters:
releaseDate- the releaseDate to set
-