info.magnolia.cms.i18n
Class LocaleDefinition

java.lang.Object
  extended by info.magnolia.cms.i18n.LocaleDefinition

public class LocaleDefinition
extends java.lang.Object

General language definition. Used to configure the i18n components.

Version:
$Id: LocaleDefinition.java 41137 2011-01-06 18:19:25Z gjoseph $
Author:
philipp

Constructor Summary
LocaleDefinition()
           
LocaleDefinition(java.lang.String language, java.lang.String country, boolean enabled)
           
 
Method Summary
 java.lang.String getCountry()
           
 java.lang.String getId()
           
 java.lang.String getLanguage()
           
 java.util.Locale getLocale()
          Creates the locale for this definition if not yet set.
 boolean isEnabled()
           
 void setCountry(java.lang.String country)
           
 void setEnabled(boolean enabled)
           
 void setLanguage(java.lang.String language)
           
 void setLocale(java.util.Locale locale)
           
 java.lang.String toString()
          Uses the locals toString() method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LocaleDefinition

public LocaleDefinition()

LocaleDefinition

public LocaleDefinition(java.lang.String language,
                        java.lang.String country,
                        boolean enabled)
Method Detail

getLocale

public java.util.Locale getLocale()
Creates the locale for this definition if not yet set.


getCountry

public java.lang.String getCountry()

setCountry

public void setCountry(java.lang.String country)

isEnabled

public boolean isEnabled()

setEnabled

public void setEnabled(boolean enabled)

getLanguage

public java.lang.String getLanguage()

setLanguage

public void setLanguage(java.lang.String language)

setLocale

public void setLocale(java.util.Locale locale)

toString

public java.lang.String toString()
Uses the locals toString() method.

Overrides:
toString in class java.lang.Object

getId

public java.lang.String getId()


Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.