com.ibm.commerce.taxation.commands
Class CategorizedTaxAmount
java.lang.Object
|
+--java.util.Dictionary
|
+--java.util.Hashtable
|
+--com.ibm.commerce.taxation.commands.CategorizedTaxAmount
- All Implemented Interfaces:
- java.lang.Cloneable, java.util.Map, java.io.Serializable
- public class CategorizedTaxAmount
- extends java.util.Hashtable
This structure is a hashtable to store the tax amounts for each of
the tax categories
- See Also:
- Serialized Form
Inner classes inherited from class java.util.Map |
java.util.Map.Entry |
Method Summary |
java.lang.String |
getCurrency()
Returns the currency of the tax amount. |
java.math.BigDecimal |
getValue()
Returns the tax amount. |
java.math.BigDecimal |
getValue(java.lang.Integer anCategory)
Returns the tax amount for a particular tax category. |
java.math.BigDecimal |
getValue(java.lang.String astrCategory)
Returns the tax amount for a particular tax category. |
void |
setCurrency(java.lang.String astrCurrency)
Sets the currency of the tax amount. |
Methods inherited from class java.util.Hashtable |
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
CategorizedTaxAmount
public CategorizedTaxAmount(java.math.BigDecimal adValue,
StoreAccessBean aabStore,
java.lang.String astrCurrency)
CategorizedTaxAmount
public CategorizedTaxAmount(java.math.BigDecimal adValue,
StoreAccessBean aabStore,
java.lang.String astrCurrency,
java.lang.String astrCategory)
CategorizedTaxAmount
public CategorizedTaxAmount(StoreAccessBean aabStore,
java.lang.String astrCurrency)
getCurrency
public java.lang.String getCurrency()
- Returns the currency of the tax amount.
- Parameters:
istrCurrency
- the currency of the tax amount.
getValue
public java.math.BigDecimal getValue()
- Returns the tax amount.
- Returns:
- The tax amount.
getValue
public java.math.BigDecimal getValue(java.lang.Integer anCategory)
- Returns the tax amount for a particular tax category.
- Parameters:
aCategory
- the tax category.
- Returns:
- The tax amount for a particular tax category.
getValue
public java.math.BigDecimal getValue(java.lang.String astrCategory)
- Returns the tax amount for a particular tax category.
- Parameters:
aCategory
- the tax category.
- Returns:
- The tax amount for a particular tax category.
setCurrency
public void setCurrency(java.lang.String astrCurrency)
throws ECException
- Sets the currency of the tax amount.
- Parameters:
aCurrency
- The currency of the tax amount.