org.powertac.common.xml
Class BrokerConverter

java.lang.Object
  extended by 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
BrokerConverter()
           
 
Method Summary
 boolean canConvert(Class type)
           
 Object fromString(String username)
           
 String toString(Object broker)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BrokerConverter

public BrokerConverter()
Method Detail

canConvert

public boolean canConvert(Class type)
Specified by:
canConvert in interface com.thoughtworks.xstream.converters.ConverterMatcher

fromString

public Object fromString(String username)
Specified by:
fromString in interface com.thoughtworks.xstream.converters.SingleValueConverter

toString

public String toString(Object broker)
Specified by:
toString in interface com.thoughtworks.xstream.converters.SingleValueConverter


Copyright © 2013. All Rights Reserved.