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, setQuantity
getCustomizedString, getDescription, getLangId, getNumberUsage, getStoreAccessBean, getSymbol, setLangId, setNumberUsage, setStoreAccessBean, toString
public FormattedQuantityAmountDataBean() throws com.ibm.commerce.exception.ECSystemException
com.ibm.commerce.exception.ECSystemException
public 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.ECSystemException
public java.lang.Double getAmount()
getAmount
in interface FormattedQuantityAmountSmartDataBean
public com.ibm.commerce.command.CommandContext getCommandContext()
getCommandContext
in interface com.ibm.commerce.beans.SmartDataBean
public com.ibm.commerce.datatype.TypedProperty getRequestProperties()
getRequestProperties
in interface com.ibm.commerce.beans.InputDataBean
public java.lang.String getUnit()
getUnit
in interface FormattedQuantityAmountSmartDataBean
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.lang.Double newAmount)
setAmount
in interface FormattedQuantityAmountInputDataBean
newAmount
- quantity value.public void setCommandContext(com.ibm.commerce.command.CommandContext commandContext)
setCommandContext
in interface com.ibm.commerce.beans.SmartDataBean
commandContext
- the command context.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
public void setUnit(java.lang.String newUnit)
setUnit
in interface FormattedQuantityAmountInputDataBean
newUnit
- quantity unit.