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.
-
Method Summary
Modifier and TypeMethodDescriptiongetLanguage(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.IFilegetTranslationFile(org.eclipse.core.resources.IFile v8File, boolean isLocalizable, TranslateLanguage language) Gets the translation file.org.eclipse.core.resources.IFilegetTranslationFile(org.eclipse.core.runtime.IPath v8Path, boolean isLocalizable, TranslateLanguage language) Gets the translation file.org.eclipse.core.runtime.IPathgetTranslationPath(org.eclipse.core.resources.IFile v8File, boolean isLocalizable, TranslateLanguage language) Gets the translation file path.org.eclipse.core.runtime.IPathgetTranslationPath(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.booleanisInterface(org.eclipse.core.resources.IFile translationFile) Checks if the given file is interface translation file.booleanisInterface(org.eclipse.core.runtime.IPath translationPath) Checks if the given file path is interface translation file.booleanisTranslation(org.eclipse.core.resources.IFile translationFile) Checks if the give file is translation file.booleanisTranslation(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 benull.isLocalizable- the is localizablelanguage- the language, cannot benull.- Returns:
- the translation file. It can return
nullwhen 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 benull.isLocalizable- the is localizablelanguage- the language , cannot benull.- Returns:
- the translation file. It can return
nullwhen 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 benull.isLocalizable- the is localizablelanguage- the language, cannot benull.- Returns:
- the translation path. It can return
nullwhen 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 benull.isLocalizable- the is localizablelanguage- the language, cannot benull.- Returns:
- the translation path. It can return
nullwhen it's impossible to get a path to translation file from the given file.
-
getV8File
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
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
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
nullor emptySet.
-
getV8Path
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 viaisTranslation(IPath).- Parameters:
translationPath- the translation path, cannot benull.- 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 viaisTranslation(IFile).- Parameters:
translationFile- the translation file, cannot benull.- Returns:
true, if the file is interface translation file.
-
getLanguage
Gets the translate language from file path.- Parameters:
translationPath- the translation path- Returns:
- the translate language
-
getLanguage
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 benull.- 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 benull.- Returns:
true, if it is translation file
-
getSegment
Gets the segment of translation file name.- Parameters:
translationFile- the translation file, cannot benull.- Returns:
- the segment or
nullif it is not translation file.
-
getSegment
Gets the segment of translation file name.- Parameters:
translationPath- the translation file path, cannot benull.- Returns:
- the segment or
nullif it is not translation file.
-