Class BambooDateTimeConverter
java.lang.Object
com.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter
com.atlassian.bamboo.persister.xstream.BambooDateTimeConverter
- All Implemented Interfaces:
com.thoughtworks.xstream.converters.ConverterMatcher
,com.thoughtworks.xstream.converters.SingleValueConverter
public class BambooDateTimeConverter
extends com.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter
This class lets us persist JODA DataTime objects without saving all the internal junk associated with the class.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canConvert
(Class type) Inform XStream that we're responsible for converting the DateTime objects.fromString
(String str)
-
Constructor Details
-
BambooDateTimeConverter
public BambooDateTimeConverter()
-
-
Method Details
-
canConvert
Inform XStream that we're responsible for converting the DateTime objects.- Specified by:
canConvert
in interfacecom.thoughtworks.xstream.converters.ConverterMatcher
- Specified by:
canConvert
in classcom.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter
-
fromString
- Specified by:
fromString
in interfacecom.thoughtworks.xstream.converters.SingleValueConverter
- Specified by:
fromString
in classcom.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter
-
toString
- Specified by:
toString
in interfacecom.thoughtworks.xstream.converters.SingleValueConverter
- Overrides:
toString
in classcom.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter
-