Package org.dspace.content
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 Summary
Constructors Constructor Description DCLanguage(String l)Construct a language object from a database entry
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDisplayName()Get the displayable name for this languagevoidsetLanguage(String l)Set the language and countryStringtoString()Write the language out to the database
-
-
-
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
-
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
-
-