org.jvnet.hyperjaxb3.xml.bind.annotation.adapters
Class DurationAsString

java.lang.Object
  extended by javax.xml.bind.annotation.adapters.XmlAdapter<Duration,String>
      extended by org.jvnet.hyperjaxb3.xml.bind.annotation.adapters.DurationAsString

public class DurationAsString
extends XmlAdapter<Duration,String>


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

Constructor Detail

DurationAsString

public DurationAsString()
Method Detail

unmarshal

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

marshal

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


Copyright © 2005-2014. All Rights Reserved.