Class CustomDateConverter

  • All Implemented Interfaces:
    com.thoughtworks.xstream.converters.ConverterMatcher, com.thoughtworks.xstream.converters.SingleValueConverter

    public class CustomDateConverter
    extends java.lang.Object
    implements com.thoughtworks.xstream.converters.SingleValueConverter
    Converter for a specific date format.
    • Constructor Detail

      • CustomDateConverter

        public CustomDateConverter()
    • Method Detail

      • setWsDateFormatter

        public void setWsDateFormatter​(WsDateFormatter wsDateFormatter)
      • canConvert

        public boolean canConvert​(java.lang.Class type)
        Specified by:
        canConvert in interface com.thoughtworks.xstream.converters.ConverterMatcher
      • toString

        public java.lang.String toString​(java.lang.Object obj)
        Specified by:
        toString in interface com.thoughtworks.xstream.converters.SingleValueConverter
      • fromString

        public java.lang.Object fromString​(java.lang.String str)
        Specified by:
        fromString in interface com.thoughtworks.xstream.converters.SingleValueConverter