|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.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).
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)
aMonetaryAmount
- com.ibm.commerce.price.utils.MonetaryAmountpublic 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)
aMonetaryAmount
- com.ibm.commerce.price.utils.MonetaryAmountMethod Detail |
public java.lang.String getACategorizedAmountWithName(java.lang.String aCategory)
getACategorizedAmountWithName
in interface CategorizedMonetaryAmountsSmartDataBean
String
representing monetary amount and
the corresponding name of a particular category.public java.lang.String getACategorizedValueWithName(java.lang.String aCategory)
getACategorizedValueWithName
in interface CategorizedMonetaryAmountsSmartDataBean
String
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 getAllCategorizedValuesWithNames()
getAllCategorizedValuesWithNames
in interface CategorizedMonetaryAmountsSmartDataBean
String
representing all of the categorized
monetary values and the corresponding category names.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.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 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 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
public void setCategorizedAmountsAndNames(java.util.Hashtable aCategorizedAmounts)
setCategorizedAmountsAndNames
in interface CategorizedMonetaryAmountsInputDataBean
aCategorizedAmount
- the categorized amounts and names hashtable.public void setCategorizedAmountsDBAndNames(java.util.Hashtable aCategorizedAmountsDB)
setCategorizedAmountsDBAndNames
in interface CategorizedMonetaryAmountsInputDataBean
aCategorizedAmountsDB
- the categorized amounts databean and names hashtable.public void setCategorizedDescriptionsAndNames(java.util.Hashtable aCategorizedDescriptionsAndNames)
setCategorizedDescriptionsAndNames
in interface CategorizedMonetaryAmountsInputDataBean
aCategorizedDescription
- the categorized descriptions and names hashtable.public void setCategorizedValuesAndNames(java.util.Hashtable aCategorizedValues)
setCategorizedValuesAndNames
in interface CategorizedMonetaryAmountsInputDataBean
aCategorizedValue
- the categorized values and names hashtable.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(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(TypedProperty param) throws java.lang.Exception
param
- com.ibm.commerce.datatype.TypedProperty.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.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |