Package org.jfree.report.util.beans
Class GenericValueConverter
java.lang.Object
org.jfree.report.util.beans.GenericValueConverter
- All Implemented Interfaces:
ValueConverter
- Author:
- Thomas Morgner
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConverts the attribute to a string.Converts a string to aInteger
.
-
Constructor Details
-
GenericValueConverter
Creates a new value converter.- Throws:
IntrospectionException
-
-
Method Details
-
toAttributeValue
Converts the attribute to a string.- Specified by:
toAttributeValue
in interfaceValueConverter
- Parameters:
o
- the attribute (Integer
expected).- Returns:
- A string representing the
Integer
value. - Throws:
BeanException
- if there was an error during the conversion.
-
toPropertyValue
Converts a string to aInteger
.- Specified by:
toPropertyValue
in interfaceValueConverter
- Parameters:
s
- the string.- Returns:
- a
Integer
.
-