org.powertac.common.xml
Class PowerTypeConverter
java.lang.Object
org.powertac.common.xml.PowerTypeConverter
- All Implemented Interfaces:
- com.thoughtworks.xstream.converters.ConverterMatcher, com.thoughtworks.xstream.converters.SingleValueConverter
public class PowerTypeConverter
- extends Object
- implements com.thoughtworks.xstream.converters.SingleValueConverter
Converts Timeslot instances by serial number.
- Author:
- John Collins
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PowerTypeConverter
public PowerTypeConverter()
canConvert
public boolean canConvert(Class type)
- Specified by:
canConvert in interface com.thoughtworks.xstream.converters.ConverterMatcher
fromString
public Object fromString(String label)
- Specified by:
fromString in interface com.thoughtworks.xstream.converters.SingleValueConverter
toString
public String toString(Object powerType)
- Specified by:
toString in interface com.thoughtworks.xstream.converters.SingleValueConverter
Copyright © 2012. All Rights Reserved.