Package org.powertac.common.xml
Class BrokerConverter
- java.lang.Object
-
- org.powertac.common.xml.BrokerConverter
-
- All Implemented Interfaces:
com.thoughtworks.xstream.converters.ConverterMatcher
,com.thoughtworks.xstream.converters.SingleValueConverter
public class BrokerConverter extends Object implements com.thoughtworks.xstream.converters.SingleValueConverter
Converts a Broker instance to its username- Author:
- John Collins
-
-
Constructor Summary
Constructors Constructor Description BrokerConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canConvert(Class type)
Object
fromString(String username)
String
toString(Object broker)
-
-
-
Method Detail
-
canConvert
public boolean canConvert(Class type)
- Specified by:
canConvert
in interfacecom.thoughtworks.xstream.converters.ConverterMatcher
-
fromString
public Object fromString(String username)
- Specified by:
fromString
in interfacecom.thoughtworks.xstream.converters.SingleValueConverter
-
-