Class DCLanguage


  • public class DCLanguage
    extends Object
    Utility class for dealing with languages
    Version:
    $Revision$
    Author:
    Robert Tansley
    • Constructor Detail

      • DCLanguage

        public DCLanguage​(String l)
        Construct a language object from a database entry
        Parameters:
        l - the language text from the database
    • Method Detail

      • toString

        public String toString()
        Write the language out to the database
        Overrides:
        toString in class Object
        Returns:
        the language in a form for writing to the DCValue table
      • setLanguage

        public final void setLanguage​(String l)
        Set the language and country
        Parameters:
        l - The language and country code, e.g. "en_US" or "fr"
      • getDisplayName

        public String getDisplayName()
        Get the displayable name for this language
        Returns:
        the displayable name