com.ds.fw.types.formatter
Class FwCurrencyFormatter

java.lang.Object
  |
  +--com.ds.fw.types.formatter.FwFloatFormatter
        |
        +--com.ds.fw.types.formatter.FwCurrencyFormatter

public class FwCurrencyFormatter
extends FwFloatFormatter


Constructor Summary
FwCurrencyFormatter()
           
 
Method Summary
static java.lang.String format(com.ds.fw.types.money.FwMoneyIF mon, java.util.Locale loc)
           
static java.lang.String getFunctionalCurrency(java.util.Locale inLocale)
          Gets the currency from the resource table - "USD" by default
static com.ds.fw.types.money.FwMoneyIF parseCurrencyToMoney(java.lang.String currencyString, java.util.Locale loc)
          Transform the currency given as String to money
 
Methods inherited from class com.ds.fw.types.formatter.FwFloatFormatter
format, format, parseDouble, parseFloat, parseInt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FwCurrencyFormatter

public FwCurrencyFormatter()
Method Detail

getFunctionalCurrency

public static java.lang.String getFunctionalCurrency(java.util.Locale inLocale)
Gets the currency from the resource table - "USD" by default

Parameters:
inLocale -
Returns:
a String object containing the currency

parseCurrencyToMoney

public static com.ds.fw.types.money.FwMoneyIF parseCurrencyToMoney(java.lang.String currencyString,
                                                                   java.util.Locale loc)
                                                            throws java.text.ParseException
Transform the currency given as String to money

Parameters:
currencyString - - the currency string
loc - - the locale
Returns:
Throws:
java.text.ParseException

format

public static java.lang.String format(com.ds.fw.types.money.FwMoneyIF mon,
                                      java.util.Locale loc)
Parameters:
mon -
loc -
Returns: