org.jfree.report.util.beans

Interface ValueConverter

public interface ValueConverter

A value converter is an object that can transform an object into a string or vice versa.

Author: Thomas Morgner

Method Summary
StringtoAttributeValue(Object o)
Converts an object to an attribute value.
ObjecttoPropertyValue(String s)
Converts a string to a property value.

Method Detail

toAttributeValue

public String toAttributeValue(Object o)
Converts an object to an attribute value.

Parameters: o the object.

Returns: the attribute value.

Throws: BeanException if there was an error during the conversion.

toPropertyValue

public Object toPropertyValue(String s)
Converts a string to a property value.

Parameters: s the string.

Returns: a property value.

Throws: BeanException if there was an error during the conversion.