Package org.smooks.engine.converter
Class StringToXmlGregorianCalendarConverterFactory
- java.lang.Object
-
- org.smooks.engine.converter.StringToXmlGregorianCalendarConverterFactory
-
- All Implemented Interfaces:
org.smooks.api.converter.TypeConverterFactory<String,XMLGregorianCalendar>,org.smooks.api.resource.config.Configurable
public class StringToXmlGregorianCalendarConverterFactory extends Object implements org.smooks.api.converter.TypeConverterFactory<String,XMLGregorianCalendar>, org.smooks.api.resource.config.Configurable
XMLGregorianCalendardata decoder. Decodes the supplied string into aXMLGregorianCalendarvalue 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 underlyingSimpleDateFormatinstance.- Author:
- stefano.maestri@javalinux.it
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStringToXmlGregorianCalendarConverterFactory.StringToXmlGregorianCalendarConverter
-
Constructor Summary
Constructors Constructor Description StringToXmlGregorianCalendarConverterFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.smooks.api.converter.TypeConverter<String,XMLGregorianCalendar>createTypeConverter()PropertiesgetConfiguration()org.smooks.api.converter.TypeConverterDescriptor<Class<String>,Class<XMLGregorianCalendar>>getTypeConverterDescriptor()voidsetConfiguration(Properties properties)
-
-
-
Method Detail
-
createTypeConverter
public org.smooks.api.converter.TypeConverter<String,XMLGregorianCalendar> createTypeConverter()
- Specified by:
createTypeConverterin interfaceorg.smooks.api.converter.TypeConverterFactory<String,XMLGregorianCalendar>
-
getTypeConverterDescriptor
public org.smooks.api.converter.TypeConverterDescriptor<Class<String>,Class<XMLGregorianCalendar>> getTypeConverterDescriptor()
- Specified by:
getTypeConverterDescriptorin interfaceorg.smooks.api.converter.TypeConverterFactory<String,XMLGregorianCalendar>
-
setConfiguration
public void setConfiguration(Properties properties) throws org.smooks.api.SmooksConfigException
- Specified by:
setConfigurationin interfaceorg.smooks.api.resource.config.Configurable- Throws:
org.smooks.api.SmooksConfigException
-
getConfiguration
public Properties getConfiguration()
- Specified by:
getConfigurationin interfaceorg.smooks.api.resource.config.Configurable
-
-