Interface ProjectDeprecated

All Known Implementing Classes:
DesktopProject, LocalProject, ShadowProject

public interface ProjectDeprecated
Interface for deprecated project API extension This interface is used to mark deprecated project API which may still be implemented by some project types.
  • Method Details

    • getCorpora

      @Deprecated List<String> getCorpora()
      Deprecated.
      Get the list of corpora in this project. Corpus names are returned in alphabetical order.
      Returns:
      list of corpora
    • getProjectMediaFolder

      @Deprecated String getProjectMediaFolder()
      Deprecated.
      Since Phon 4.0 use
      invalid reference
      Project#getProjectMediaFolders()
      instead
      Get the media folders for the project, if any are set. If multiple media folders are set, the first one is returned.
    • setProjectMediaFolder

      @Deprecated void setProjectMediaFolder(String mediaFolder)
      Deprecated.
      Since Phon 4.0 use
      invalid reference
      Project#addProjectMediaFolder(String)
      instead
      Set media folder for project, if any are set. If multiple media folders are set, then all are removed and the new folder is added.
      Parameters:
      mediaFolder - If null sets the media folder back to default.
    • hasCustomCorpusMediaFolder

      @Deprecated boolean hasCustomCorpusMediaFolder(String corpus)
      Deprecated.
      Since Phon 4.0 will always return false
      Has a custom corpus media folder been assigned
      Parameters:
      corpus -
      Returns:
      true if a custom media folder is assigned for the given corpus
    • getCorpusMediaFolder

      @Deprecated String getCorpusMediaFolder(String corpus)
      Deprecated.
      Since Phon 4.0 will always return null
      Get the media folder for the specified corpus.
      Returns:
      mediaFolder or the project media folder if not specified
    • setCorpusMediaFolder

      @Deprecated void setCorpusMediaFolder(String corpus, String mediaFolder)
      Deprecated.
      Since Phon 4.0 will do nothing
      Set the media folder for the specified corpus.
      Parameters:
      mediaFolder - the media folder to set
    • getCorpusSessions

      @Deprecated List<String> getCorpusSessions(String corpus)
      Deprecated.
      Get the session names contained in a corpus in alphabetical order.
      Parameters:
      corpus - the corpus to get sessions for
      Returns:
      the list of sessions in the specified corpus