|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.scopemvc.util.convertor.NullStringConvertor | +--org.scopemvc.util.convertor.BigDecimalStringConvertor
String convertor for type BigDecimal
.
Constructor Summary | |
BigDecimalStringConvertor()
Constructor for the BigDecimalStringConvertor object |
Method Summary | |
java.lang.Object |
stringAsValue(java.lang.String inString)
Returns parsed number as object of type BigDecimal . |
java.lang.String |
valueAsString(java.lang.Object inValue)
Formats object into String . |
Methods inherited from class org.scopemvc.util.convertor.NullStringConvertor |
getNullAsString, isNull, setNullAsString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BigDecimalStringConvertor()
Method Detail |
public java.lang.Object stringAsValue(java.lang.String inString) throws java.lang.IllegalArgumentException
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.
inString
- TODO: Describe the Parameter
java.lang.IllegalArgumentException
- can't convert from String.public java.lang.String valueAsString(java.lang.Object inValue) throws java.lang.IllegalArgumentException
StringConvertor
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.
inValue
- TODO: Describe the Parameter
getNullAsString
java.lang.IllegalArgumentException
- when argument is not subclass of
java.lang.Number
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |