|
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.PropertyCurrencyBook
public class PropertyCurrencyBook
A PropertyCurrencyBook keeps the currencies that can be used in your client
application; The currencies are stored in a property resources.
| Constructor Summary | |
|---|---|
PropertyCurrencyBook()
Initializes a new property currency book from the default resource file (RESOURCE_FILE). |
|
PropertyCurrencyBook(java.io.InputStream stream)
Initializes a new property currency book from a stream. |
|
PropertyCurrencyBook(java.util.Locale locale)
Initializes a new property currency book from the default resource file (RESOURCE_FILE). |
|
PropertyCurrencyBook(java.util.ResourceBundle bundle)
Initializes a new property currency book from a specified resource bundle |
|
PropertyCurrencyBook(java.lang.String fileName)
Initializes a new property currency book from a specified resource file. |
|
PropertyCurrencyBook(java.lang.String fileName,
java.util.Locale locale)
Initializes a new property currency book from a specified resource file. |
|
| Method Summary | |
|---|---|
void |
addCurrency(Currency currency)
Adds a currency in the currency book. |
static PropertyCurrencyBook |
createDefaultInstance()
|
java.util.Vector<Currency> |
getCurrencies()
Returns all the current currencies that can be used in your client application. |
Currency |
getCurrency(int code)
Returns a currency from a given ISO 4217 code. |
Currency |
getCurrency(java.lang.String code)
Returns a currency from a specified code. |
Currency |
getCurrency(java.lang.String iso4217code,
int precision)
Returns a currency from a given ISO 4217 code and with a precision greater or equal to the given precision; If there is no currency a given ISO 4217 code for with a precision greater or equal to the given precision, return null. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropertyCurrencyBook()
throws java.io.IOException,
java.util.MissingResourceException
java.io.IOException - if an error occurred reading the default resource file
java.util.MissingResourceException - if the resource file does not contain the
specified currency resources
public PropertyCurrencyBook(java.util.Locale locale)
throws java.io.IOException,
java.util.MissingResourceException
locale - The locale object
java.io.IOException - if an error occurred reading the default resource file
java.util.MissingResourceException - if the resource file does not contain the
specified currency resources
public PropertyCurrencyBook(java.lang.String fileName)
throws java.io.IOException,
java.util.MissingResourceException
fileName - The name and path of the resource file
java.io.IOException - if an error occurred reading the specified resource file
java.util.MissingResourceException - if the resource file does not contain the
specified currency resources
public PropertyCurrencyBook(java.lang.String fileName,
java.util.Locale locale)
throws java.io.IOException,
java.util.MissingResourceException
fileName - The name and path of the resource filelocale - The locale object
java.io.IOException - if an error occurred reading the specified resource file
java.util.MissingResourceException - if the resource file does not contain the
specified currency resources
public PropertyCurrencyBook(java.io.InputStream stream)
throws java.io.IOException,
java.util.MissingResourceException
stream - The stream that contains the currency resources
java.io.IOException - if an error occurred reading the stream
java.util.MissingResourceException - if the stream does not contain the
specified currency resources
public PropertyCurrencyBook(java.util.ResourceBundle bundle)
throws java.util.MissingResourceException
bundle - The resource bundle containing the currency resources
java.util.MissingResourceException - if the resource bundle does not contain the
specified currency resources| Method Detail |
|---|
public java.util.Vector<Currency> getCurrencies()
CurrencyBook
getCurrencies in interface CurrencyBookpublic Currency getCurrency(int code)
CurrencyBook
getCurrency in interface CurrencyBookcode - The ISO 4217 three-digit currency code
public Currency getCurrency(java.lang.String iso4217code,
int precision)
CurrencyBook
getCurrency in interface CurrencyBookiso4217code - The ISO 4217 code of the currencyprecision - The minimum precision of the currency
public Currency getCurrency(java.lang.String code)
CurrencyBook
getCurrency in interface CurrencyBookcode - The code of the currency
public void addCurrency(Currency currency)
CurrencyBook
addCurrency in interface CurrencyBookcurrency - The currency to be addedpublic static PropertyCurrencyBook createDefaultInstance()
|
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 | ||||||||