public class LocaleDefinition extends Object
Modifier | Constructor and Description |
---|---|
|
LocaleDefinition() |
protected |
LocaleDefinition(String language,
String country,
boolean enabled) |
Modifier and Type | Method and Description |
---|---|
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.
|
public static LocaleDefinition make(String language, String country, boolean enabled)
public Locale getLocale()
public String getCountry()
public void setCountry(String country)
public boolean isEnabled()
public void setEnabled(boolean enabled)
public String getLanguage()
public void setLanguage(String language)
public void setLocale(Locale locale)
public String toString()
public String getId()
Copyright © 2003–2018 Magnolia International Ltd.. All rights reserved.