Class LanguageToolNativeBridge

    • 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 destruction
      static 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 java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LanguageToolNativeBridge

        public LanguageToolNativeBridge​(Language sourceLang,
                                        Language targetLang)
    • 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 IDs
        disabledRules - Comma-separated list of disabled rule IDs
        enabledRules - 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 and getLanguageForLanguageNameOnly in Languages.