Package com.suncode.pwfl.translation
Class EmptyTranslator
java.lang.Object
com.suncode.pwfl.translation.AbstractTranslator
com.suncode.pwfl.translation.EmptyTranslator
- All Implemented Interfaces:
ClassLoaderTranslator
,PackageTranslator
,Translator
Translator implementation that always returns value of given key.
- Author:
- Cezary Kozar 25 wrz 2015
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetMessages
(Locale locale) Returns key-value map with every available translations for given locale.protected String
resolveMessage
(String key, Locale locale, Object... args) Methods inherited from class com.suncode.pwfl.translation.AbstractTranslator
addTranslatedPackage, equals, getLocalizedString, getLocalizedString, getLocalizedString, getLocalizedString, getLocalizedString, getLocalizedString, getLocalizedString, getLocalizedString, getLocalizedString, getLocalizedString, getMessage, getMessage, getMessage, getMessage, getParent, hashCode, setParent, setTranslatedClassLoader, translatedClassLoader, translatedPackages
-
Field Details
-
INSTANCE
-
-
Method Details
-
resolveMessage
protected String resolveMessage(String key, Locale locale, Object... args) throws NoTranslationException - Specified by:
resolveMessage
in classAbstractTranslator
- Throws:
NoTranslationException
-
getMessages
Description copied from interface:Translator
Returns key-value map with every available translations for given locale.
-