Package org.dspace.content
Class DCLanguage
java.lang.Object
org.dspace.content.DCLanguage
Utility class for dealing with languages
- Version:
- $Revision$
- Author:
- Robert Tansley
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the displayable name for this languagefinal voidSet the language and countrytoString()Write the language out to the database
-
Constructor Details
-
DCLanguage
Construct a language object from a database entry- Parameters:
l- the language text from the database
-
-
Method Details
-
toString
Write the language out to the database -
setLanguage
Set the language and country- Parameters:
l- The language and country code, e.g. "en_US" or "fr"
-
getDisplayName
Get the displayable name for this language- Returns:
- the displayable name
-