Package org.omegat.languagetools
Class LanguageToolNativeBridge
- java.lang.Object
-
- org.omegat.languagetools.BaseLanguageToolBridge
-
- org.omegat.languagetools.LanguageToolNativeBridge
-
- All Implemented Interfaces:
ILanguageToolBridge
public class LanguageToolNativeBridge extends BaseLanguageToolBridge
-
-
Constructor Summary
Constructors Constructor Description LanguageToolNativeBridge(Language sourceLang, Language targetLang)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
applyRuleFilters(java.util.Set<java.lang.String> disabledCategories, java.util.Set<java.lang.String> disabledRules, java.util.Set<java.lang.String> enabledRules)
Free resources before destructionstatic org.languagetool.Language
getLTLanguage(Language lang)
Get the closest LanguageTool language to the supplied OmegaT language, or null if none can be found.void
stop()
Handle project or application closing-
Methods inherited from class org.omegat.languagetools.BaseLanguageToolBridge
getCheckResults
-
-
-
-
Method Detail
-
stop
public void stop()
Description copied from interface:ILanguageToolBridge
Handle project or application closing
-
applyRuleFilters
public void applyRuleFilters(java.util.Set<java.lang.String> disabledCategories, java.util.Set<java.lang.String> disabledRules, java.util.Set<java.lang.String> enabledRules)
Description copied from interface:ILanguageToolBridge
Free resources before destruction- Parameters:
disabledCategories
- Comma-separated list of disabled category IDsdisabledRules
- Comma-separated list of disabled rule IDsenabledRules
- Comma-separated list of enabled rule IDs
-
getLTLanguage
public static org.languagetool.Language getLTLanguage(Language lang)
Get the closest LanguageTool language to the supplied OmegaT language, or null if none can be found.- See Also:
getLanguageForLanguageNameAndCountry
andgetLanguageForLanguageNameOnly
in Languages.
-
-