Class EmptyStatisticsManager

java.lang.Object
com.e1c.langtool.internal.stat.EmptyStatisticsManager
All Implemented Interfaces:
StatisticsManager

public final class EmptyStatisticsManager extends Object implements StatisticsManager
  • Constructor Details

    • EmptyStatisticsManager

      public EmptyStatisticsManager()
  • Method Details

    • getProject

      public @NonNull org.eclipse.core.resources.IProject getProject()
      Description copied from interface: StatisticsManager
      Gets the project to edit statistics.
      Specified by:
      getProject in interface StatisticsManager
      Returns:
      the project, cannot return null.
    • updateProjectStatistic

      public void updateProjectStatistic(@NonNull Statistics statistics)
      Description copied from interface: StatisticsManager
      Update project statistics.
      Specified by:
      updateProjectStatistic in interface StatisticsManager
      Parameters:
      statistics - the statistics, cannot be null.
    • updateProjectLanguageStatistic

      public void updateProjectLanguageStatistic(@NonNull TranslateLanguage language, @NonNull Statistics statistics)
      Description copied from interface: StatisticsManager
      Update project language statistics.
      Specified by:
      updateProjectLanguageStatistic in interface StatisticsManager
      Parameters:
      language - the language, cannot be null.
      statistics - the statistics, cannot be null.
    • updateFullStatistic

      public void updateFullStatistic(@NonNull org.eclipse.core.runtime.IPath path, @NonNull Statistics statistics)
      Description copied from interface: StatisticsManager
      Update full statistics.
      Specified by:
      updateFullStatistic in interface StatisticsManager
      Parameters:
      path - the translation source path, cannot be null.
      statistics - the statistics that may contain all data for each languages, or absent data for all languages will be cleaned. Cannot be null.
    • updateLanguageStatistic

      public void updateLanguageStatistic(@NonNull org.eclipse.core.runtime.IPath path, @NonNull TranslateLanguage language, @NonNull Statistics statistics)
      Description copied from interface: StatisticsManager
      Update statistics.
      Specified by:
      updateLanguageStatistic in interface StatisticsManager
      language - the language, cannot be null.
    • removeStatistic

      public void removeStatistic()
      Description copied from interface: StatisticsManager
      Remove all statistics in this manager for all sources and all languages
      Specified by:
      removeStatistic in interface StatisticsManager
    • removeStatistic

      public void removeStatistic(@NonNull TranslateLanguage language)
      Description copied from interface: StatisticsManager
      Remove statistics for given language.
      Specified by:
      removeStatistic in interface StatisticsManager
      Parameters:
      language - the language, cannot be null.
    • removeStatistic

      public void removeStatistic(org.eclipse.core.runtime.IPath path)
      Description copied from interface: StatisticsManager
      Remove statistics for given path of TranslationSource for all TranslationLanguages.
      Specified by:
      removeStatistic in interface StatisticsManager
      Parameters:
      path - the path, cannot be null.
    • removeStatistic

      public void removeStatistic(@NonNull org.eclipse.core.runtime.IPath path, @NonNull TranslateLanguage language)
      Description copied from interface: StatisticsManager
      Remove statistics for given path of TranslationSource and TranslationLanguage.
      Specified by:
      removeStatistic in interface StatisticsManager
      Parameters:
      path - the path, cannot be null.
      language - the language, cannot be null.
    • startRecomputeFullStatistic

      public void startRecomputeFullStatistic()
      Description copied from interface: StatisticsManager
      Recompute full statistics.
      Specified by:
      startRecomputeFullStatistic in interface StatisticsManager
    • exportStatistics

      public void exportStatistics(Path path, String type)
      Description copied from interface: StatisticsManager
      Exports statistics to an external file in the specified format.
      Specified by:
      exportStatistics in interface StatisticsManager
      Parameters:
      path - the path to the file where the statistics will be exported, cannot be null.
      type - the statistics type, cannot be null