Class PackageConfiguration
-
- All Implemented Interfaces:
public final class PackageConfigurationA configuration for a specific package and provenance. It allows to set up PathExcludes and LicenseFindingCurations, similar to how it is done via the RepositoryConfiguration for projects.
-
-
Field Summary
Fields Modifier and Type Field Description private final Identifieridprivate final StringsourceArtifactUrlprivate final VcsMatchervcsprivate final List<PathExclude>pathExcludesprivate final List<LicenseFindingCuration>licenseFindingCurations
-
Constructor Summary
Constructors Constructor Description PackageConfiguration(Identifier id, String sourceArtifactUrl, VcsMatcher vcs, List<PathExclude> pathExcludes, List<LicenseFindingCuration> licenseFindingCurations)
-
Method Summary
Modifier and Type Method Description final IdentifiergetId()The identifier of the package this configuration applies to. final StringgetSourceArtifactUrl()The source artifact this configuration applies to. final VcsMatchergetVcs()The vcs and revision this configuration applies to. final List<PathExclude>getPathExcludes()Path excludes. final List<LicenseFindingCuration>getLicenseFindingCurations()License finding curations. final Booleanmatches(Identifier otherId, Provenance provenance)-
-
Constructor Detail
-
PackageConfiguration
PackageConfiguration(Identifier id, String sourceArtifactUrl, VcsMatcher vcs, List<PathExclude> pathExcludes, List<LicenseFindingCuration> licenseFindingCurations)
-
-
Method Detail
-
getId
final Identifier getId()
The identifier of the package this configuration applies to.
-
getSourceArtifactUrl
final String getSourceArtifactUrl()
The source artifact this configuration applies to.
-
getVcs
final VcsMatcher getVcs()
The vcs and revision this configuration applies to.
-
getPathExcludes
final List<PathExclude> getPathExcludes()
Path excludes.
-
getLicenseFindingCurations
final List<LicenseFindingCuration> getLicenseFindingCurations()
License finding curations.
-
matches
final Boolean matches(Identifier otherId, Provenance provenance)
-
-
-
-