Package org.ossreviewtoolkit.model
Class ArtifactProvenance
-
- All Implemented Interfaces:
-
org.ossreviewtoolkit.model.KnownProvenance,org.ossreviewtoolkit.model.Provenance
public final class ArtifactProvenance implements KnownProvenance
Provenance information for a source artifact.
-
-
Field Summary
Fields Modifier and Type Field Description private final RemoteArtifactsourceArtifact
-
Constructor Summary
Constructors Constructor Description ArtifactProvenance(RemoteArtifact sourceArtifact)
-
Method Summary
Modifier and Type Method Description final RemoteArtifactgetSourceArtifact()The source artifact that was downloaded. Booleanmatches(Package pkg)True if this Provenance refers to the same source code as pkg, assuming that it belongs to the package id. -
-
Constructor Detail
-
ArtifactProvenance
ArtifactProvenance(RemoteArtifact sourceArtifact)
-
-
Method Detail
-
getSourceArtifact
final RemoteArtifact getSourceArtifact()
The source artifact that was downloaded.
-
matches
Boolean matches(Package pkg)
True if this Provenance refers to the same source code as pkg, assuming that it belongs to the package id.
-
-
-
-