org.jboss.wise.smooks.decoders
Class XMLGregorianCalendarDecoder

java.lang.Object
  extended by org.milyn.javabean.decoders.LocaleAwareDateDecoder
      extended by org.milyn.javabean.decoders.DateDecoder
          extended by org.jboss.wise.smooks.decoders.XMLGregorianCalendarDecoder
All Implemented Interfaces:
org.milyn.delivery.ContentHandler, org.milyn.javabean.DataDecoder

@DecodeType(value=javax.xml.datatype.XMLGregorianCalendar.class)
public class XMLGregorianCalendarDecoder
extends org.milyn.javabean.decoders.DateDecoder
implements org.milyn.javabean.DataDecoder

XMLGregorianCalendar data decoder.

Decodes the supplied string into a XMLGregorianCalendar 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" (see SimpleDateFormat). This format is based on the ISO 8601 standard as used by the XML Schema type "dateTime".

This decoder is synchronized on its underlying SimpleDateFormat instance.

Author:
stefano.maestri@javalinux.it

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.milyn.javabean.DataDecoder
org.milyn.javabean.DataDecoder.Factory
 
Field Summary
 
Fields inherited from class org.milyn.javabean.decoders.LocaleAwareDateDecoder
decoder, DEFAULT_DATE_FORMAT, format, FORMAT, LOCALE_COUNTRY_CODE, LOCALE_LANGUAGE_CODE, VERIFY_LOCALE
 
Constructor Summary
XMLGregorianCalendarDecoder()
           
 
Method Summary
 java.lang.Object decode(java.lang.String data)
           
 
Methods inherited from class org.milyn.javabean.decoders.LocaleAwareDateDecoder
getLocale, isLocalInstalled, setConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLGregorianCalendarDecoder

public XMLGregorianCalendarDecoder()
Method Detail

decode

public java.lang.Object decode(java.lang.String data)
                        throws org.milyn.javabean.DataDecodeException
Specified by:
decode in interface org.milyn.javabean.DataDecoder
Overrides:
decode in class org.milyn.javabean.decoders.DateDecoder
Throws:
org.milyn.javabean.DataDecodeException