Class NLSEntry

java.lang.Object
de.mid.innovator.m2msdk.model.option.NLSEntry

public class NLSEntry extends Object
A single NLS entry to support descriptions for multiple languages.
Version:
11.4.1
Author:
jmback
  • Constructor Details

    • NLSEntry

      public NLSEntry(String iKind)
    • NLSEntry

      public NLSEntry(String iKind, org.jdom2.Element iElement)
      Construct an NLS entry from an XML element.
      Parameters:
      iKind -
      iElement - XML element
  • Method Details

    • getText

      public String getText(String iCode)
      Get the translated text for a coded language. The language is coded in two characters for language and optionally separated by underscore two characters for country. If no fitting country is found, no country is taken. If no fitting language is found, the default is taken.
      Parameters:
      iCode - language code
      Returns:
      translated text in language.
    • getLanguages

      public Set<Map.Entry<String,String>> getLanguages()
    • addText

      public boolean addText(String sText)
    • toString

      public String toString()
      Overrides:
      toString in class Object