public class FormattedMonetaryAmountDataBean extends MonetaryAmountDataBean implements FormattedMonetaryAmountInputDataBean, FormattedMonetaryAmountSmartDataBean
| Constructor and Description |
|---|
FormattedMonetaryAmountDataBean()
Formatted monetary amount data bean default constructor.
|
FormattedMonetaryAmountDataBean(MonetaryAmount aMonetaryAmount,
com.ibm.commerce.common.objects.StoreAccessBean aStoreAccessBean,
java.lang.Integer aLangId)
Formatted monetary amount data bean constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.math.BigDecimal |
getAmount()
Gets the amount to be formatted.
|
com.ibm.commerce.command.CommandContext |
getCommandContext()
Gets the command context.
|
java.lang.String |
getCurrency()
Gets the currency of the monetary amount.
|
com.ibm.commerce.datatype.TypedProperty |
getRequestProperties()
Gets request properties.
|
void |
populate()
This method is used to create the formatted monetary amount.
|
void |
setAmount(java.math.BigDecimal newAmount)
Sets the value of the monetary amount.
|
void |
setCommandContext(com.ibm.commerce.command.CommandContext commandContext)
Sets the command context.
|
void |
setCurrency(java.lang.String newCurrency)
Sets the monetary currency.
|
void |
setRequestProperties(com.ibm.commerce.datatype.TypedProperty param)
Sets request properties (not implemented).
|
getCounterValueListPrefix, getCounterValueListSeparator, getCounterValueListSuffix, getFormattedCounterValues, getPrimaryFormattedPrice, getPrimaryPrice, isShowCounterValues, setCounterValueListPrefix, setCounterValueListSeparator, setCounterValueListSuffix, setPrimaryPrice, setShowCounterValues, toStringgetCustomizedString, getDescription, getLangId, getNumberUsage, getStoreAccessBean, getSymbol, setLangId, setNumberUsage, setStoreAccessBeanpublic FormattedMonetaryAmountDataBean()
public FormattedMonetaryAmountDataBean(MonetaryAmount aMonetaryAmount, com.ibm.commerce.common.objects.StoreAccessBean aStoreAccessBean, java.lang.Integer aLangId)
aMonetaryAmount - monetary amount to format.aStoreAccessBean - store under which the formatting is to occur.aLangId - language Id under which the formatting is to occur.public java.math.BigDecimal getAmount()
getAmount in interface FormattedMonetaryAmountSmartDataBeanpublic com.ibm.commerce.command.CommandContext getCommandContext()
getCommandContext in interface com.ibm.commerce.beans.SmartDataBeanpublic java.lang.String getCurrency()
getCurrency in interface FormattedMonetaryAmountSmartDataBeanpublic com.ibm.commerce.datatype.TypedProperty getRequestProperties()
getRequestProperties in interface com.ibm.commerce.beans.InputDataBeanpublic void populate()
throws java.lang.Exception
DataBeanManager.activate()
runs.populate in interface com.ibm.commerce.beans.SmartDataBeanjava.lang.Exceptionpublic void setAmount(java.math.BigDecimal newAmount)
setAmount in interface FormattedMonetaryAmountInputDataBeannewAmount - monetary value.public void setCommandContext(com.ibm.commerce.command.CommandContext commandContext)
setCommandContext in interface com.ibm.commerce.beans.SmartDataBeancommandContext - the command context.public void setCurrency(java.lang.String newCurrency)
setCurrency in interface FormattedMonetaryAmountInputDataBeannewCurrency - monetary currency.public void setRequestProperties(com.ibm.commerce.datatype.TypedProperty param)
throws java.lang.Exception
setRequestProperties in interface com.ibm.commerce.beans.InputDataBeanparam - com.ibm.commerce.datatype.TypedPropertyjava.lang.Exception