Package org.jfree.report.util.beans
Class ClassValueConverter
- java.lang.Object
-
- org.jfree.report.util.beans.ClassValueConverter
-
- All Implemented Interfaces:
ValueConverter
public class ClassValueConverter extends java.lang.Object implements ValueConverter
A class that handles the conversion ofInteger
attributes to and from theirString
representation.- Author:
- Thomas Morgner
-
-
Constructor Summary
Constructors Constructor Description ClassValueConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
toAttributeValue(java.lang.Object o)
Converts an object to an attribute value.java.lang.Object
toPropertyValue(java.lang.String s)
Converts a string to a property value.
-
-
-
Method Detail
-
toAttributeValue
public java.lang.String toAttributeValue(java.lang.Object o)
Description copied from interface:ValueConverter
Converts an object to an attribute value.- Specified by:
toAttributeValue
in interfaceValueConverter
- Parameters:
o
- the object.- Returns:
- the attribute value.
-
toPropertyValue
public java.lang.Object toPropertyValue(java.lang.String s)
Description copied from interface:ValueConverter
Converts a string to a property value.- Specified by:
toPropertyValue
in interfaceValueConverter
- Parameters:
s
- the string.- Returns:
- a property value.
-
-