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
  • Method Details

    • getSpdxListedLicenseIds

      List<String> 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

      boolean isSpdxListedLicenseId(String listedLicenseDocumentUri, String licenseId)
      Parameters:
      listedLicenseDocumentUri -
      licenseId -
      Returns:
      true if the licenseId belongs to an SPDX listed license
    • isSpdxListedExceptionId

      boolean isSpdxListedExceptionId(String listedLicenseDocumentUri, String exceptionId)
      Parameters:
      listedLicenseDocumentUri -
      exceptionId -
      Returns:
      true if the exceptionId belongs to an SPDX listed exception
    • getSpdxListedExceptionIds

      List<String> getSpdxListedExceptionIds()
      Returns:
      list of SPDX exception IDs
    • listedLicenseIdCaseSensitive

      Optional<String> listedLicenseIdCaseSensitive(String licenseId)
      Parameters:
      licenseId - case insensitive license ID
      Returns:
      the case sensitive license ID
    • listedExceptionIdCaseSensitive

      Optional<String> listedExceptionIdCaseSensitive(String exceptionId)
      Parameters:
      exceptionId - case insensitive exception ID
      Returns:
      case sensitive ID