to.etc.domui.converter
Class MoneyBigDecimalFullConverter

java.lang.Object
  extended by to.etc.domui.converter.MoneyBigDecimalFullConverter
All Implemented Interfaces:
IConverter<java.math.BigDecimal>, IObjectToStringConverter<java.math.BigDecimal>, IStringToObjectConverter<java.math.BigDecimal>

public class MoneyBigDecimalFullConverter
extends java.lang.Object
implements IConverter<java.math.BigDecimal>


Constructor Summary
MoneyBigDecimalFullConverter()
           
 
Method Summary
 java.lang.String convertObjectToString(java.util.Locale loc, java.math.BigDecimal in)
           
 java.math.BigDecimal convertStringToObject(java.util.Locale loc, java.lang.String in)
          Does a lax conversion of an amount to a BigDecimal.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MoneyBigDecimalFullConverter

public MoneyBigDecimalFullConverter()
Method Detail

convertObjectToString

public java.lang.String convertObjectToString(java.util.Locale loc,
                                              java.math.BigDecimal in)
                                       throws UIException
Specified by:
convertObjectToString in interface IObjectToStringConverter<java.math.BigDecimal>
Throws:
UIException

convertStringToObject

public java.math.BigDecimal convertStringToObject(java.util.Locale loc,
                                                  java.lang.String in)
                                           throws UIException
Does a lax conversion of an amount to a BigDecimal. The input can contain anything from currency sign to thousand separators, decimal points etc.

Specified by:
convertStringToObject in interface IStringToObjectConverter<java.math.BigDecimal>
Throws:
UIException
See Also:
IStringToObjectConverter.convertStringToObject(java.util.Locale, java.lang.String)