Package org.omegat.languagetools
Class LanguageToolPrefs
- java.lang.Object
-
- org.omegat.languagetools.LanguageToolPrefs
-
public final class LanguageToolPrefs extends java.lang.Object
Manage LanguageTool preferences from one place
-
-
Field Summary
Fields Modifier and Type Field Description static LanguageToolWrapper.BridgeType
DEFAULT_BRIDGE_TYPE
static java.lang.String
DEFAULT_DISABLED_CATEGORIES
static java.lang.String
DEFAULT_DISABLED_RULES
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
applyRules(ILanguageToolBridge bridge, java.lang.String language)
static void
disableRule(java.lang.String ruleId, java.lang.String languageCode)
static LanguageToolWrapper.BridgeType
getBridgeType()
static java.util.Set<java.lang.String>
getDefaultDisabledCategories()
static java.util.Set<java.lang.String>
getDefaultDisabledRules()
static java.util.Set<java.lang.String>
getDisabledCategories(java.lang.String languageCode)
static java.util.Set<java.lang.String>
getDisabledRules(java.lang.String languageCode)
static java.util.Set<java.lang.String>
getEnabledRules(java.lang.String languageCode)
static java.lang.String
getLocalServerJarPath()
static java.lang.String
getRemoteUrl()
static void
setBridgeType(LanguageToolWrapper.BridgeType bridgeType)
static void
setDisabledCategories(java.util.Set<java.lang.String> categories, java.lang.String languageCode)
static void
setDisabledRules(java.util.Set<java.lang.String> rules, java.lang.String languageCode)
static void
setEnabledRules(java.util.Set<java.lang.String> rules, java.lang.String languageCode)
static void
setLocalServerJarPath(java.lang.String path)
static void
setRemoteUrl(java.lang.String url)
-
-
-
Field Detail
-
DEFAULT_DISABLED_CATEGORIES
public static final java.lang.String DEFAULT_DISABLED_CATEGORIES
- See Also:
- Constant Field Values
-
DEFAULT_DISABLED_RULES
public static final java.lang.String DEFAULT_DISABLED_RULES
- See Also:
- Constant Field Values
-
DEFAULT_BRIDGE_TYPE
public static final LanguageToolWrapper.BridgeType DEFAULT_BRIDGE_TYPE
-
-
Method Detail
-
disableRule
public static void disableRule(java.lang.String ruleId, java.lang.String languageCode)
-
applyRules
public static void applyRules(ILanguageToolBridge bridge, java.lang.String language)
-
setBridgeType
public static void setBridgeType(LanguageToolWrapper.BridgeType bridgeType)
-
getBridgeType
public static LanguageToolWrapper.BridgeType getBridgeType()
-
setRemoteUrl
public static void setRemoteUrl(java.lang.String url)
-
getRemoteUrl
public static java.lang.String getRemoteUrl()
-
setLocalServerJarPath
public static void setLocalServerJarPath(java.lang.String path)
-
getLocalServerJarPath
public static java.lang.String getLocalServerJarPath()
-
setDisabledRules
public static void setDisabledRules(java.util.Set<java.lang.String> rules, java.lang.String languageCode)
-
setEnabledRules
public static void setEnabledRules(java.util.Set<java.lang.String> rules, java.lang.String languageCode)
-
setDisabledCategories
public static void setDisabledCategories(java.util.Set<java.lang.String> categories, java.lang.String languageCode)
-
getDisabledRules
public static java.util.Set<java.lang.String> getDisabledRules(java.lang.String languageCode)
-
getDefaultDisabledRules
public static java.util.Set<java.lang.String> getDefaultDisabledRules()
-
getEnabledRules
public static java.util.Set<java.lang.String> getEnabledRules(java.lang.String languageCode)
-
getDisabledCategories
public static java.util.Set<java.lang.String> getDisabledCategories(java.lang.String languageCode)
-
getDefaultDisabledCategories
public static java.util.Set<java.lang.String> getDefaultDisabledCategories()
-
-