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
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FwCurrencyFormatter
public FwCurrencyFormatter()
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 stringloc - - 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: