Class DCLanguage

java.lang.Object
org.dspace.content.DCLanguage

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

    • DCLanguage

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

    • 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