Package org.jfree.report.util.beans
Class ArrayValueConverter
java.lang.Object
org.jfree.report.util.beans.ArrayValueConverter
- All Implemented Interfaces:
ValueConverter
An ValueConverter that handles Arrays. Conversion to arrays is done
using a CSV string.
- Author:
- Thomas Morgner
-
Constructor Summary
ConstructorsConstructorDescriptionArrayValueConverter
(Class arrayClass, ValueConverter elementConverter) Creates a new ArrayValueConverter for the given element type and array type. -
Method Summary
Modifier and TypeMethodDescriptionConverts an object to an attribute value.Converts a string to a property value.
-
Constructor Details
-
ArrayValueConverter
Creates a new ArrayValueConverter for the given element type and array type.- Parameters:
arrayClass
- the array typeelementConverter
- the value converter for the array elements.
-
-
Method Details
-
toAttributeValue
Converts an object to an attribute value.- Specified by:
toAttributeValue
in interfaceValueConverter
- Parameters:
o
- the object.- Returns:
- the attribute value.
- Throws:
BeanException
- if there was an error during the conversion.
-
toPropertyValue
Converts a string to a property value.- Specified by:
toPropertyValue
in interfaceValueConverter
- Parameters:
s
- the string.- Returns:
- a property value.
- Throws:
BeanException
- if there was an error during the conversion.
-