Class Language

java.lang.Object
org.opensextant.data.Language

public class Language extends Object
Simple mapping of ISO 639 id to display name for languages
Author:
ubaldino
  • Constructor Details

    • Language

      public Language(String id, String n)
    • Language

      public Language(String id3, String id2, String n)
      A normalize view of a Language - ISO 639-2 and -1 codes and display name codes are lower cased.
      Parameters:
      id3 - ISO 639-2 3-alpha code
      id2 - ISO 639-2 2-alpha code
      n - name of language
  • Method Details

    • getName

      public String getName()
      Returns:
      display name of language
    • getNameCode

      public String getNameCode()
    • getCode

      public String getCode()
      Returns:
      ISO 639-2 3-char code
    • getISO639_1_Code

      public String getISO639_1_Code()
    • toString

      public String toString()
      Overrides:
      toString in class Object