Package org.ossreviewtoolkit.model
Class LicenseFinding
-
- All Implemented Interfaces:
public final class LicenseFindingA class representing a license finding. License findings can point to single licenses or to complex SpdxExpressions, depending on the capabilities of the used license scanner. LicenseFindingCurations can also be used to create findings with complex expressions.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classLicenseFinding.Companion
-
Field Summary
Fields Modifier and Type Field Description private final SpdxExpressionlicenseprivate final TextLocationlocationprivate final Floatscorepublic final static LicenseFinding.CompanionCompanion
-
Constructor Summary
Constructors Constructor Description LicenseFinding(String license, TextLocation location, Float score)LicenseFinding(SpdxExpression license, TextLocation location, Float score)
-
Method Summary
Modifier and Type Method Description final SpdxExpressiongetLicense()The found SPDX expression. final TextLocationgetLocation()The text location where the license was found. final FloatgetScore()The score of a license finding. -
-
Constructor Detail
-
LicenseFinding
LicenseFinding(String license, TextLocation location, Float score)
-
LicenseFinding
LicenseFinding(SpdxExpression license, TextLocation location, Float score)
-
-
Method Detail
-
getLicense
final SpdxExpression getLicense()
The found SPDX expression.
-
getLocation
final TextLocation getLocation()
The text location where the license was found.
-
getScore
final Float getScore()
The score of a license finding. Its exact meaning is scanner-specific, but it should give some hint at how much the finding can be relied on / how confident the scanner is to be right. In most cases this is a percentage where 100.0 means that the scanner is 100% confident that the finding is correct.
-
-
-
-