public class LocaleUtils extends Object
Modifier and Type | Method and Description |
---|---|
Set<GwtLocale> |
getAllCompileLocales()
Returns the set of all compile-time locales.
|
Set<GwtLocale> |
getAllLocales()
Returns the set of all available locales, whether compile-time locales or
runtime locales.
|
GwtLocale |
getCompileLocale()
Returns the static compile-time locale for this permutation.
|
String |
getCookie()
Return the name of the cookie to potentially get the locale value from.
|
static LocaleUtils |
getInstance(com.google.gwt.core.ext.TreeLogger logger,
com.google.gwt.core.ext.PropertyOracle propertyOracle,
com.google.gwt.core.ext.GeneratorContext context)
Create a new LocaleUtils instance for the given PropertyOracle.
|
static GwtLocaleFactory |
getLocaleFactory()
Get a shared GwtLocale factory so instances are cached between all uses.
|
String |
getQueryParam()
Return the name of the URL query param to potentially get the locale value
from.
|
Set<GwtLocale> |
getRuntimeLocales()
Returns a list of locales which are children of the current compile-time
locale.
|
public static LocaleUtils getInstance(com.google.gwt.core.ext.TreeLogger logger, com.google.gwt.core.ext.PropertyOracle propertyOracle, com.google.gwt.core.ext.GeneratorContext context)
logger
- propertyOracle
- public static GwtLocaleFactory getLocaleFactory()
public Set<GwtLocale> getAllCompileLocales()
public Set<GwtLocale> getAllLocales()
public GwtLocale getCompileLocale()
public String getCookie()
public String getQueryParam()
Copyright © 2016. All rights reserved.