Package org.spdx.storage.listedlicense
Class LicenseJsonTOC
java.lang.Object
org.spdx.storage.listedlicense.LicenseJsonTOC
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLicense(SpdxListedLicense license, String licHTMLReference, String licJSONReference, boolean deprecated) Add summary information about a specific license to the licenses listvoidsetLicenseListVersion(String licenseListVersion) voidsetReleaseDate(String releaseDate) protected static StringtoAbsoluteURL(String relURL)
-
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 InvalidSPDXAnalysisException Add 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
-
toAbsoluteURL
-