paynet.utils
Class Currency

java.lang.Object
  extended by paynet.utils.Currency

public class Currency
extends java.lang.Object

Currency

This class contains valid values for currency and methods to retrieve currency codes for different systems.

Version:
Sep 2007
Author:
Clay Morgan

Field Summary
static int CANADA
          Canada
static int ENGLISH_PLATFORM
          English
static int EUR
          EUR
static int US
          US
 
Constructor Summary
Currency()
           
 
Method Summary
static java.lang.String currencyCode(int currency, int platform)
          Get the currency code for a given platform and currency.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ENGLISH_PLATFORM

public static final int ENGLISH_PLATFORM
English

See Also:
Constant Field Values

US

public static final int US
US

See Also:
Constant Field Values

CANADA

public static final int CANADA
Canada

See Also:
Constant Field Values

EUR

public static final int EUR
EUR

See Also:
Constant Field Values
Constructor Detail

Currency

public Currency()
Method Detail

currencyCode

public static java.lang.String currencyCode(int currency,
                                            int platform)
                                     throws PaynetException
Get the currency code for a given platform and currency. If platform is 0, return the english description

Parameters:
currency -
platform -
Throws:
PaynetException