org.apache.camel.builder.xml
Class TimeUnitAdapter

java.lang.Object
  extended by javax.xml.bind.annotation.adapters.XmlAdapter<String,TimeUnit>
      extended by org.apache.camel.builder.xml.TimeUnitAdapter

public class TimeUnitAdapter
extends XmlAdapter<String,TimeUnit>

TimeUnitAdapter is a simple adapter to convert between Strings and instances of the TimeUnit enumeration


Constructor Summary
TimeUnitAdapter()
           
 
Method Summary
 String marshal(TimeUnit v)
           
 TimeUnit unmarshal(String v)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeUnitAdapter

public TimeUnitAdapter()
Method Detail

marshal

public String marshal(TimeUnit v)
               throws Exception
Specified by:
marshal in class XmlAdapter<String,TimeUnit>
Throws:
Exception

unmarshal

public TimeUnit unmarshal(String v)
                   throws Exception
Specified by:
unmarshal in class XmlAdapter<String,TimeUnit>
Throws:
Exception


Apache CAMEL