Class StringToDateTimeAdapter


  • public class StringToDateTimeAdapter
    extends javax.xml.bind.annotation.adapters.XmlAdapter<String,​Date>
    An XML Adapter that relies on the DateTimeService to marshal and unmarshal datetime values in String form. Converts Strings to java.util.Date instances and vice versa.
    Author:
    Kuali Rice Team (rice.collab@kuali.org)
    • Constructor Detail

      • StringToDateTimeAdapter

        public StringToDateTimeAdapter()
    • Method Detail

      • unmarshal

        public Date unmarshal​(String v)
                       throws Exception
        Specified by:
        unmarshal in class javax.xml.bind.annotation.adapters.XmlAdapter<String,​Date>
        Throws:
        Exception
        See Also:
        XmlAdapter.unmarshal(java.lang.Object)
      • marshal

        public String marshal​(Date v)
                       throws Exception
        Specified by:
        marshal in class javax.xml.bind.annotation.adapters.XmlAdapter<String,​Date>
        Throws:
        Exception
        See Also:
        XmlAdapter.marshal(java.lang.Object)