java.lang.Object | +--QuantityAmountDataBeanImpl | +--com.ibm.commerce.price.beans.FormattedQuantityAmountDataBean
A formatter bean used to format quantity amounts.
Constructor Summary | |
---|---|
FormattedQuantityAmountDataBean() Formatted quantity amount data bean default constructor. | |
FormattedQuantityAmountDataBean(com.ibm.commerce.price.utils.QuantityAmount aQuantityAmount,
StoreAccessBean aStoreAccessBean,
java.lang.Integer aLangId) Formatted quantity amount data bean constructor. |
Method Summary | |
---|---|
java.lang.Double |
getAmount() Get the amount to be formatted. |
CommandContext |
getCommandContext() Get the command context. |
TypedProperty |
getRequestProperties() Get request properties. |
java.lang.String |
getUnit() Get the unit of the quantity amount. |
void |
populate() Create the formatted quantity amount. |
void |
setAmount(java.lang.Double newAmount) Set the value of the quantity amount. |
void |
setCommandContext(
CommandContext commandContext) Set the command context. |
void |
setRequestProperties(
TypedProperty param) Set request properties (not implemented). |
void |
setUnit(java.lang.String newUnit) Set the quantity unit. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll,
toString, wait, wait, wait |
Constructor Detail |
---|
public FormattedQuantityAmountDataBean() throws ECSystemException
ECSystemException
public FormattedQuantityAmountDataBean(com.ibm.commerce.price.utils.QuantityAmount aQuantityAmount, StoreAccessBean aStoreAccessBean, java.lang.Integer aLangId) throws ECSystemException
aQuantityAmount
- quantity amount to format.aStoreAccessBean
- store under which the formatting is to
occur.aLangId
- language Id under which the formatting is to
occur.
ECSystemException
Method Detail |
---|
public java.lang.Double getAmount()
public CommandContext getCommandContext()
public TypedProperty getRequestProperties()
public java.lang.String getUnit()
public void populate() throws java.lang.Exception
java.lang.Exception
public void setAmount(java.lang.Double newAmount)
newAmount
- quantity value.public void setCommandContext(CommandContext commandContext)
commandContext
- the command context.public void setRequestProperties(TypedProperty param) throws java.lang.Exception
param
- com.ibm.commerce.datatype.TypedPropertyjava.lang.Exception
public void setUnit(java.lang.String newUnit)
newUnit
- quantity unit.