Class LanguageBundle

  • Direct Known Subclasses:
    LanguageBundle_fr

    public class LanguageBundle
    extends java.util.ResourceBundle
    This class implements some language specific methods.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.util.ResourceBundle

        java.util.ResourceBundle.Control
    • Field Summary

      • Fields inherited from class java.util.ResourceBundle

        parent
    • 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 locale
      java.util.Enumeration<java.lang.String> getKeys()  
      protected java.lang.Object handleGetObject​(java.lang.String key)  
      • Methods inherited from class java.util.ResourceBundle

        clearCache, clearCache, containsKey, getBaseBundleName, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getLocale, getObject, getString, getStringArray, handleKeySet, keySet, setParent
      • Methods inherited from class java.lang.Object

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

      • LanguageBundle

        public LanguageBundle()
    • 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 word
        dictionary - the current dictionary
        options - the current options
        isFirstWordInSentence - 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 class java.util.ResourceBundle
      • getKeys

        public java.util.Enumeration<java.lang.String> getKeys()
        Specified by:
        getKeys in class java.util.ResourceBundle