Package com.e1c.langtool.v8.dt.camelcase
Interface ICamelCaseInterfaceProvider
- All Known Implementing Classes:
CamelCaseInterfaceProvider
public interface ICamelCaseInterfaceProvider
Provider allows to compute data and get translations.
-
Method Summary
Modifier and TypeMethodDescriptionvoidcomputeData(@NonNull org.eclipse.core.runtime.IProgressMonitor monitor) Compute data.booleanStatus of computed data.voiddispose()Delete storage.getAll(@NonNull String source, @NonNull TranslateLanguage sourceLanguage, @NonNull TranslateLanguage targetLanguage, @NonNull org.eclipse.core.runtime.IProgressMonitor monitor) Retrieve saved all translations for givensource.getFirst(@NonNull String source, @NonNull TranslateLanguage sourceLanguage, @NonNull TranslateLanguage targetLanguage, @NonNull org.eclipse.core.runtime.IProgressMonitor monitor) Retrieve saved translation for givensource.voidinvalidate(org.eclipse.core.resources.IFile resource) Invalidate resource in storagevoidstop()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 givensource. If storage has no source for given param then the empty string will be returned.- Parameters:
source- for whitch retrieve cached content, cannot benullsourceLanguage- source languagetargetLanguage- target languagemonitor- 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 givensource. If storage has no source for given param then the empty list will be returned.- Parameters:
source- for whitch retrieve cached content, cannot benullsourceLanguage- source languagetargetLanguage- target languagemonitor- the monitor- Returns:
- all saved translations in order of priority or empty list if no translations found in storage, never
null.
-