public static LicenseChoice resolveSpdxLicenseId ( String licenseId ) throws InvalidSPDXAnalysisException { final SpdxListedLicense spdxLicense = LicenseInfoFactory . getListedLicenseById ( licenseId ) ; final LicenseChoice choice = new LicenseChoice ( ) ; choice . addLicense ( createLicenseObject ( spdxLicense ) ) ; return choice ; }
Given a valid SPDX license ID this method will return a LicenseChoice object .