public class GenericValueConverter extends Object implements ValueConverter
Constructor and Description |
---|
GenericValueConverter(PropertyDescriptor pd)
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 GenericValueConverter(PropertyDescriptor pd) throws IntrospectionException
IntrospectionException
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)
Integer
.toPropertyValue
in interface ValueConverter
s
- the string.Integer
.Copyright © 2002–2017 Pentaho Corporation. All rights reserved.