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

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

public class TimeStringAsCalendar
extends XmlAdapter<String,Calendar>


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

Constructor Detail

TimeStringAsCalendar

public TimeStringAsCalendar()
Method Detail

marshal

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

unmarshal

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


Copyright © 2005-2014. All Rights Reserved.