Package org.ossreviewtoolkit.model.utils
Class ExtensionsKt
-
- All Implemented Interfaces:
public final class ExtensionsKt
-
-
Method Summary
Modifier and Type Method Description final StringgetVcsPath()final static StringprependPath(String $self, String prefix)final static TextLocationprependPath(TextLocation $self, String prefix)final static StringprependedPath(TextLocation $self, String prefix)final static Map<String, KnownProvenance>getKnownProvenancesWithoutVcsPath(ProvenanceResolutionResult $self)Return all provenances contained in this ProvenanceResolutionResult, with each having empty VCS path and the revision of the VcsInfo equal to the resolved revision in case of a repository provenance. final static RepositoryProvenanceclearVcsPath(RepositoryProvenance $self)Return a copy of this RepositoryProvenance with an empty VCS path. final static RepositoryProvenancealignRevisions(RepositoryProvenance $self)Return a copy of this RepositoryProvenance with VcsInfo revision set to the resolved revision of this RepositoryProvenance. final static StringparseRepoManifestPath(String $self)Return the repo manifest path parsed from this string. -
-
Method Detail
-
getVcsPath
final String getVcsPath()
-
prependPath
final static String prependPath(String $self, String prefix)
-
prependPath
final static TextLocation prependPath(TextLocation $self, String prefix)
-
prependedPath
final static String prependedPath(TextLocation $self, String prefix)
-
getKnownProvenancesWithoutVcsPath
final static Map<String, KnownProvenance> getKnownProvenancesWithoutVcsPath(ProvenanceResolutionResult $self)
Return all provenances contained in this ProvenanceResolutionResult, with each having empty VCS path and the revision of the VcsInfo equal to the resolved revision in case of a repository provenance.
-
clearVcsPath
final static RepositoryProvenance clearVcsPath(RepositoryProvenance $self)
Return a copy of this RepositoryProvenance with an empty VCS path.
-
alignRevisions
final static RepositoryProvenance alignRevisions(RepositoryProvenance $self)
Return a copy of this RepositoryProvenance with VcsInfo revision set to the resolved revision of this RepositoryProvenance.
-
parseRepoManifestPath
final static String parseRepoManifestPath(String $self)
Return the repo manifest path parsed from this string. The string is interpreted as a URL and the manifest path is expected as the value of the "manifest" query parameter, for example: http://example.com/repo.git?manifest=manifest.xml.
Return an empty string if no "manifest" query parameter is found or this string cannot be parsed as a URL.
-
-
-
-