com.atlassian.bamboo.persister.xstream
Class BambooDateTimeZoneConverter
java.lang.Object
com.thoughtworks.xstream.converters.basic.AbstractBasicConverter
com.atlassian.bamboo.persister.xstream.BambooDateTimeZoneConverter
- All Implemented Interfaces:
- com.thoughtworks.xstream.converters.Converter, com.thoughtworks.xstream.converters.ConverterMatcher
public class BambooDateTimeZoneConverter
- extends com.thoughtworks.xstream.converters.basic.AbstractBasicConverter
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. |
protected java.lang.Object |
fromString(java.lang.String s)
|
protected java.lang.String |
toString(java.lang.Object object)
|
Methods inherited from class com.thoughtworks.xstream.converters.basic.AbstractBasicConverter |
marshal, unmarshal |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BambooDateTimeZoneConverter
public BambooDateTimeZoneConverter()
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.AbstractBasicConverter
fromString
protected java.lang.Object fromString(java.lang.String s)
- Specified by:
fromString
in class com.thoughtworks.xstream.converters.basic.AbstractBasicConverter
toString
protected java.lang.String toString(java.lang.Object object)
- Overrides:
toString
in class com.thoughtworks.xstream.converters.basic.AbstractBasicConverter
Copyright © 2010 Atlassian. All Rights Reserved.