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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanConvert(Class type)ObjectfromString(String label)StringtoString(Object powerType)
-
-
-
Method Detail
-
canConvert
public boolean canConvert(Class type)
- Specified by:
canConvertin interfacecom.thoughtworks.xstream.converters.ConverterMatcher
-
fromString
public Object fromString(String label)
- Specified by:
fromStringin interfacecom.thoughtworks.xstream.converters.SingleValueConverter
-
-