public class BigDecimalValueConverter extends Object implements ValueConverter
BigDecimal
attributes to and from their String
representation.Constructor and Description |
---|
BigDecimalValueConverter()
Creates a new value converter.
|
Modifier and Type | Method and Description |
---|---|
String |
toAttributeValue(Object o)
Converts the attribute to a string.
|
Object |
toPropertyValue(String s)
Converts a string to a
BigDecimal . |
public BigDecimalValueConverter()
public String toAttributeValue(Object o) throws BeanException
toAttributeValue
in interface ValueConverter
o
- the attribute (BigDecimal
expected).BigDecimal
value.BeanException
- if there was an error during the conversion.public Object toPropertyValue(String s) throws BeanException
BigDecimal
.toPropertyValue
in interface ValueConverter
s
- the string.BigDecimal
.BeanException
- if there was an error during the conversion.