org.apache.camel.dataformat.bindy.format
Class BigDecimalFormat

java.lang.Object
  extended by org.apache.camel.dataformat.bindy.format.BigDecimalFormat
All Implemented Interfaces:
Format<java.math.BigDecimal>

public class BigDecimalFormat
extends java.lang.Object
implements Format<java.math.BigDecimal>


Constructor Summary
BigDecimalFormat()
           
BigDecimalFormat(int precision)
           
 
Method Summary
 java.lang.String format(java.math.BigDecimal object)
          Formats the object into a String
 int getPrecision()
           
 java.math.BigDecimal parse(java.lang.String string)
          Parses a String into an object
 void setPrecision(int precision)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BigDecimalFormat

public BigDecimalFormat(int precision)

BigDecimalFormat

public BigDecimalFormat()
Method Detail

format

public java.lang.String format(java.math.BigDecimal object)
                        throws java.lang.Exception
Description copied from interface: Format
Formats the object into a String

Specified by:
format in interface Format<java.math.BigDecimal>
Parameters:
object - the object
Returns:
formatted as a String
Throws:
java.lang.Exception - can be thrown

parse

public java.math.BigDecimal parse(java.lang.String string)
                           throws java.lang.Exception
Description copied from interface: Format
Parses a String into an object

Specified by:
parse in interface Format<java.math.BigDecimal>
Parameters:
string - the string
Returns:
T the object
Throws:
java.lang.Exception - can be thrown

getPrecision

public int getPrecision()

setPrecision

public void setPrecision(int precision)


Apache CAMEL