Interface IV8FileNameConverter

All Known Implementing Classes:
AbstractV8FileNameConverter, ProjectCommonFileNameConverter, V8FileNameConverter

public interface IV8FileNameConverter
The Interface for converter for v8 file to translation file and reversed convertion.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    getLanguage(org.eclipse.core.resources.IFile translationFile)
    Gets the translate language file.
    getLanguage(org.eclipse.core.runtime.IPath translationPath)
    Gets the translate language from file path.
    getSegment(org.eclipse.core.resources.IFile translationFile)
    Gets the segment of translation file name.
    getSegment(org.eclipse.core.runtime.IPath translationPath)
    Gets the segment of translation file name.
    org.eclipse.core.resources.IFile
    getTranslationFile(org.eclipse.core.resources.IFile v8File, boolean isLocalizable, TranslateLanguage language)
    Gets the translation file.
    org.eclipse.core.resources.IFile
    getTranslationFile(org.eclipse.core.runtime.IPath v8Path, boolean isLocalizable, TranslateLanguage language)
    Gets the translation file.
    org.eclipse.core.runtime.IPath
    getTranslationPath(org.eclipse.core.resources.IFile v8File, boolean isLocalizable, TranslateLanguage language)
    Gets the translation file path.
    org.eclipse.core.runtime.IPath
    getTranslationPath(org.eclipse.core.runtime.IPath v8Path, boolean isLocalizable, TranslateLanguage language)
    Gets the translation path.
    Set<org.eclipse.core.resources.IFile>
    getV8File(org.eclipse.core.resources.IFile translationFile)
    Gets the v8 files by the given translation file.
    Set<org.eclipse.core.resources.IFile>
    getV8File(org.eclipse.core.runtime.IPath translationPath)
    Gets the v8 files by the given translation file path.
    Set<org.eclipse.core.runtime.IPath>
    getV8Path(org.eclipse.core.resources.IFile translationFile)
    Gets the v8 file path by the given translation file.
    Set<org.eclipse.core.runtime.IPath>
    getV8Path(org.eclipse.core.runtime.IPath translationPath)
    Gets the v8 file path by the given translation file path.
    boolean
    isInterface(org.eclipse.core.resources.IFile translationFile)
    Checks if the given file is interface translation file.
    boolean
    isInterface(org.eclipse.core.runtime.IPath translationPath)
    Checks if the given file path is interface translation file.
    boolean
    isTranslation(org.eclipse.core.resources.IFile translationFile)
    Checks if the give file is translation file.
    boolean
    isTranslation(org.eclipse.core.runtime.IPath translationPath)
    Checks if the given file path is translation file.
  • Method Details

    • getTranslationFile

      org.eclipse.core.resources.IFile getTranslationFile(org.eclipse.core.resources.IFile v8File, boolean isLocalizable, TranslateLanguage language)
      Gets the translation file.
      Parameters:
      v8File - the v8 file, cannot be null.
      isLocalizable - the is localizable
      language - the language, cannot be null.
      Returns:
      the translation file. It can return null when it's impossible to get translation file from the given file.
    • getTranslationFile

      org.eclipse.core.resources.IFile getTranslationFile(org.eclipse.core.runtime.IPath v8Path, boolean isLocalizable, TranslateLanguage language)
      Gets the translation file.
      Parameters:
      v8Path - the v8 path, cannot be null.
      isLocalizable - the is localizable
      language - the language , cannot be null.
      Returns:
      the translation file. It can return null when it's impossible to get translation file from the given path.
    • getTranslationPath

      org.eclipse.core.runtime.IPath getTranslationPath(org.eclipse.core.runtime.IPath v8Path, boolean isLocalizable, TranslateLanguage language)
      Gets the translation path.
      Parameters:
      v8Path - the v8 path, cannot be null.
      isLocalizable - the is localizable
      language - the language, cannot be null.
      Returns:
      the translation path. It can return null when it's impossible to get a path to translation file from the given path.
    • getTranslationPath

      org.eclipse.core.runtime.IPath getTranslationPath(org.eclipse.core.resources.IFile v8File, boolean isLocalizable, TranslateLanguage language)
      Gets the translation file path.
      Parameters:
      v8File - the v8 file, cannot be null.
      isLocalizable - the is localizable
      language - the language, cannot be null.
      Returns:
      the translation path. It can return null when it's impossible to get a path to translation file from the given file.
    • getV8File

      Set<org.eclipse.core.resources.IFile> getV8File(org.eclipse.core.resources.IFile translationFile)
      Gets the v8 files by the given translation file. Caller could not to check that given file is translation file.
      Parameters:
      translationFile - the translation file
      Returns:
      all possible v8 files converted from translation file
    • getV8File

      Set<org.eclipse.core.resources.IFile> getV8File(org.eclipse.core.runtime.IPath translationPath)
      Gets the v8 files by the given translation file path. Caller could not to check that given file path is translation file.
      Parameters:
      translationPath - the translation path
      Returns:
      all possible v8 files converted from translation file
    • getV8Path

      Set<org.eclipse.core.runtime.IPath> getV8Path(org.eclipse.core.runtime.IPath translationPath)
      Gets the v8 file path by the given translation file path. Caller could not to check that given file path is translation file.
      Parameters:
      translationPath - the translation path
      Returns:
      all possible v8 files converted from translation file. Can return null or empty Set.
    • getV8Path

      Set<org.eclipse.core.runtime.IPath> getV8Path(org.eclipse.core.resources.IFile translationFile)
      Gets the v8 file path by the given translation file. Caller could not to check that given file is translation file.
      Parameters:
      translationFile - the translation file
      Returns:
      all possible v8 files converted from translation file
    • isInterface

      boolean isInterface(org.eclipse.core.runtime.IPath translationPath)
      Checks if the given file path is interface translation file. Caller must check first that the file is translation file via isTranslation(IPath).
      Parameters:
      translationPath - the translation path, cannot be null.
      Returns:
      true, if the file path is interface translation file.
    • isInterface

      boolean isInterface(org.eclipse.core.resources.IFile translationFile)
      Checks if the given file is interface translation file. Caller must check first that the file is translation file via isTranslation(IFile).
      Parameters:
      translationFile - the translation file, cannot be null.
      Returns:
      true, if the file is interface translation file.
    • getLanguage

      TranslateLanguage getLanguage(org.eclipse.core.runtime.IPath translationPath)
      Gets the translate language from file path.
      Parameters:
      translationPath - the translation path
      Returns:
      the translate language
    • getLanguage

      TranslateLanguage getLanguage(org.eclipse.core.resources.IFile translationFile)
      Gets the translate language file.
      Parameters:
      translationFile - the translation file
      Returns:
      the translate language
    • isTranslation

      boolean isTranslation(org.eclipse.core.runtime.IPath translationPath)
      Checks if the given file path is translation file.
      Parameters:
      translationPath - the translation path, can be null.
      Returns:
      true, if it is translation file
    • isTranslation

      boolean isTranslation(org.eclipse.core.resources.IFile translationFile)
      Checks if the give file is translation file.
      Parameters:
      translationFile - the translation file, can be null.
      Returns:
      true, if it is translation file
    • getSegment

      String getSegment(org.eclipse.core.resources.IFile translationFile)
      Gets the segment of translation file name.
      Parameters:
      translationFile - the translation file, cannot be null.
      Returns:
      the segment or null if it is not translation file.
    • getSegment

      String getSegment(org.eclipse.core.runtime.IPath translationPath)
      Gets the segment of translation file name.
      Parameters:
      translationPath - the translation file path, cannot be null.
      Returns:
      the segment or null if it is not translation file.