public abstract class LocaleAwareDateDecoder extends LocaleAwareDecoder
DateDecoder):
<jb:value property="date" decoder="Date" data="order/@date">
<-- Format: Defaults to "yyyy-MM-dd'T'HH:mm:ss" (SOAP) -->
<jb:decodeParam name="format">EEE MMM dd HH:mm:ss z yyyy</jb:decodeParam>
<-- Locale: Defaults to machine Locale -->
<jb:decodeParam name="locale">sv-SE</jb:decodeParam>
<-- Verify Locale: Default false -->
<jb:decodeParam name="verify-locale">true</jb:decodeParam>
</jb:value>
DataDecoder.Factory| Modifier and Type | Field and Description |
|---|---|
protected SimpleDateFormat |
decoder |
static String |
DEFAULT_DATE_FORMAT
Default date format string.
|
protected String |
format |
static String |
FORMAT
Date format configuration key.
|
static String |
LOCALE_COUNTRY_CODE
Deprecated.
Use
LocaleAwareDecoder. |
static String |
LOCALE_LANGUAGE_CODE
Deprecated.
Use
LocaleAwareDecoder. |
static String |
VERIFY_LOCALE
Deprecated.
Use
LocaleAwareDecoder. |
LOCALE| Constructor and Description |
|---|
LocaleAwareDateDecoder() |
| Modifier and Type | Method and Description |
|---|---|
void |
setConfiguration(Properties resourceConfig)
Set the component configuration.
|
getConfiguration, getLocale, getLocale, isLocalInstalledclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdecodepublic static final String FORMAT
public static final String DEFAULT_DATE_FORMAT
public static final String LOCALE_LANGUAGE_CODE
LocaleAwareDecoder.public static final String LOCALE_COUNTRY_CODE
LocaleAwareDecoder.public static final String VERIFY_LOCALE
LocaleAwareDecoder.protected String format
protected SimpleDateFormat decoder
public void setConfiguration(Properties resourceConfig) throws SmooksConfigurationException
ConfigurablesetConfiguration in interface ConfigurablesetConfiguration in class LocaleAwareDecoderresourceConfig - The component configuration properties.SmooksConfigurationException - Bad component configuration.Copyright © 2020. All rights reserved.