Package org.spdx.storage.listedlicense
Interface IListedLicenseStore
- All Superinterfaces:
AutoCloseable,IModelStore
- All Known Implementing Classes:
SpdxListedLicenseLocalStore,SpdxListedLicenseModelStore,SpdxListedLicenseWebStore
public interface IListedLicenseStore extends IModelStore
- Author:
- Gary O'Neall Extends the model store to include interfaces specific to listed licenses
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.spdx.storage.IModelStore
IModelStore.IdType, IModelStore.IModelStoreLock, IModelStore.ModelUpdate -
Method Summary
Modifier and Type Method Description StringgetLicenseListVersion()List<String>getSpdxListedExceptionIds()List<String>getSpdxListedLicenseIds()booleanisSpdxListedExceptionId(String listedLicenseDocumentUri, String exceptionId)booleanisSpdxListedLicenseId(String listedLicenseDocumentUri, String licenseId)Optional<String>listedExceptionIdCaseSensitive(String exceptionId)Optional<String>listedLicenseIdCaseSensitive(String licenseId)Methods inherited from interface org.spdx.storage.IModelStore
addValueToCollection, clearValueCollection, collectionContains, collectionSize, create, delete, enterCriticalSection, exists, getAllItems, getCaseSensisitiveId, getDocumentUris, getIdType, getNextId, getPropertyValueNames, getTypedValue, getValue, isCollectionMembersAssignableTo, isCollectionProperty, isPropertyValueAssignableTo, leaveCriticalSection, listValues, removeProperty, removeValueFromCollection, setValue
-
Method Details
-
getSpdxListedLicenseIds
- Returns:
- List of all SPDX listed license IDs
-
getLicenseListVersion
String getLicenseListVersion()- Returns:
- The version of the loaded license list in the form M.N, where M is the major release and N is the minor release.
-
isSpdxListedLicenseId
- Parameters:
listedLicenseDocumentUri-licenseId-- Returns:
- true if the licenseId belongs to an SPDX listed license
-
isSpdxListedExceptionId
- Parameters:
listedLicenseDocumentUri-exceptionId-- Returns:
- true if the exceptionId belongs to an SPDX listed exception
-
getSpdxListedExceptionIds
- Returns:
- list of SPDX exception IDs
-
listedLicenseIdCaseSensitive
- Parameters:
licenseId- case insensitive license ID- Returns:
- the case sensitive license ID
-
listedExceptionIdCaseSensitive
- Parameters:
exceptionId- case insensitive exception ID- Returns:
- case sensitive ID
-