pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.util.xml.bind
Class CurrencyAdapter

java.lang.Object
  extended by org.torweg.pulse.util.xml.bind.CurrencyAdapter

public final class CurrencyAdapter
extends java.lang.Object

Version:
$Revision: 1426 $
Author:
Christian Schatt

Constructor Summary
protected CurrencyAdapter()
          The no-argument constructor.
 
Method Summary
 java.lang.String getCurrencyCode()
          Returns the currency code.
 int getDefaultFractionDigits()
          Returns the default number of fraction digits.
 java.lang.String getSymbol()
          Returns the symbol.
static CurrencyAdapter newInstance(java.util.Currency cur)
          Returns a new CurrencyAdapter instance initialized with the data from the given Currency.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CurrencyAdapter

protected CurrencyAdapter()
The no-argument constructor.

Method Detail

getCurrencyCode

public java.lang.String getCurrencyCode()
Returns the currency code.

Returns:
the currency code

getDefaultFractionDigits

public int getDefaultFractionDigits()
Returns the default number of fraction digits.

Returns:
the default number of fraction digits

getSymbol

public java.lang.String getSymbol()
Returns the symbol.

Returns:
the symbol

newInstance

public static CurrencyAdapter newInstance(java.util.Currency cur)
Returns a new CurrencyAdapter instance initialized with the data from the given Currency. Returns null, if the given Currency is null.

Parameters:
cur - the Currency
Returns:
a new CurrencyAdapter instance or null