org.dspace.content
Class DCLanguage

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

public class DCLanguage
extends Object

Utility class for dealing with languages

Version:
$Revision: 3761 $
Author:
Robert Tansley

Constructor Summary
DCLanguage(String l)
          Construct a language object from a database entry
 
Method Summary
 String getDisplayName()
          Get the displayable name for this language
 void setLanguage(String l)
          Set the language and country
 String toString()
          Write the language out to the database
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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 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


Copyright © 2010 DuraSpace. All Rights Reserved.