Package org.ossreviewtoolkit.model
Class PackageCuration
-
- All Implemented Interfaces:
public final class PackageCurationThis class assigns a PackageCurationData object to a Package identified by the id.
-
-
Field Summary
Fields Modifier and Type Field Description private final Identifieridprivate final PackageCurationDatadata
-
Constructor Summary
Constructors Constructor Description PackageCuration(Identifier id, PackageCurationData data)
-
Method Summary
Modifier and Type Method Description final IdentifiergetId()The identifier of the package. final PackageCurationDatagetData()The curation data for the package. final BooleanisApplicable(Identifier pkgId)Return true if this PackageCuration is applicable to the package with the given identifier. final CuratedPackageapply(CuratedPackage targetPackage)Apply the curation data to the provided targetPackage. -
-
Constructor Detail
-
PackageCuration
PackageCuration(Identifier id, PackageCurationData data)
-
-
Method Detail
-
getId
final Identifier getId()
The identifier of the package.
-
getData
final PackageCurationData getData()
The curation data for the package.
-
isApplicable
final Boolean isApplicable(Identifier pkgId)
Return true if this PackageCuration is applicable to the package with the given identifier. The curation's version may be an Ivy version matcher.
-
apply
final CuratedPackage apply(CuratedPackage targetPackage)
Apply the curation data to the provided targetPackage.
-
-
-
-