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, setShowCounterValues
getCustomizedString, getDescription, getLangId, getNumberUsage, getStoreAccessBean, getSymbol, setLangId, setNumberUsage, setStoreAccessBean
public 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 CategorizedMonetaryAmountsSmartDataBean
aCategory
- - 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 CategorizedMonetaryAmountsSmartDataBean
aCategory
- - the categoryString
representing monetary value and
the corresponding name of a particular category.public java.lang.String getAllCategorizedAmountsWithNames()
getAllCategorizedAmountsWithNames
in interface CategorizedMonetaryAmountsSmartDataBean
String
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 CategorizedMonetaryAmountsSmartDataBean
String
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 CategorizedMonetaryAmountsSmartDataBean
Hashtable
containing the categorized names and
monetary amounts.public java.util.Hashtable getCategorizedAmountsDBAndNames()
getCategorizedAmountsDBAndNames
in interface CategorizedMonetaryAmountsSmartDataBean
Hashtable
containing the categorized names and
MonetaryAmountDataBean.public java.util.Hashtable getCategorizedDescriptionsAndNames()
getCategorizedDescriptionsAndNames
in interface CategorizedMonetaryAmountsSmartDataBean
Hashtable
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 CategorizedMonetaryAmountsSmartDataBean
BigDecimal
containing the monetary value.public java.lang.String getCategoryName()
getCategoryName
in interface CategorizedMonetaryAmountsSmartDataBean
String
containing the category name.public com.ibm.commerce.command.CommandContext getCommandContext()
com.ibm.commerce.command.CommandContext
.public java.lang.String getCurrency()
getCurrency
in interface CategorizedMonetaryAmountsSmartDataBean
String
representing the monetary currency.public int getNoOfCategories()
getNoOfCategories
in interface CategorizedMonetaryAmountsSmartDataBean
int
containing 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 CategorizedMonetaryAmountsSmartDataBean
String
representing the total monetary amount.public java.lang.String getTotalCategorizedValue()
getTotalCategorizedValue
in interface CategorizedMonetaryAmountsSmartDataBean
String
representing the total monetary value.public void populate() throws java.lang.Exception
DataBeanManager.activate()
runs.java.lang.Exception
public void setCategorizedAmountsAndNames(java.util.Hashtable aCategorizedAmounts)
setCategorizedAmountsAndNames
in interface CategorizedMonetaryAmountsInputDataBean
aCategorizedAmounts
- public void setCategorizedAmountsDBAndNames(java.util.Hashtable aCategorizedAmountsDB)
setCategorizedAmountsDBAndNames
in interface CategorizedMonetaryAmountsInputDataBean
aCategorizedAmountsDB
- the categorized amounts data bean and names hashtable.public void setCategorizedDescriptionsAndNames(java.util.Hashtable aCategorizedDescriptionsAndNames)
setCategorizedDescriptionsAndNames
in interface CategorizedMonetaryAmountsInputDataBean
aCategorizedDescriptionsAndNames
- public void setCategorizedRatesAndNames(java.util.HashMap aCategorizedRatesAndNames)
aCategorizedRatesAndNames
- public void setCategorizedValuesAndNames(java.util.Hashtable aCategorizedValues)
setCategorizedValuesAndNames
in interface CategorizedMonetaryAmountsInputDataBean
aCategorizedValues
- public void setCategoryAmount(java.math.BigDecimal aCategoryAmount)
setCategoryAmount
in interface CategorizedMonetaryAmountsInputDataBean
aCategoryAmount
- the category value.public void setCategoryName(java.lang.String aCgryName)
setCategoryName
in interface CategorizedMonetaryAmountsInputDataBean
aCgryName
- 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 CategorizedMonetaryAmountsInputDataBean
aCurrency
- the monetary currency.public void setRequestProperties(com.ibm.commerce.datatype.TypedProperty param) throws java.lang.Exception
param
- com.ibm.commerce.datatype.TypedProperty.java.lang.Exception
public java.lang.String toString()
toString
in interface CategorizedMonetaryAmountsSmartDataBean
toString
in class MonetaryAmountDataBean
String
representing all of the categorized
monetary amounts or monetary values and their corresponding category
names.