Package org.ossreviewtoolkit.model
Class Repository
-
- All Implemented Interfaces:
public final class RepositoryA description of the source code repository that was used as input for ORT.
-
-
Field Summary
Fields Modifier and Type Field Description public final static RepositoryEMPTYprivate final VcsInfovcsprivate final VcsInfovcsProcessedprivate final Map<String, VcsInfo>nestedRepositoriesprivate final RepositoryConfigurationconfig
-
Constructor Summary
Constructors Constructor Description Repository(VcsInfo vcs, VcsInfo vcsProcessed, Map<String, VcsInfo> nestedRepositories, RepositoryConfiguration config)
-
Method Summary
Modifier and Type Method Description final VcsInfogetVcs()Original VCS-related information from the working tree containing the analyzer root. final VcsInfogetVcsProcessed()Processed VCS-related information from the working tree containing the analyzer root that has e.g. final Map<String, VcsInfo>getNestedRepositories()A map of nested repositories, for example Git submodules or Git-Repo modules. final RepositoryConfigurationgetConfig()The configuration of the repository, parsed from ORT_REPO_CONFIG_FILENAME. final StringgetRelativePath(VcsInfo vcs)Return the path of vcs relative to Repository.vcs, or null if vcs is neither Repository.vcs nor contained in nestedRepositories. -
-
Method Detail
-
getVcs
final VcsInfo getVcs()
Original VCS-related information from the working tree containing the analyzer root.
-
getVcsProcessed
final VcsInfo getVcsProcessed()
Processed VCS-related information from the working tree containing the analyzer root that has e.g. common mistakes corrected.
-
getNestedRepositories
final Map<String, VcsInfo> getNestedRepositories()
A map of nested repositories, for example Git submodules or Git-Repo modules. The key is the path to the nested repository relative to the root of the main repository.
-
getConfig
final RepositoryConfiguration getConfig()
The configuration of the repository, parsed from ORT_REPO_CONFIG_FILENAME.
-
getRelativePath
final String getRelativePath(VcsInfo vcs)
Return the path of vcs relative to Repository.vcs, or null if vcs is neither Repository.vcs nor contained in nestedRepositories.
-
-
-
-