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.AbstractSingleValueConverterThis class lets us persist JODA DataTime objects without saving all the internal junk associated with the class.
-
-
Constructor Summary
Constructors Constructor Description BambooDateTimeConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanConvert(Class type)Inform XStream that we're responsible for converting the DateTime objects.ObjectfromString(String str)StringtoString(Object object)
-
-
-
Method Detail
-
canConvert
public boolean canConvert(Class type)
Inform XStream that we're responsible for converting the DateTime objects.- Specified by:
canConvertin interfacecom.thoughtworks.xstream.converters.ConverterMatcher- Specified by:
canConvertin classcom.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter
-
fromString
public Object fromString(String str)
- Specified by:
fromStringin interfacecom.thoughtworks.xstream.converters.SingleValueConverter- Specified by:
fromStringin classcom.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter
-
-