Class TranslationSettings
java.lang.Object
com.inductiveautomation.ignition.common.i18n.translation.TranslationSettings
Settings that define how translations are handled, including normalization rules like ignoring
whitespace or punctuation.
-
Constructor Summary
ConstructorsConstructorDescriptionTranslationSettings(boolean caseInsensitive, boolean ignoreWhitespace, boolean ignorePunctuation, boolean ignoreTags) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbooleanbooleanbooleaninthashCode()voidsetBaseLocale(Locale baseLocale) voidsetCaseInsensitive(boolean caseInsensitive) voidsetIgnorePunctuation(boolean ignorePunctuation) voidsetIgnoreTags(boolean ignoreTags) voidsetIgnoreWhitespace(boolean ignoreWhitespace)
-
Constructor Details
-
TranslationSettings
public TranslationSettings(boolean caseInsensitive, boolean ignoreWhitespace, boolean ignorePunctuation, boolean ignoreTags) -
TranslationSettings
public TranslationSettings() -
TranslationSettings
-
-
Method Details
-
getIgnoreWhitespace
public boolean getIgnoreWhitespace()- Returns:
- Whether to ignore whitespace when matching terms.
-
setIgnoreWhitespace
public void setIgnoreWhitespace(boolean ignoreWhitespace) -
getIgnorePunctuation
public boolean getIgnorePunctuation()- Returns:
- Whether to ignore punctuation when matching terms.
-
setIgnorePunctuation
public void setIgnorePunctuation(boolean ignorePunctuation) -
getCaseInsensitive
public boolean getCaseInsensitive()- Returns:
- Whether matching terms should be case-insensitive.
-
setCaseInsensitive
public void setCaseInsensitive(boolean caseInsensitive) -
getIgnoreTags
public boolean getIgnoreTags()- Returns:
- Whether to ignore tags (e.g., HTML tags) when matching terms.
-
setIgnoreTags
public void setIgnoreTags(boolean ignoreTags) -
getBaseLocale
-
setBaseLocale
-
hashCode
public int hashCode() -
equals
-