Interface ICamelCaseInterfaceProvider

All Known Implementing Classes:
CamelCaseInterfaceProvider

public interface ICamelCaseInterfaceProvider
Provider allows to compute data and get translations.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    computeData(@NonNull org.eclipse.core.runtime.IProgressMonitor monitor)
    Compute data.
    boolean
    Status of computed data.
    void
    Delete storage.
    getAll(@NonNull String source, @NonNull TranslateLanguage sourceLanguage, @NonNull TranslateLanguage targetLanguage, @NonNull org.eclipse.core.runtime.IProgressMonitor monitor)
    Retrieve saved all translations for given source.
    getFirst(@NonNull String source, @NonNull TranslateLanguage sourceLanguage, @NonNull TranslateLanguage targetLanguage, @NonNull org.eclipse.core.runtime.IProgressMonitor monitor)
    Retrieve saved translation for given source.
    void
    invalidate(org.eclipse.core.resources.IFile resource)
    Invalidate resource in storage
    void
    Stop storage.
  • Method Details

    • computeData

      void computeData(@NonNull org.eclipse.core.runtime.IProgressMonitor monitor)
      Compute data.
      Parameters:
      monitor - the monitor
    • dispose

      void dispose()
      Delete storage.
    • stop

      void stop()
      Stop storage.
    • invalidate

      void invalidate(org.eclipse.core.resources.IFile resource)
      Invalidate resource in storage
      Parameters:
      resource -
    • dataComputed

      boolean dataComputed()
      Status of computed data.
      Returns:
      boolean, never null
    • getFirst

      String getFirst(@NonNull String source, @NonNull TranslateLanguage sourceLanguage, @NonNull TranslateLanguage targetLanguage, @NonNull org.eclipse.core.runtime.IProgressMonitor monitor)
      Retrieve saved translation for given source. If storage has no source for given param then the empty string will be returned.
      Parameters:
      source - for whitch retrieve cached content, cannot be null
      sourceLanguage - source language
      targetLanguage - target language
      monitor - the monitor
      Returns:
      saved translation with highest priority or empty string if no translation found in storage, never null.
    • getAll

      List<String> getAll(@NonNull String source, @NonNull TranslateLanguage sourceLanguage, @NonNull TranslateLanguage targetLanguage, @NonNull org.eclipse.core.runtime.IProgressMonitor monitor)
      Retrieve saved all translations for given source. If storage has no source for given param then the empty list will be returned.
      Parameters:
      source - for whitch retrieve cached content, cannot be null
      sourceLanguage - source language
      targetLanguage - target language
      monitor - the monitor
      Returns:
      all saved translations in order of priority or empty list if no translations found in storage, never null.