public class DoubleValueConverter extends Object implements ValueConverter
Constructor and Description |
---|
DoubleValueConverter()
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
Double . |
public DoubleValueConverter()
public String toAttributeValue(Object o) throws BeanException
toAttributeValue
in interface ValueConverter
o
- the attribute (Double
expected).Double
value.BeanException
- if there was an error during the conversion.public Object toPropertyValue(String s) throws BeanException
Double
.toPropertyValue
in interface ValueConverter
s
- the string.Double
.BeanException
- if there was an error during the conversion.Copyright © 2002–2017 Pentaho Corporation. All rights reserved.