Package net.ssehub.easy.basics
Class DefaultLocale
java.lang.Object
net.ssehub.easy.basics.DefaultLocale
Provides access to the default locale.
- Author:
- Holger Eichelberger
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LocaleReturns the default locale for evaluation.static voidsetDefaultLocale(Locale locale) Changes the default locale for evaluation.static LocaleTurnslocinto a locale.static StringTurns the locale into a string.
-
Field Details
-
INITIAL_LOCALE
-
defaultLocale
-
-
Constructor Details
-
DefaultLocale
public DefaultLocale()
-
-
Method Details
-
setDefaultLocale
Changes the default locale for evaluation.- Parameters:
locale- the new locale, ignored if null
-
getDefaultLocale
Returns the default locale for evaluation.- Returns:
- the locale
-
toString
Turns the locale into a string.- Parameters:
locale- the locale- Returns:
- the locale as string
-
toLocale
Turnslocinto a locale.- Parameters:
loc- a string specifying a locale (form: lang[_country]).- Returns:
- the locale
-