Class LicenseChoices
-
- All Implemented Interfaces:
public final class LicenseChoicesThe license choices configured for a repository.
-
-
Field Summary
Fields Modifier and Type Field Description private final List<SpdxLicenseChoice>repositoryLicenseChoicesprivate final List<PackageLicenseChoice>packageLicenseChoices
-
Constructor Summary
Constructors Constructor Description LicenseChoices(List<SpdxLicenseChoice> repositoryLicenseChoices, List<PackageLicenseChoice> packageLicenseChoices)
-
Method Summary
Modifier and Type Method Description final List<SpdxLicenseChoice>getRepositoryLicenseChoices()SpdxLicenseChoices that are applied to all packages in the repository. final List<PackageLicenseChoice>getPackageLicenseChoices()final BooleanisEmpty()-
-
Constructor Detail
-
LicenseChoices
LicenseChoices(List<SpdxLicenseChoice> repositoryLicenseChoices, List<PackageLicenseChoice> packageLicenseChoices)
-
-
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.
-
getPackageLicenseChoices
final List<PackageLicenseChoice> getPackageLicenseChoices()
-
-
-
-