Interface ProjectPaths

All Known Implementing Classes:
DesktopProject, LocalProject, ShadowProject

public interface ProjectPaths
Interface providing project paths. This is used to provide direct access project location information.
  • Method Details

    • getLocation

      String getLocation()
      The location of the project. Meaning is dependent on implementation. For LocalProjects this is the path to the project on disk.
      Returns:
      the project location
    • getCorpusPath

      String getCorpusPath(String corpus)
      Return the path to the given corpus.
      Parameters:
      corpus - the corpus name
      Returns:
      the path to the corpus, usually relative to the project
    • setCorpusPath

      void setCorpusPath(String corpus, String path)
      Set path of corpus.
      Parameters:
      corpus - the corpus name
      path - the new path for the corpus
      Throws:
      UnsupportedOperationException - if the project does not support changing corpus paths
    • getSessionPath

      String getSessionPath(Session session)
      Get path to the given session.
      Parameters:
      session -
      Returns:
      path to given session
    • getSessionPath

      String getSessionPath(String corpus, String session)
      Get path to the given session.
      Parameters:
      corpus -
      session -
      Returns:
      path to given session