java.lang.Objectcom.ibm.commerce.price.utils.UnitAmountDataBeanImpl
com.ibm.commerce.price.utils.MonetaryAmountDataBean
com.ibm.commerce.price.beans.CategorizedMonetaryAmountsDataBean
This DataBean is a formatter bean for formatting multiple monetary amounts that are of different categories. One example that will use this formatter will be the taxation that can be composed of several tax categories (e.g. GST, PST).
Field Summary |
Fields inherited from class com.ibm.commerce.price.utils.MonetaryAmountDataBean |
iCounterValueListPrefix, iCounterValueListSeparator, iCounterValueListSuffix |
Constructor Summary | |
CategorizedMonetaryAmountsDataBean() CategorizedMonetaryAmountFormatter constructor. |
|
CategorizedMonetaryAmountsDataBean(MonetaryAmount aMonetaryAmount, StoreAccessBean aStoreAccessBean, java.lang.Integer aLangId, java.lang.String aCategoryName) CategorizedMonetaryAmountFormatter constructor. |
|
CategorizedMonetaryAmountsDataBean(MonetaryAmount aMonetaryAmount, StoreAccessBean aStoreAccessBean, java.lang.Integer aLangId, java.lang.String aCategoryName, java.util.Hashtable aDescHash, java.util.Hashtable aAmountHash, java.util.Hashtable aAmountDBHash) CategorizedMonetaryAmountFormatter constructor. |
Method Summary | |
java.lang.String | getACategorizedAmountWithName(java.lang.String aCategory) Return the monetary amount and name of a particular category. |
java.lang.String | getACategorizedValueWithName(java.lang.String aCategory) Return the monetary value and name of a particular category. |
java.lang.String | getAllCategorizedAmountsWithNames() Return all of the categorized monetary amounts and names. |
java.lang.String | getAllCategorizedValuesWithNames() Return all of the categorized monetary values and names. |
java.util.Hashtable | getCategorizedAmountsAndNames() Get the categorized names and monetary amounts hashtable. |
java.util.Hashtable | getCategorizedAmountsDBAndNames() Get the categorized names and MonetaryAmountDataBean hashtable. |
java.util.Hashtable | getCategorizedDescriptionsAndNames() Get the categorized descriptions and names hashtable. |
java.math.BigDecimal | getCategoryAmount() Get the category monetary value. |
java.lang.String | getCategoryName() Get the category name. |
CommandContext | getCommandContext() Get the command context. |
java.lang.String | getCurrency() Get the monetary currency. |
int | getNoOfCategories() Return the total number of categories. |
TypedProperty | getRequestProperties() Get the request properties. |
java.lang.String | getTotalCategorizedAmount() Return the total of all the categorized amounts. |
java.lang.String | getTotalCategorizedValue() Return the total of all the categorized amount values. |
void | populate() Create the hashtable that contains the categories and their corresponding monetary amounts. |
void | setCategorizedAmountsAndNames(java.util.Hashtable aCategorizedAmounts) Set the categorized names and monetary amounts hashtable. |
void | setCategorizedAmountsDBAndNames(java.util.Hashtable aCategorizedAmountsDB) Set the categorized names and MonetaryAmountDataBean hashtable. |
void | setCategorizedDescriptionsAndNames(java.util.Hashtable aCategorizedDescriptionsAndNames) Set the categorized descriptions and names hashtable. |
void | setCategorizedValuesAndNames(java.util.Hashtable aCategorizedValues) Set the categorized values and names hashtable. |
void | setCategoryAmount(java.math.BigDecimal aCategoryAmount) Set the category value. |
void | setCategoryName(java.lang.String aCgryName) Set the category name. |
void | setCommandContext(CommandContext commandContext) Set the command context. |
void | setCurrency(java.lang.String aCurrency) Set the monetary currency. |
void | setRequestProperties(TypedProperty param) Set the request properties. |
java.lang.String | toString() Returns all of the categorized monetary amounts or monetary values and their corresponding category names. |
Methods inherited from class com.ibm.commerce.price.utils.MonetaryAmountDataBean |
getCounterValueListPrefix, getCounterValueListSeparator, getCounterValueListSuffix, getFormattedCounterValues, getPrimaryFormattedPrice, getPrimaryPrice, isShowCounterValues, setCounterValueListPrefix, setCounterValueListSeparator, setCounterValueListSuffix, setPrimaryPrice, setShowCounterValues |
Methods inherited from class com.ibm.commerce.price.utils.UnitAmountDataBeanImpl |
formatAmount, getCustomizedString, getDescription, getLangId, getNumberUsage, getPrimaryAmount, getPrimaryFormattedAmount, getStoreAccessBean, getSymbol, roundAmount, setLangId, setNumberUsage, setPrimaryAmount, setStoreAccessBean, setUnitManager |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CategorizedMonetaryAmountsDataBean()
public CategorizedMonetaryAmountsDataBean(MonetaryAmount aMonetaryAmount, StoreAccessBean aStoreAccessBean, java.lang.Integer aLangId, java.lang.String aCategoryName)
public CategorizedMonetaryAmountsDataBean(MonetaryAmount aMonetaryAmount, StoreAccessBean aStoreAccessBean, java.lang.Integer aLangId, java.lang.String aCategoryName, java.util.Hashtable aDescHash, java.util.Hashtable aAmountHash, java.util.Hashtable aAmountDBHash)
Method Detail |
public java.lang.String getACategorizedAmountWithName(java.lang.String aCategory)
public java.lang.String getACategorizedValueWithName(java.lang.String aCategory)
public java.lang.String getAllCategorizedAmountsWithNames()
public java.lang.String getAllCategorizedValuesWithNames()
public java.util.Hashtable getCategorizedAmountsAndNames()
public java.util.Hashtable getCategorizedAmountsDBAndNames()
public java.util.Hashtable getCategorizedDescriptionsAndNames()
public java.math.BigDecimal getCategoryAmount()
public java.lang.String getCategoryName()
public CommandContext getCommandContext()
public java.lang.String getCurrency()
public int getNoOfCategories()
public TypedProperty getRequestProperties()
public java.lang.String getTotalCategorizedAmount()
public java.lang.String getTotalCategorizedValue()
public void populate() throws java.lang.Exception
public void setCategorizedAmountsAndNames(java.util.Hashtable aCategorizedAmounts)
public void setCategorizedAmountsDBAndNames(java.util.Hashtable aCategorizedAmountsDB)
public void setCategorizedDescriptionsAndNames(java.util.Hashtable aCategorizedDescriptionsAndNames)
public void setCategorizedValuesAndNames(java.util.Hashtable aCategorizedValues)
public void setCategoryAmount(java.math.BigDecimal aCategoryAmount)
public void setCategoryName(java.lang.String aCgryName)
public void setCommandContext(CommandContext commandContext)
public void setCurrency(java.lang.String aCurrency)
public void setRequestProperties(TypedProperty param) throws java.lang.Exception
public java.lang.String toString()
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.