com.atlassian.bamboo.persister.xstream
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.
Method Summary |
boolean |
canConvert(java.lang.Class aClass)
Inform XStream that we're reponsible for converting the DateTime objects. |
java.lang.Object |
fromString(java.lang.String s)
|
java.lang.String |
toString(java.lang.Object object)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BambooDateTimeConverter
public BambooDateTimeConverter()
canConvert
public boolean canConvert(java.lang.Class aClass)
- Inform XStream that we're reponsible for converting the DateTime objects.
- Specified by:
canConvert
in interface com.thoughtworks.xstream.converters.ConverterMatcher
- Specified by:
canConvert
in class com.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter
fromString
public java.lang.Object fromString(java.lang.String s)
- Specified by:
fromString
in interface com.thoughtworks.xstream.converters.SingleValueConverter
- Specified by:
fromString
in class com.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter
toString
public java.lang.String toString(java.lang.Object object)
- Specified by:
toString
in interface com.thoughtworks.xstream.converters.SingleValueConverter
- Overrides:
toString
in class com.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter
Copyright © 2010 Atlassian. All Rights Reserved.