org.broadleafcommerce.common.util.xml
Class ISO8601DateAdapter

java.lang.Object
  extended by javax.xml.bind.annotation.adapters.XmlAdapter<String,Date>
      extended by org.broadleafcommerce.common.util.xml.ISO8601DateAdapter

public class ISO8601DateAdapter
extends XmlAdapter<String,Date>


Field Summary
protected  SimpleDateFormat isoFormat
           
 
Constructor Summary
ISO8601DateAdapter()
           
 
Method Summary
 String marshal(Date arg0)
           
 Date unmarshal(String arg0)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

isoFormat

protected SimpleDateFormat isoFormat
Constructor Detail

ISO8601DateAdapter

public ISO8601DateAdapter()
Method Detail

marshal

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

unmarshal

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


Copyright © 2013. All Rights Reserved.