public class BigIntegerValueConverter extends Object implements ValueConverter
BigInteger
attributes to and from their String
representation.Constructor and Description |
---|
BigIntegerValueConverter()
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
BigInteger . |
public BigIntegerValueConverter()
public String toAttributeValue(Object o) throws BeanException
toAttributeValue
in interface ValueConverter
o
- the attribute (BigInteger
expected).BigInteger
value.BeanException
- if there was an error during the conversion.public Object toPropertyValue(String s) throws BeanException
BigInteger
.toPropertyValue
in interface ValueConverter
s
- the string.BigInteger
.BeanException
- if there was an error during the conversion.