org.pentaho.reporting.engine.classic.core.util.beans
Class ClassValueConverter
java.lang.Object
org.pentaho.reporting.engine.classic.core.util.beans.ClassValueConverter
- All Implemented Interfaces:
- ValueConverter
public class ClassValueConverter
- extends Object
- implements ValueConverter
A class that handles the conversion of Integer
attributes to and from their String
representation.
- Author:
- Thomas Morgner
ClassValueConverter
public ClassValueConverter()
toAttributeValue
public String toAttributeValue(Object o)
throws BeanException
- Description copied from interface:
ValueConverter
- Converts an object to an attribute value.
- Specified by:
toAttributeValue
in interface ValueConverter
- Parameters:
o
- the object, never null.
- Returns:
- the attribute value.
- Throws:
BeanException
- if there was an error during the conversion.
toPropertyValue
public Object toPropertyValue(String s)
throws BeanException
- Description copied from interface:
ValueConverter
- Converts a string to a property value.
- Specified by:
toPropertyValue
in interface ValueConverter
- Parameters:
s
- the string, never null.
- Returns:
- a property value.
- Throws:
BeanException
- if there was an error during the conversion.