|
SAP Convergent Charging
Java and XML APIs (Core) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.highdeal.currency.CurrencyHelper
public class CurrencyHelper
This Java class is a tool to work with currencies.
For some of its methods, it is expected as prerequisite that the class
Currency is initialized with a CurrencyBook.
| Method Summary | |
|---|---|
static java.lang.String |
getCurrencyISOCodeOrCode(Currency currency)
Returns the ISO code or the code of a currency whether the currency has an ISO code or not. |
static java.lang.String |
getCurrencyISOCodeOrCode(java.lang.String currencyCode)
Returns the ISO code or the code of a currency whether the currency has an ISO code or not. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static final java.lang.String getCurrencyISOCodeOrCode(java.lang.String currencyCode)
Example
With the following CurrencyBook:
| Currency Code | Currency ISO Code |
|---|---|
| EUR | EUR |
| USDN | USD |
| PNT | null |
currencyCode | Method Result |
|---|---|
| EUR | EUR |
| USDN | USD |
| PNT | PNT |
| UNK | UNK |
null | throws NullPointerException |
currencyCode - The code of the currency for which its ISO code or its code must be returned
currencyCode otherwise i.e. if no currency has currencyCode as code or if the currency has no ISO code.
java.lang.NullPointerException - if the class currency is not initialized with a CurrencyBook
or if currencyCode is nullpublic static final java.lang.String getCurrencyISOCodeOrCode(Currency currency)
currency - The currency for which its ISO code or its code must be returned
currency if specified, the code of the currency otherwise.
java.lang.NullPointerException - if currency is null.
|
Document Published: October 2015 (SAP CC 4.0 SP10 and Later) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||