public class FormattedQuantityAmountDataBean extends QuantityAmountDataBeanImpl implements FormattedQuantityAmountInputDataBean, FormattedQuantityAmountSmartDataBean
| Constructor and Description |
|---|
FormattedQuantityAmountDataBean()
Formatted quantity amount data bean default constructor.
|
FormattedQuantityAmountDataBean(QuantityAmount aQuantityAmount,
com.ibm.commerce.common.objects.StoreAccessBean aStoreAccessBean,
java.lang.Integer aLangId)
Formatted quantity amount data bean constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Double |
getAmount()
Gets the amount to be formatted.
|
com.ibm.commerce.command.CommandContext |
getCommandContext()
Gets the command context.
|
com.ibm.commerce.datatype.TypedProperty |
getRequestProperties()
Gets request properties.
|
java.lang.String |
getUnit()
Gets the unit of the quantity amount.
|
void |
populate()
This method is used to create the formatted quantity amount.
|
void |
setAmount(java.lang.Double newAmount)
Sets the value of the quantity amount.
|
void |
setCommandContext(com.ibm.commerce.command.CommandContext commandContext)
Sets the command context.
|
void |
setRequestProperties(com.ibm.commerce.datatype.TypedProperty param)
Sets request properties (not implemented).
|
void |
setUnit(java.lang.String newUnit)
Sets the quantity unit.
|
getFormattedQuantity, getQuantity, setQuantitygetCustomizedString, getDescription, getLangId, getNumberUsage, getStoreAccessBean, getSymbol, setLangId, setNumberUsage, setStoreAccessBean, toStringpublic FormattedQuantityAmountDataBean()
throws com.ibm.commerce.exception.ECSystemException
com.ibm.commerce.exception.ECSystemExceptionpublic FormattedQuantityAmountDataBean(QuantityAmount aQuantityAmount, com.ibm.commerce.common.objects.StoreAccessBean aStoreAccessBean, java.lang.Integer aLangId) throws com.ibm.commerce.exception.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.com.ibm.commerce.exception.ECSystemExceptionpublic java.lang.Double getAmount()
getAmount in interface FormattedQuantityAmountSmartDataBeanpublic com.ibm.commerce.command.CommandContext getCommandContext()
getCommandContext in interface com.ibm.commerce.beans.SmartDataBeanpublic com.ibm.commerce.datatype.TypedProperty getRequestProperties()
getRequestProperties in interface com.ibm.commerce.beans.InputDataBeanpublic java.lang.String getUnit()
getUnit in interface FormattedQuantityAmountSmartDataBeanpublic void populate()
throws java.lang.Exception
DataBeanManager.activate()
runs.populate in interface com.ibm.commerce.beans.SmartDataBeanjava.lang.Exceptionpublic void setAmount(java.lang.Double newAmount)
setAmount in interface FormattedQuantityAmountInputDataBeannewAmount - quantity value.public void setCommandContext(com.ibm.commerce.command.CommandContext commandContext)
setCommandContext in interface com.ibm.commerce.beans.SmartDataBeancommandContext - the command context.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.Exceptionpublic void setUnit(java.lang.String newUnit)
setUnit in interface FormattedQuantityAmountInputDataBeannewUnit - quantity unit.