Class LicenseChoices

  • All Implemented Interfaces:

    
    public final class LicenseChoices
    
                        

    The license choices configured for a repository.

    • Constructor Detail

    • Method Detail

      • getRepositoryLicenseChoices

         final List<SpdxLicenseChoice> getRepositoryLicenseChoices()

        SpdxLicenseChoices that are applied to all packages in the repository. As the SpdxLicenseChoice is applied to each package that offers this license as a choice, SpdxLicenseChoice.given can not be null. This helps only applying the choice to a wanted SpdxLicenseChoice.given as opposed to all licenses with that choice, which could lead to unwanted applied choices.