Package org.omegat.languagetools
Class LanguageToolNativeBridge
java.lang.Object
org.omegat.languagetools.BaseLanguageToolBridge
org.omegat.languagetools.LanguageToolNativeBridge
- All Implemented Interfaces:
ILanguageToolBridge
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyRuleFilters(Set<String> disabledCategories, Set<String> disabledRules, Set<String> enabledRules) Free resources before destructionstatic org.languagetool.LanguagegetLTLanguage(Language lang) Get the closest LanguageTool language to the supplied OmegaT language, or null if none can be found.voidstop()Handle project or application closingMethods inherited from class org.omegat.languagetools.BaseLanguageToolBridge
getCheckResults
-
Constructor Details
-
LanguageToolNativeBridge
-
-
Method Details
-
stop
public void stop()Description copied from interface:ILanguageToolBridgeHandle project or application closing -
applyRuleFilters
public void applyRuleFilters(Set<String> disabledCategories, Set<String> disabledRules, Set<String> enabledRules) Description copied from interface:ILanguageToolBridgeFree 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
Get the closest LanguageTool language to the supplied OmegaT language, or null if none can be found.- See Also:
-
getLanguageForLanguageNameAndCountryandgetLanguageForLanguageNameOnlyin Languages.
-