Package org.smooks.engine.converter
Class StringToXmlGregorianCalendarConverterFactory
- java.lang.Object
-
- org.smooks.engine.converter.StringToXmlGregorianCalendarConverterFactory
-
- All Implemented Interfaces:
TypeConverterFactory<String,XMLGregorianCalendar>
,Configurable
public class StringToXmlGregorianCalendarConverterFactory extends Object implements TypeConverterFactory<String,XMLGregorianCalendar>, Configurable
XMLGregorianCalendar
data decoder. Decodes the supplied string into aXMLGregorianCalendar
value based on the supplied "format
" parameter, or the default (see below). The default date format used is "yyyy-MM-dd'T'HH:mm:ss" (seeSimpleDateFormat
). This format is based on the ISO 8601 standard as used by the XML Schema type "dateTime". This decoder is synchronized on its underlyingSimpleDateFormat
instance.- Author:
- stefano.maestri@javalinux.it
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StringToXmlGregorianCalendarConverterFactory.StringToXmlGregorianCalendarConverter
-
Constructor Summary
Constructors Constructor Description StringToXmlGregorianCalendarConverterFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TypeConverter<String,XMLGregorianCalendar>
createTypeConverter()
Properties
getConfiguration()
Get the component configuration.TypeConverterDescriptor<Class<String>,Class<XMLGregorianCalendar>>
getTypeConverterDescriptor()
void
setConfiguration(Properties properties)
Set the component configuration.
-
-
-
Method Detail
-
createTypeConverter
public TypeConverter<String,XMLGregorianCalendar> createTypeConverter()
- Specified by:
createTypeConverter
in interfaceTypeConverterFactory<String,XMLGregorianCalendar>
-
getTypeConverterDescriptor
public TypeConverterDescriptor<Class<String>,Class<XMLGregorianCalendar>> getTypeConverterDescriptor()
- Specified by:
getTypeConverterDescriptor
in interfaceTypeConverterFactory<String,XMLGregorianCalendar>
-
setConfiguration
public void setConfiguration(Properties properties) throws SmooksConfigException
Description copied from interface:Configurable
Set the component configuration.- Specified by:
setConfiguration
in interfaceConfigurable
- Parameters:
properties
- The component configuration properties.- Throws:
SmooksConfigException
- Bad component configuration.
-
getConfiguration
public Properties getConfiguration()
Description copied from interface:Configurable
Get the component configuration.- Specified by:
getConfiguration
in interfaceConfigurable
- Returns:
- The component configuration properties.
-
-