Class SingleValueMoneyConverter
java.lang.Object
com.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter
name.moore.kevin.ze.XMLdata.converters.SingleValueMoneyConverter
- All Implemented Interfaces:
com.thoughtworks.xstream.converters.ConverterMatcher,com.thoughtworks.xstream.converters.SingleValueConverter
public class SingleValueMoneyConverter
extends com.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter
Will convert XML <money> elements into an Amount<Money> object.
The value of the money element is expected to be an integer number eg 300 and
not 300.88
- Author:
- Kevin Moore
<dev@kevin.moore.name>
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter
toString
-
Constructor Details
-
SingleValueMoneyConverter
public SingleValueMoneyConverter()
-
-
Method Details
-
canConvert
- Specified by:
canConvertin interfacecom.thoughtworks.xstream.converters.ConverterMatcher- Specified by:
canConvertin classcom.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter- Parameters:
type-- Returns:
-
fromString
- Specified by:
fromStringin interfacecom.thoughtworks.xstream.converters.SingleValueConverter- Specified by:
fromStringin classcom.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter
-