Package 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
-
Constructor Summary
Constructors Constructor Description PowerTypeConverter() -
Method Summary
Modifier and Type Method Description booleancanConvert(Class type)ObjectfromString(String label)StringtoString(Object powerType)
-
Constructor Details
-
PowerTypeConverter
public PowerTypeConverter()
-
-
Method Details
-
canConvert
- Specified by:
canConvertin interfacecom.thoughtworks.xstream.converters.ConverterMatcher
-
fromString
- Specified by:
fromStringin interfacecom.thoughtworks.xstream.converters.SingleValueConverter
-
toString
- Specified by:
toStringin interfacecom.thoughtworks.xstream.converters.SingleValueConverter
-