org.apache.camel.builder.xml
Class TimeUnitAdapter
java.lang.Object
javax.xml.bind.annotation.adapters.XmlAdapter<String,TimeUnit>
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TimeUnitAdapter
public TimeUnitAdapter()
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