org.jasig.portal.portlets.localization
Class LocaleBean

java.lang.Object
  extended by org.jasig.portal.portlets.localization.LocaleBean
All Implemented Interfaces:
Serializable

public class LocaleBean
extends Object
implements Serializable

LocaleBean wraps a java.util.Locale instance and provides simple getters for the display properties.

Version:
$Revision: 19776 $
Author:
Jen Bourey, jbourey@unicon.net
See Also:
Serialized Form

Constructor Summary
LocaleBean(Locale locale)
          Construct a new locale wrapper bean, using the default display values.
LocaleBean(Locale locale, Locale currentLocale)
          Construct a new locale wrapper bean, setting all display values to the currently specified locale.
 
Method Summary
 String getCode()
          Get the string representation of this locale.
 String getDisplayCountry()
           
 String getDisplayLanguage()
           
 String getDisplayName()
           
 String getDisplayVariant()
           
 Locale getLocale()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocaleBean

public LocaleBean(Locale locale,
                  Locale currentLocale)
Construct a new locale wrapper bean, setting all display values to the currently specified locale.

Parameters:
locale -
currentLocale -

LocaleBean

public LocaleBean(Locale locale)
Construct a new locale wrapper bean, using the default display values.

Parameters:
locale -
Method Detail

getCode

public String getCode()
Get the string representation of this locale.

Returns:

getDisplayName

public String getDisplayName()

getDisplayCountry

public String getDisplayCountry()

getDisplayLanguage

public String getDisplayLanguage()

getDisplayVariant

public String getDisplayVariant()

getLocale

public Locale getLocale()


Copyright © 2010 Jasig. All Rights Reserved.