public abstract class LogController extends Object
LogCentral class to set the locale on a specific Log class.
Each Log class should create exactly one LogController object, in a class initializer.
| Modifier | Constructor and Description |
|---|---|
protected |
LogController()
Constructs a new
LogController object. |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
isLocaleSupported(String locale)
Checks if the specified locale is supported.
|
abstract void |
setLocale(String newLocale)
Activates the specified locale.
|
protected LogController()
throws UnsupportedLocaleException
LogController object.UnsupportedLocaleException - if this LogController does not support the current Locale.public abstract boolean isLocaleSupported(String locale)
locale - the locale, not null.true if the locale is supported, false if it is not.public abstract void setLocale(String newLocale)
This method should only be called with locales that are supported, according to isLocaleSupported(String). Otherwise the behaviour of this method is unspecified.
newLocale - the new locale, not null.Copyright © 2003-2013. All Rights Reserved.