Class LangBase

java.lang.Object
org.luwrain.i18n.LangBase
All Implemented Interfaces:
Lang

public abstract class LangBase extends Object implements Lang
  • Field Details

  • Constructor Details

  • Method Details

    • getStaticStr

      public String getStaticStr(String id)
      Description copied from interface: Lang
      Provides some statically stored string on corresponding national language. This method should process values related to environment itself, rather than taking care about particular applications.
      Specified by:
      getStaticStr in interface Lang
      Parameters:
      id - The identifier of the string
      Returns:
      Requested string or null, if id is unknown
    • hasSpecialNameOfChar

      public String hasSpecialNameOfChar(char ch)
      Description copied from interface: Lang
      Provides some language-dependent name of the character in one or several words.
      Specified by:
      hasSpecialNameOfChar in interface Lang
      Parameters:
      ch - The character to get name of
      Returns:
      The name of the given character
    • getNumberStr

      public String getNumberStr(Number num, GrammaticalAttr gramAttr, Word depWord)
      Specified by:
      getNumberStr in interface Lang
    • getWord

      public Word[] getWord(String word)
      Specified by:
      getWord in interface Lang
    • getResource

      public InputStream getResource(String resourceName)
      Specified by:
      getResource in interface Lang
    • getTextExp

      public String getTextExp(String expName, Function<Object,Object> args)
      Specified by:
      getTextExp in interface Lang