JBoss Wise API

org.jboss.wise.smooks.decoders
Class DurationDecoder

java.lang.Object
  extended by org.milyn.javabean.decoders.LocaleAwareDateDecoder
      extended by org.milyn.javabean.decoders.DateDecoder
          extended by org.jboss.wise.smooks.decoders.DurationDecoder
All Implemented Interfaces:
org.milyn.config.Configurable, org.milyn.javabean.DataDecoder

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

Duration data decoder.

Decodes the supplied string into a Duration String value is supposed to be millisecs representing this Duaration


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
DurationDecoder()
           
 
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

DurationDecoder

public DurationDecoder()
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

JBoss Wise API

Copyright © 2008-2009 Jboss.org. All Rights Reserved.