Package org.smooks.engine.converter
Class StringToDateConverterFactory.StringToDateConverter
- java.lang.Object
-
- org.smooks.engine.converter.LocaleAwareTypeConverter<S,T>
-
- org.smooks.engine.converter.DateLocaleAwareTypeConverter<String,T>
-
- org.smooks.engine.converter.StringToDateLocaleAwareConverter<Date>
-
- org.smooks.engine.converter.StringToDateConverterFactory.StringToDateConverter
-
- All Implemented Interfaces:
TypeConverter<String,Date>
,Configurable
- Enclosing class:
- StringToDateConverterFactory
public static class StringToDateConverterFactory.StringToDateConverter extends StringToDateLocaleAwareConverter<Date>
-
-
Field Summary
-
Fields inherited from class org.smooks.engine.converter.DateLocaleAwareTypeConverter
dateTimeFormatter, DEFAULT_DATE_FORMAT, format, FORMAT, ZONE_ID, zoneId
-
Fields inherited from class org.smooks.engine.converter.LocaleAwareTypeConverter
LOCALE, LOCALE_COUNTRY_CODE, LOCALE_LANGUAGE_CODE, VERIFY_LOCALE
-
-
Constructor Summary
Constructors Constructor Description StringToDateConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Date
doConvert(Date date)
void
setConfiguration(Properties properties)
Set the component configuration.-
Methods inherited from class org.smooks.engine.converter.StringToDateLocaleAwareConverter
convert
-
Methods inherited from class org.smooks.engine.converter.LocaleAwareTypeConverter
getConfiguration, getLocale, getLocale, isLocalInstalled
-
-
-
-
Method Detail
-
doConvert
protected Date doConvert(Date date)
- Specified by:
doConvert
in classStringToDateLocaleAwareConverter<Date>
-
setConfiguration
public void setConfiguration(Properties properties) throws SmooksConfigException
Description copied from interface:Configurable
Set the component configuration.- Specified by:
setConfiguration
in interfaceConfigurable
- Overrides:
setConfiguration
in classDateLocaleAwareTypeConverter<String,Date>
- Parameters:
properties
- The component configuration properties.- Throws:
SmooksConfigException
- Bad component configuration.
-
-