Class DateLocaleAwareTypeConverter<S,​T>

  • All Implemented Interfaces:
    TypeConverter<S,​T>, Configurable
    Direct Known Subclasses:
    DateToStringLocaleAwareConverter, StringToDateLocaleAwareConverter

    public abstract class DateLocaleAwareTypeConverter<S,​T>
    extends LocaleAwareTypeConverter<S,​T>
    LocaleAwareDateDecoder is a decoder 'helper' that can be subclassed by Date decoders to enable them to use locale specific date formats.

    Usage (on Java Binding value config using the 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>
     
    Author:
    daniel.bevenius@gmail.com