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, toString
getCustomizedString, getDescription, getLangId, getNumberUsage, getStoreAccessBean, getSymbol, setLangId, setNumberUsage, setStoreAccessBean
public 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 FormattedMonetaryAmountSmartDataBean
public com.ibm.commerce.command.CommandContext getCommandContext()
getCommandContext
in interface com.ibm.commerce.beans.SmartDataBean
public java.lang.String getCurrency()
getCurrency
in interface FormattedMonetaryAmountSmartDataBean
public com.ibm.commerce.datatype.TypedProperty getRequestProperties()
getRequestProperties
in interface com.ibm.commerce.beans.InputDataBean
public void populate() throws java.lang.Exception
DataBeanManager.activate()
runs.populate
in interface com.ibm.commerce.beans.SmartDataBean
java.lang.Exception
public void setAmount(java.math.BigDecimal newAmount)
setAmount
in interface FormattedMonetaryAmountInputDataBean
newAmount
- monetary value.public void setCommandContext(com.ibm.commerce.command.CommandContext commandContext)
setCommandContext
in interface com.ibm.commerce.beans.SmartDataBean
commandContext
- the command context.public void setCurrency(java.lang.String newCurrency)
setCurrency
in interface FormattedMonetaryAmountInputDataBean
newCurrency
- monetary currency.public void setRequestProperties(com.ibm.commerce.datatype.TypedProperty param) throws java.lang.Exception
setRequestProperties
in interface com.ibm.commerce.beans.InputDataBean
param
- com.ibm.commerce.datatype.TypedPropertyjava.lang.Exception