info.magnolia.cms.i18n
Class LocaleDefinition

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

public class LocaleDefinition
extends Object

General language definition. Used to configure the i18n components.

Version:
$Id$
Author:
philipp

Constructor Summary
  LocaleDefinition()
           
protected LocaleDefinition(String language, String country, boolean enabled)
           
 
Method Summary
 String getCountry()
           
 String getId()
           
 String getLanguage()
           
 Locale getLocale()
          Creates the locale for this definition if not yet set.
 boolean isEnabled()
           
static LocaleDefinition make(String language, String country, boolean enabled)
           
 void setCountry(String country)
           
 void setEnabled(boolean enabled)
           
 void setLanguage(String language)
           
 void setLocale(Locale locale)
           
 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

protected LocaleDefinition(String language,
                           String country,
                           boolean enabled)
Method Detail

make

public static LocaleDefinition make(String language,
                                    String country,
                                    boolean enabled)

getLocale

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


getCountry

public String getCountry()

setCountry

public void setCountry(String country)

isEnabled

public boolean isEnabled()

setEnabled

public void setEnabled(boolean enabled)

getLanguage

public String getLanguage()

setLanguage

public void setLanguage(String language)

setLocale

public void setLocale(Locale locale)

toString

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

Overrides:
toString in class Object

getId

public String getId()


Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.