Class GermanyGerman

All Implemented Interfaces:
AutoCloseable
Direct Known Subclasses:
SimpleGerman

public class GermanyGerman extends German
  • Field Details

  • Constructor Details

    • GermanyGerman

      @Deprecated public GermanyGerman()
      Deprecated.
      don't use this method besides the inheritance or core code. Languages are not supposed to be instantiated multiple times. They may contain heavy data which may waste the memory. Use getInstance() instead.
  • Method Details

    • getCountries

      public String[] getCountries()
      Description copied from class: Language
      Get this language's country options , e.g. US (as in en-US) or PL (as in pl-PL).
      Overrides:
      getCountries in class German
      Returns:
      String[] - array of country options for the language.
    • getName

      public String getName()
      Description copied from class: Language
      Get this language's name in English, e.g. English or German (Germany).
      Overrides:
      getName in class German
      Returns:
      language name
    • getRelevantRules

      public List<Rule> getRelevantRules(ResourceBundle messages, UserConfig userConfig, Language motherTongue, List<Language> altLanguages) throws IOException
      Description copied from class: Language
      Get the rules classes that should run for texts in this language.
      Overrides:
      getRelevantRules in class German
      Throws:
      IOException
    • getRelevantLanguageModelCapableRules

      public List<Rule> getRelevantLanguageModelCapableRules(ResourceBundle messages, @Nullable LanguageModel languageModel, GlobalConfig globalConfig, UserConfig userConfig, Language motherTongue, List<Language> altLanguages) throws IOException
      Description copied from class: Language
      Get a list of rules that can optionally use a LanguageModel. Returns an empty list for languages that don't have such rules.
      Overrides:
      getRelevantLanguageModelCapableRules in class Language
      Parameters:
      languageModel - null if no language model is available
      Throws:
      IOException
    • getRuleFileNames

      public List<String> getRuleFileNames()
      Description copied from class: Language
      Get the location of the rule file(s) in a form like /org/languagetool/rules/de/grammar.xml, i.e. a path in the classpath. The files must exist or an exception will be thrown, unless the filename contains the string -test-.
      Overrides:
      getRuleFileNames in class Language
    • isVariant

      public boolean isVariant()
      Description copied from class: Language
      Whether this is a country variant of another language, i.e. whether it doesn't directly extend Language, but a subclass of Language.
      Overrides:
      isVariant in class Language
    • getInstance

      @NotNull public static German getInstance()