Class Config

java.lang.Object
edu.university.ecs.lab.common.config.Config

public class Config extends Object
Model to represent the JSON configuration file Some additional notes, this object is p
  • Field Details

    • GIT_SCHEME_DOMAIN

      private static final String GIT_SCHEME_DOMAIN
      See Also:
    • GIT_PATH_EXTENSION

      private static final String GIT_PATH_EXTENSION
      See Also:
    • systemName

      private final String systemName
      The name of the system analyzed
    • repositoryURL

      private final String repositoryURL
      The path to write cloned repository files to
    • branch

      private final String branch
      Initial starting commit for repository
  • Constructor Details

  • Method Details

    • validateConfig

      private void validateConfig(String systemName, String repositoryURL, String branch)
      Check that config file is valid and has all required fields
    • validateRepositoryURL

      private void validateRepositoryURL(String repositoryURL)
      The list of repository objects as indicated by config
    • getRepoName

      public String getRepoName()
      This method gets the repository name parsed from the repositoryURL
      Returns:
      the plain string repository name with no path related characters