java.lang.Object | +--MonetaryAmountDataBean | +--com.ibm.commerce.price.beans.FormattedMonetaryAmountDataBean
A formatter bean used to format monetary amounts.
Constructor Summary | |
---|---|
FormattedMonetaryAmountDataBean() Formatted monetary amount data bean default constructor. | |
FormattedMonetaryAmountDataBean(com.ibm.commerce.price.utils.MonetaryAmount aMonetaryAmount,
StoreAccessBean aStoreAccessBean,
java.lang.Integer aLangId) Formatted monetary amount data bean constructor. |
Method Summary | |
---|---|
java.math.BigDecimal |
getAmount() Get the amount to be formatted. |
CommandContext |
getCommandContext() Get the command context. |
java.lang.String |
getCurrency() Get the currency of the monetary amount. |
TypedProperty |
getRequestProperties() Get request properties. |
void |
populate() Create the formatted monetary amount. |
void |
setAmount(java.math.BigDecimal newAmount) Set the value of the monetary amount. |
void |
setCommandContext(
CommandContext commandContext) Set the command context. |
void |
setCurrency(java.lang.String newCurrency) Set the monetary currency. |
void |
setRequestProperties(
TypedProperty param) Set request properties (not implemented). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll,
toString, wait, wait, wait |
Constructor Detail |
---|
public FormattedMonetaryAmountDataBean()
public FormattedMonetaryAmountDataBean(com.ibm.commerce.price.utils.MonetaryAmount aMonetaryAmount, 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.Method Detail |
---|
public java.math.BigDecimal getAmount()
public CommandContext getCommandContext()
public java.lang.String getCurrency()
public TypedProperty getRequestProperties()
public void populate() throws java.lang.Exception
java.lang.Exception
public void setAmount(java.math.BigDecimal newAmount)
newAmount
- monetary value.public void setCommandContext(CommandContext commandContext)
commandContext
- the command context.public void setCurrency(java.lang.String newCurrency)
newCurrency
- monetary currency.public void setRequestProperties(TypedProperty param) throws java.lang.Exception
param
- com.ibm.commerce.datatype.TypedPropertyjava.lang.Exception