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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final VcsInfo getVcsInfo() The VCS repository that was downloaded.
      final String getResolvedRevision() The VCS revision of the source code that was downloaded, resolved from vcsInfo during download.
      Boolean matches(Package pkg) Return true if this provenance matches the processed VCS information of the package.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RepositoryProvenance

        RepositoryProvenance(VcsInfo vcsInfo, String resolvedRevision)
    • Method Detail

      • 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.