org.milyn.javabean.decoders
Class CalendarDecoder

java.lang.Object
  extended by org.milyn.javabean.decoders.LocaleAwareDecoder
      extended by org.milyn.javabean.decoders.LocaleAwareDateDecoder
          extended by org.milyn.javabean.decoders.CalendarDecoder
All Implemented Interfaces:
Serializable, Configurable, DataDecoder

@DecodeType(value=java.util.Calendar.class)
public class CalendarDecoder
extends LocaleAwareDateDecoder
implements DataDecoder

Calendar data decoder.

Decodes the supplied string into a Calendar value based on the supplied "format" parameter.

This decoder is synchronized on its underlying SimpleDateFormat instance.

Author:
tom.fennelly@gmail.com, Pavel Kadlec, daniel.bevenius@gmail.com
See Also:
LocaleAwareDateDecoder}, Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.milyn.javabean.DataDecoder
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
 
Fields inherited from class org.milyn.javabean.decoders.LocaleAwareDecoder
LOCALE
 
Constructor Summary
CalendarDecoder()
           
 
Method Summary
 Object decode(String data)
          Decode the supplied String data into a new Object data instance.
 
Methods inherited from class org.milyn.javabean.decoders.LocaleAwareDateDecoder
setConfiguration
 
Methods inherited from class org.milyn.javabean.decoders.LocaleAwareDecoder
getConfiguration, getLocale, getLocale, isLocalInstalled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CalendarDecoder

public CalendarDecoder()
Method Detail

decode

public Object decode(String data)
              throws DataDecodeException
Description copied from interface: DataDecoder
Decode the supplied String data into a new Object data instance.

Specified by:
decode in interface DataDecoder
Parameters:
data - Data to be decoded.
Returns:
Decoded data Object.
Throws:
DataDecodeException - Error decoding data.


Copyright © 2018. All rights reserved.