java.lang.Object
org.scopemvc.util.convertor.NullStringConvertor
org.scopemvc.util.convertor.BigDecimalStringConvertor
- All Implemented Interfaces:
- StringConvertor
- public class BigDecimalStringConvertor
- extends NullStringConvertor
String convertor for type BigDecimal.
- Version:
- $Revision: 1.3 $ $Date: 2002/01/12 09:35:41 $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
symbols
private java.text.DecimalFormatSymbols symbols
convertDot
private boolean convertDot
BigDecimalStringConvertor
public BigDecimalStringConvertor()
stringAsValue
public java.lang.Object stringAsValue(java.lang.String inString)
throws java.lang.IllegalArgumentException
- Returns parsed number as object of type
BigDecimal.
Note: for parsing is not used NumberFormat, but BigDecimal
constructor. Passed String argument is changed from format with
locale decimal separator into format recognizable by the constructor.
valueAsString
public java.lang.String valueAsString(java.lang.Object inValue)
throws java.lang.IllegalArgumentException
- Description copied from interface:
StringConvertor
- Formats object into
String. It never return a null.
Implementing class can offer posibility to set string representation
of null (such as "null" or
""), however default representation should be
"". Slightly different null handling is performed
in StringStringConvertor class.