Class LicenseFindingCuration
-
- All Implemented Interfaces:
public final class LicenseFindingCurationA curation for a license finding. Use it to correct a license finding or to add a license that was not previously detected.
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringpathprivate final List<Integer>startLinesprivate final IntegerlineCountprivate final SpdxExpressiondetectedLicenseprivate final SpdxExpressionconcludedLicenseprivate final LicenseFindingCurationReasonreasonprivate final Stringcomment
-
Constructor Summary
Constructors Constructor Description LicenseFindingCuration(String path, List<Integer> startLines, Integer lineCount, SpdxExpression detectedLicense, SpdxExpression concludedLicense, LicenseFindingCurationReason reason, String comment)
-
Method Summary
Modifier and Type Method Description final StringgetPath()A glob to match the file path of a license finding. final List<Integer>getStartLines()A matcher for the start line of a license finding, matches if the start line matches any of startLines or if startLines is empty. final IntegergetLineCount()A matcher for the line count of a license finding, matches if the line count equals lineCount or if lineCount is null. final SpdxExpressiongetDetectedLicense()A matcher for the detected license of a license finding, matches if the detected license equals detectedLicense or if detectedLicense is null. final SpdxExpressiongetConcludedLicense()The concluded license as SPDX expression or org.ossreviewtoolkit.utils.spdx.SpdxConstants.NONE for no license, see https://spdx.dev/spdx-specification-21-web-version#h.jxpfx0ykyb60. final LicenseFindingCurationReasongetReason()The reason why the curation was made, out of a predefined choice. final StringgetComment()A comment explaining this LicenseFindingCuration. -
-
Method Detail
-
getStartLines
final List<Integer> getStartLines()
A matcher for the start line of a license finding, matches if the start line matches any of startLines or if startLines is empty.
-
getLineCount
final Integer getLineCount()
A matcher for the line count of a license finding, matches if the line count equals lineCount or if lineCount is null.
-
getDetectedLicense
final SpdxExpression getDetectedLicense()
A matcher for the detected license of a license finding, matches if the detected license equals detectedLicense or if detectedLicense is null.
-
getConcludedLicense
final SpdxExpression getConcludedLicense()
The concluded license as SPDX expression or org.ossreviewtoolkit.utils.spdx.SpdxConstants.NONE for no license, see https://spdx.dev/spdx-specification-21-web-version#h.jxpfx0ykyb60.
-
getReason
final LicenseFindingCurationReason getReason()
The reason why the curation was made, out of a predefined choice.
-
getComment
final String getComment()
A comment explaining this LicenseFindingCuration.
-
-
-
-