public class DateTimeFormatResolver extends LocaleAwareResolver
| Modifier and Type | Field and Description |
|---|---|
static ConfigurationKey |
CUSTOM_PATTERN_KEY |
static int |
DATE_TIME_FORMAT_RESOLVER_PRIORITY |
localeSupportBUILTIN_RESOLVERS_DEFAULT_PRIORITY, BUILTIN_TEMPLATE_LOCATORS_DEFAULT_PRIORITY, EXTENSION_RESOLVERS_DEFAULT_PRIORITY| Constructor and Description |
|---|
DateTimeFormatResolver() |
| Modifier and Type | Method and Description |
|---|---|
Set<ConfigurationKey> |
getConfigurationKeys() |
int |
getPriority() |
void |
init(Configuration configuration)
Initialize the instance.
|
Object |
resolve(Object contextObject,
String name)
Resolve the value from specified context object and name.
|
getCurrentLocaletoStringpublic static final int DATE_TIME_FORMAT_RESOLVER_PRIORITY
public static final ConfigurationKey CUSTOM_PATTERN_KEY
public Object resolve(Object contextObject, String name)
Resolvernull in case of the resolver is not capable
of resolving it.contextObject - The context object may be nullname - The name (part of the key) is never nullnullpublic int getPriority()
public void init(Configuration configuration)
ConfigurationAwareinit in interface ConfigurationAwareinit in class LocaleAwareResolverpublic Set<ConfigurationKey> getConfigurationKeys()
getConfigurationKeys in interface ConfigurationAwaregetConfigurationKeys in class AbstractResolverCopyright © 2013. All Rights Reserved.