com.atlassian.bamboo.persister.xstream
Class BambooDateTimeZoneConverter

java.lang.Object
  extended by com.thoughtworks.xstream.converters.basic.AbstractBasicConverter
      extended by 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.


Constructor Summary
BambooDateTimeZoneConverter()
           
 
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
 

Constructor Detail

BambooDateTimeZoneConverter

public BambooDateTimeZoneConverter()
Method Detail

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.