public abstract class LocaleAwareValueHelper extends BasicValueHelper
Locale
-aware helper. Subclasses are encouraged to use
getLocale(Options)
to obtain the Locale
.VALUE_TAG_TYPES
HELPER_TAG_TYPES
configuration
Constructor and Description |
---|
LocaleAwareValueHelper() |
Modifier and Type | Method and Description |
---|---|
protected Locale |
getCurrentLocale() |
protected Locale |
getCurrentLocale(Options options) |
protected Locale |
getLocale(Options options) |
protected Set<String> |
getSupportedHashKeys() |
protected void |
init()
Can be overridden so that there's no need to call
super.init(Configuration) . |
allowedTagTypes
getRequiredHashKeys, numberOfRequiredHashEntries, numberOfRequiredParameters, validate
append, convertAndAppend, convertValue, isSection, isUnescapeVariable, isVariable
checkNotInitialized, init
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConfigurationKeys, init
protected void init()
AbstractConfigurationAware
super.init(Configuration)
.init
in class AbstractHelper
protected Set<String> getSupportedHashKeys()
getSupportedHashKeys
in class BasicHelper
*
to
allow any hash keysprotected Locale getCurrentLocale()
LocaleSupport
protected Locale getCurrentLocale(Options options)
options
- LocaleSupport
protected Locale getLocale(Options options)
options
- OptionsHashKeys.LOCALE
key, the value from the context
for the OptionsHashKeys.LOCALE
key or the current locale
by means of LocaleSupport
Locale.forLanguageTag(String)
Copyright © 2017. All rights reserved.