Package org.jfree.report.util.beans
Class BigDecimalValueConverter
java.lang.Object
org.jfree.report.util.beans.BigDecimalValueConverter
- All Implemented Interfaces:
ValueConverter
A class that handles the conversion of
BigDecimal
attributes to and from their
String
representation.- Author:
- Thomas Morgner
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConverts the attribute to a string.Converts a string to aBigDecimal
.
-
Constructor Details
-
BigDecimalValueConverter
public BigDecimalValueConverter()Creates a new value converter.
-
-
Method Details
-
toAttributeValue
Converts the attribute to a string.- Specified by:
toAttributeValue
in interfaceValueConverter
- Parameters:
o
- the attribute (BigDecimal
expected).- Returns:
- A string representing the
BigDecimal
value.
-
toPropertyValue
Converts a string to aBigDecimal
.- Specified by:
toPropertyValue
in interfaceValueConverter
- Parameters:
s
- the string.- Returns:
- a
BigDecimal
.
-