Class ScopedVariableTranslationStorageService
java.lang.Object
com.e1c.langtool.v8.dt.internal.translator.ScopedVariableTranslationStorageService
- All Implemented Interfaces:
IManagedService,IScopedVariableTranslationStorageService
public class ScopedVariableTranslationStorageService
extends Object
implements IScopedVariableTranslationStorageService
The Class that implementing
IScopedVariableTranslationStorageService-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate()voidclearScopes(String moduleName) Clear scopes.voidbooleanhasMultipleTranslation(String moduleName, String methodName, String translation, String excluded) Checks for multiple translation in scoped variable translation storage.voidputTranslation(String moduleName, String methodName, String translation, String variableName) Put translation to scoped variable translation storage.
-
Constructor Details
-
ScopedVariableTranslationStorageService
public ScopedVariableTranslationStorageService()
-
-
Method Details
-
activate
public void activate()- Specified by:
activatein interfaceIManagedService
-
deactivate
public void deactivate()- Specified by:
deactivatein interfaceIManagedService
-
putTranslation
public void putTranslation(String moduleName, String methodName, String translation, String variableName) Description copied from interface:IScopedVariableTranslationStorageServicePut translation to scoped variable translation storage.- Specified by:
putTranslationin interfaceIScopedVariableTranslationStorageService- Parameters:
moduleName- the module name, cannot benullmethodName- the method name, cannot benulltranslation- the translation, cannot benullvariableName- the variable name, cannot benull
-
hasMultipleTranslation
public boolean hasMultipleTranslation(String moduleName, String methodName, String translation, String excluded) Description copied from interface:IScopedVariableTranslationStorageServiceChecks for multiple translation in scoped variable translation storage.- Specified by:
hasMultipleTranslationin interfaceIScopedVariableTranslationStorageService- Parameters:
moduleName- the module name, cannot benullmethodName- the method name, cannot benulltranslation- the translation, cannot benullexcluded- excluding this name from the check, as it may appear multiple times, cannot benull- Returns:
true, if successful
-
clearScopes
Description copied from interface:IScopedVariableTranslationStorageServiceClear scopes.- Specified by:
clearScopesin interfaceIScopedVariableTranslationStorageService- Parameters:
moduleName- the module name, cannot benull
-