Package com.inet.jortho
Class LanguageBundle
- java.lang.Object
-
- java.util.ResourceBundle
-
- com.inet.jortho.LanguageBundle
-
- Direct Known Subclasses:
LanguageBundle_fr
public class LanguageBundle extends java.util.ResourceBundle
This class implements some language specific methods.
-
-
Constructor Summary
Constructors Constructor Description LanguageBundle()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) boolean
existInDictionary(java.lang.String word, Dictionary dictionary, SpellCheckerOptions options, boolean isFirstWordInSentence)
Check if the word is in the current dictionary.(package private) static LanguageBundle
get(java.util.Locale locale)
Get a implementations of this class for the given localejava.util.Enumeration<java.lang.String>
getKeys()
protected java.lang.Object
handleGetObject(java.lang.String key)
-
-
-
Method Detail
-
get
static LanguageBundle get(java.util.Locale locale)
Get a implementations of this class for the given locale- Parameters:
locale
- the current spell checking language- Returns:
- an instance, never null
-
existInDictionary
boolean existInDictionary(java.lang.String word, Dictionary dictionary, SpellCheckerOptions options, boolean isFirstWordInSentence)
Check if the word is in the current dictionary. It verify the options isCaseSensitive, getIgnoreCapitalization and the first word of sentence- Parameters:
word
- current worddictionary
- the current dictionaryoptions
- the current optionsisFirstWordInSentence
- if the word is the first in a sentence- Returns:
- true, if the word is in the dictionary
-
handleGetObject
protected java.lang.Object handleGetObject(java.lang.String key)
- Specified by:
handleGetObject
in classjava.util.ResourceBundle
-
getKeys
public java.util.Enumeration<java.lang.String> getKeys()
- Specified by:
getKeys
in classjava.util.ResourceBundle
-
-