Package org.ossreviewtoolkit.utils.ort
Class ProcessedDeclaredLicense
-
- All Implemented Interfaces:
public final class ProcessedDeclaredLicense
-
-
Field Summary
Fields Modifier and Type Field Description public final static ProcessedDeclaredLicenseEMPTYprivate final List<String>allLicensesprivate final SpdxExpressionspdxExpressionprivate final Map<String, SpdxExpression>mappedprivate final Set<String>unmapped
-
Constructor Summary
Constructors Constructor Description ProcessedDeclaredLicense(SpdxExpression spdxExpression, Map<String, SpdxExpression> mapped, Set<String> unmapped)
-
Method Summary
Modifier and Type Method Description final List<String>getAllLicenses()The list of all mapped and unmapped licenses. final SpdxExpressiongetSpdxExpression()The resulting SPDX expression, or null if no license could be mapped. final Map<String, SpdxExpression>getMapped()A map from the original declared license strings to the SPDX expressions they were mapped to. final Set<String>getUnmapped()Declared licenses that could not be mapped to an SPDX expression. final Set<SpdxSingleLicenseExpression>decompose()Decompose the spdxExpression or return an empty string if it is null. -
-
Method Detail
-
getAllLicenses
final List<String> getAllLicenses()
The list of all mapped and unmapped licenses.
-
getSpdxExpression
final SpdxExpression getSpdxExpression()
The resulting SPDX expression, or null if no license could be mapped.
-
getMapped
final Map<String, SpdxExpression> getMapped()
A map from the original declared license strings to the SPDX expressions they were mapped to. If the original declared license string and the processed declared license are identical they are not contained in this map.
-
getUnmapped
final Set<String> getUnmapped()
Declared licenses that could not be mapped to an SPDX expression.
-
decompose
final Set<SpdxSingleLicenseExpression> decompose()
Decompose the spdxExpression or return an empty string if it is null.
-
-
-
-