Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.gisgraphy.util
Class CurrencyConverter

    java.lang.Object
      com.gisgraphy.util.CurrencyConverter

All Implemented Interfaces:
  org.apache.commons.beanutils.Converter

    public class CurrencyConverter

extends java.lang.Object
implements org.apache.commons.beanutils.Converter

This class is converts a Double to a double-digit String (and vise-versa) by BeanUtils when copying properties.

Author:
  Matt Raible

Constructor Summary
`CurrencyConverter()`

Method Summary
`java.lang.Object` | `convert(java.lang.Class type, java.lang.Object value)` Convert a String to a Double and a Double to a String
`void` | `setDecimalFormatter(java.text.DecimalFormat df)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### CurrencyConverter

    public CurrencyConverter()

Method Detail

### setDecimalFormatter

    public void setDecimalFormatter(java.text.DecimalFormat df)

### convert

    public final java.lang.Object convert(java.lang.Class type,
                                          java.lang.Object value)

  Convert a String to a Double and a Double to a String

  Specified by:
    `convert` in interface `org.apache.commons.beanutils.Converter`
  Parameters:
    `type` - the class type to output
    `value` - the object to convert
  Returns:
    object the converted object (Double or String)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2009. All Rights Reserved.