public class CategorizedMonetaryAmountsDataBean extends MonetaryAmountDataBean implements CategorizedMonetaryAmountsInputDataBean, CategorizedMonetaryAmountsSmartDataBean
| Constructor and Description |
|---|
CategorizedMonetaryAmountsDataBean()
CategorizedMonetaryAmountFormatter constructor.
|
CategorizedMonetaryAmountsDataBean(MonetaryAmount aMonetaryAmount,
com.ibm.commerce.common.objects.StoreAccessBean aStoreAccessBean,
java.lang.Integer aLangId,
java.lang.String aCategoryName)
CategorizedMonetaryAmountFormatter constructor.
|
CategorizedMonetaryAmountsDataBean(MonetaryAmount aMonetaryAmount,
com.ibm.commerce.common.objects.StoreAccessBean aStoreAccessBean,
java.lang.Integer aLangId,
java.lang.String aCategoryName,
java.util.Hashtable aDescHash,
java.util.Hashtable aAmountHash,
java.util.Hashtable aAmountDBHash)
CategorizedMonetaryAmountFormatter constructor.
|
CategorizedMonetaryAmountsDataBean(MonetaryAmount aMonetaryAmount,
com.ibm.commerce.common.objects.StoreAccessBean aStoreAccessBean,
java.lang.Integer aLangId,
java.lang.String aCategoryName,
java.util.Hashtable aDescHash,
java.util.Hashtable aAmountHash,
java.util.Hashtable aAmountDBHash,
java.util.HashMap aRateHash)
CategorizedMonetaryAmountFormatter constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getACategorizedAmountWithName(java.lang.String aCategory)
Returns the monetary amount and name of a particular category.
|
java.lang.String |
getACategorizedValueWithName(java.lang.String aCategory)
Returns the monetary value and name of a particular category.
|
java.lang.String |
getAllCategorizedAmountsWithNames()
Returns all of the categorized monetary amounts and names.
|
java.lang.String |
getAllCategorizedAmountsWithNamesAndRates()
Returns all of the categorized monetary amounts ,names and rates.
|
java.lang.String |
getAllCategorizedValuesWithNames()
Returns all of the categorized monetary values and names.
|
java.lang.String |
getAllCategorizedValuesWithNamesAndRates()
Returns all of the categorized monetary values , names and rates.
|
java.util.Hashtable |
getCategorizedAmountsAndNames()
Gets the categorized names and monetary amounts hashtable.
|
java.util.Hashtable |
getCategorizedAmountsDBAndNames()
Gets the categorized names and MonetaryAmountDataBean hashtable.
|
java.util.Hashtable |
getCategorizedDescriptionsAndNames()
Gets the categorized descriptions and names hashtable.
|
java.util.HashMap |
getCategorizedRatesAndNames()
Gets the categorized rates and names hashtable.
|
java.math.BigDecimal |
getCategoryAmount()
This method gets the category monetary value.
|
java.lang.String |
getCategoryName()
Gets the category name.
|
com.ibm.commerce.command.CommandContext |
getCommandContext()
Gets the command context.
|
java.lang.String |
getCurrency()
Gets the monetary currency.
|
int |
getNoOfCategories()
Returns the total number of categories.
|
com.ibm.commerce.datatype.TypedProperty |
getRequestProperties()
Gets the request properties.
|
java.lang.String |
getTotalCategorizedAmount()
Returns the total of all the categorized amounts.
|
java.lang.String |
getTotalCategorizedValue()
Returns the total of all the categorized amount values.
|
void |
populate()
This method is used to create the hashtable that contains the categories and their
corresponding monetary amounts.
|
void |
setCategorizedAmountsAndNames(java.util.Hashtable aCategorizedAmounts)
Sets the categorized names and monetary amounts hashtable.
|
void |
setCategorizedAmountsDBAndNames(java.util.Hashtable aCategorizedAmountsDB)
Sets the categorized names and MonetaryAmountDataBean hashtable.
|
void |
setCategorizedDescriptionsAndNames(java.util.Hashtable aCategorizedDescriptionsAndNames)
Sets the categorized descriptions and names hashtable.
|
void |
setCategorizedRatesAndNames(java.util.HashMap aCategorizedRatesAndNames)
Sets the categorized rates and names hashtable.
|
void |
setCategorizedValuesAndNames(java.util.Hashtable aCategorizedValues)
Sets the categorized values and names hashtable.
|
void |
setCategoryAmount(java.math.BigDecimal aCategoryAmount)
Sets the category value.
|
void |
setCategoryName(java.lang.String aCgryName)
Sets the category name.
|
void |
setCommandContext(com.ibm.commerce.command.CommandContext commandContext)
Sets the command context.
|
void |
setCurrency(java.lang.String aCurrency)
Sets the monetary currency.
|
void |
setRequestProperties(com.ibm.commerce.datatype.TypedProperty param)
Sets the request properties.
|
java.lang.String |
toString()
Returns all of the categorized monetary amounts or monetary values
and their corresponding category names.
|
getCounterValueListPrefix, getCounterValueListSeparator, getCounterValueListSuffix, getFormattedCounterValues, getPrimaryFormattedPrice, getPrimaryPrice, isShowCounterValues, setCounterValueListPrefix, setCounterValueListSeparator, setCounterValueListSuffix, setPrimaryPrice, setShowCounterValuesgetCustomizedString, getDescription, getLangId, getNumberUsage, getStoreAccessBean, getSymbol, setLangId, setNumberUsage, setStoreAccessBeanpublic CategorizedMonetaryAmountsDataBean()
public CategorizedMonetaryAmountsDataBean(MonetaryAmount aMonetaryAmount, com.ibm.commerce.common.objects.StoreAccessBean aStoreAccessBean, java.lang.Integer aLangId, java.lang.String aCategoryName)
aStoreAccessBean - aLangId - aCategoryName - aMonetaryAmount - com.ibm.commerce.price.utils.MonetaryAmountpublic CategorizedMonetaryAmountsDataBean(MonetaryAmount aMonetaryAmount, com.ibm.commerce.common.objects.StoreAccessBean aStoreAccessBean, java.lang.Integer aLangId, java.lang.String aCategoryName, java.util.Hashtable aDescHash, java.util.Hashtable aAmountHash, java.util.Hashtable aAmountDBHash)
aStoreAccessBean - aLangId - aCategoryName - aDescHash - aAmountHash - aAmountDBHash - aMonetaryAmount - com.ibm.commerce.price.utils.MonetaryAmountpublic CategorizedMonetaryAmountsDataBean(MonetaryAmount aMonetaryAmount, com.ibm.commerce.common.objects.StoreAccessBean aStoreAccessBean, java.lang.Integer aLangId, java.lang.String aCategoryName, java.util.Hashtable aDescHash, java.util.Hashtable aAmountHash, java.util.Hashtable aAmountDBHash, java.util.HashMap aRateHash)
aStoreAccessBean - aLangId - aCategoryName - aDescHash - aAmountHash - aAmountDBHash - aMonetaryAmount - com.ibm.commerce.price.utils.MonetaryAmountaRateHash - public java.lang.String getACategorizedAmountWithName(java.lang.String aCategory)
getACategorizedAmountWithName in interface CategorizedMonetaryAmountsSmartDataBeanaCategory - - the categoryString representing monetary amount and
the corresponding name of a particular category.public java.lang.String getACategorizedValueWithName(java.lang.String aCategory)
getACategorizedValueWithName in interface CategorizedMonetaryAmountsSmartDataBeanaCategory - - the categoryString representing monetary value and
the corresponding name of a particular category.public java.lang.String getAllCategorizedAmountsWithNames()
getAllCategorizedAmountsWithNames in interface CategorizedMonetaryAmountsSmartDataBeanString representing all of the categorized
monetary amounts and the corresponding category names.public java.lang.String getAllCategorizedAmountsWithNamesAndRates()
String representing all of the categorized
monetary amounts and the corresponding category names and category rates.public java.lang.String getAllCategorizedValuesWithNames()
getAllCategorizedValuesWithNames in interface CategorizedMonetaryAmountsSmartDataBeanString representing all of the categorized
monetary values and the corresponding category names.public java.lang.String getAllCategorizedValuesWithNamesAndRates()
String representing all of the categorized
monetary values and the corresponding category names and tax rates.public java.util.Hashtable getCategorizedAmountsAndNames()
getCategorizedAmountsAndNames in interface CategorizedMonetaryAmountsSmartDataBeanHashtable containing the categorized names and
monetary amounts.public java.util.Hashtable getCategorizedAmountsDBAndNames()
getCategorizedAmountsDBAndNames in interface CategorizedMonetaryAmountsSmartDataBeanHashtable containing the categorized names and
MonetaryAmountDataBean.public java.util.Hashtable getCategorizedDescriptionsAndNames()
getCategorizedDescriptionsAndNames in interface CategorizedMonetaryAmountsSmartDataBeanHashtable containing the categorized descriptions and
names.public java.util.HashMap getCategorizedRatesAndNames()
HashMap containing the categorized descriptions and
names.public java.math.BigDecimal getCategoryAmount()
getCategoryAmount in interface CategorizedMonetaryAmountsSmartDataBeanBigDecimal containing the monetary value.public java.lang.String getCategoryName()
getCategoryName in interface CategorizedMonetaryAmountsSmartDataBeanString containing the category name.public com.ibm.commerce.command.CommandContext getCommandContext()
com.ibm.commerce.command.CommandContext.public java.lang.String getCurrency()
getCurrency in interface CategorizedMonetaryAmountsSmartDataBeanString representing the monetary currency.public int getNoOfCategories()
getNoOfCategories in interface CategorizedMonetaryAmountsSmartDataBeanintcontaining the total numbers of categories.public com.ibm.commerce.datatype.TypedProperty getRequestProperties()
com.ibm.commerce.datatype.TypedProperty containing the
request properties.public java.lang.String getTotalCategorizedAmount()
getTotalCategorizedAmount in interface CategorizedMonetaryAmountsSmartDataBeanString representing the total monetary amount.public java.lang.String getTotalCategorizedValue()
getTotalCategorizedValue in interface CategorizedMonetaryAmountsSmartDataBeanString representing the total monetary value.public void populate()
throws java.lang.Exception
DataBeanManager.activate()
runs.java.lang.Exceptionpublic void setCategorizedAmountsAndNames(java.util.Hashtable aCategorizedAmounts)
setCategorizedAmountsAndNames in interface CategorizedMonetaryAmountsInputDataBeanaCategorizedAmounts - public void setCategorizedAmountsDBAndNames(java.util.Hashtable aCategorizedAmountsDB)
setCategorizedAmountsDBAndNames in interface CategorizedMonetaryAmountsInputDataBeanaCategorizedAmountsDB - the categorized amounts data bean and names hashtable.public void setCategorizedDescriptionsAndNames(java.util.Hashtable aCategorizedDescriptionsAndNames)
setCategorizedDescriptionsAndNames in interface CategorizedMonetaryAmountsInputDataBeanaCategorizedDescriptionsAndNames - public void setCategorizedRatesAndNames(java.util.HashMap aCategorizedRatesAndNames)
aCategorizedRatesAndNames - public void setCategorizedValuesAndNames(java.util.Hashtable aCategorizedValues)
setCategorizedValuesAndNames in interface CategorizedMonetaryAmountsInputDataBeanaCategorizedValues - public void setCategoryAmount(java.math.BigDecimal aCategoryAmount)
setCategoryAmount in interface CategorizedMonetaryAmountsInputDataBeanaCategoryAmount - the category value.public void setCategoryName(java.lang.String aCgryName)
setCategoryName in interface CategorizedMonetaryAmountsInputDataBeanaCgryName - the category name.public void setCommandContext(com.ibm.commerce.command.CommandContext commandContext)
commandContext - com.ibm.commerce.command.CommandContext.public void setCurrency(java.lang.String aCurrency)
setCurrency in interface CategorizedMonetaryAmountsInputDataBeanaCurrency - the monetary currency.public void setRequestProperties(com.ibm.commerce.datatype.TypedProperty param)
throws java.lang.Exception
param - com.ibm.commerce.datatype.TypedProperty.java.lang.Exceptionpublic java.lang.String toString()
toString in interface CategorizedMonetaryAmountsSmartDataBeantoString in class MonetaryAmountDataBeanString representing all of the categorized
monetary amounts or monetary values and their corresponding category
names.