Package org.ossreviewtoolkit.model
Class RepositoryProvenance
-
- All Implemented Interfaces:
-
org.ossreviewtoolkit.model.KnownProvenance,org.ossreviewtoolkit.model.Provenance
public final class RepositoryProvenance implements KnownProvenance
Provenance information for a Version Control System location.
-
-
Field Summary
Fields Modifier and Type Field Description private final VcsInfovcsInfoprivate final StringresolvedRevision
-
Constructor Summary
Constructors Constructor Description RepositoryProvenance(VcsInfo vcsInfo, String resolvedRevision)
-
Method Summary
Modifier and Type Method Description final VcsInfogetVcsInfo()The VCS repository that was downloaded. final StringgetResolvedRevision()The VCS revision of the source code that was downloaded, resolved from vcsInfo during download. Booleanmatches(Package pkg)Return true if this provenance matches the processed VCS information of the package. -
-
Method Detail
-
getVcsInfo
final VcsInfo getVcsInfo()
The VCS repository that was downloaded.
-
getResolvedRevision
final String getResolvedRevision()
The VCS revision of the source code that was downloaded, resolved from vcsInfo during download. Must not be blank, and must also be fixed revision, e.g. the SHA1 of a Git commit instead of a branch or tag name.
-
-
-
-