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