public class UnitAmountDataBeanImpl
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected | UnitAmountDataBeanImpl()
UnitAmountDataBeanImpl default constructor.
|
protected | UnitAmountDataBeanImpl(UnitAmount aUnitAmount, StoreAccessBean aStoreAccessBean, java.lang.Integer aLangId)
UnitAmountDataBeanImpl constructor.
|
Modifier and Type | Method and Description |
---|---|
protected com.ibm.commerce.price.utils.FormattedUnitAmount | formatAmount(UnitAmount anAmount)
Format the amount.
|
java.lang.String | getCustomizedString()
Gets the customized string from the format table.
|
java.lang.String | getDescription()
Gets the description of the specified unit.
|
java.lang.Integer | getLangId()
Gets the language Id used to decide how to format the unit amounts.
|
java.lang.String | getNumberUsage()
Gets the number usage that was used to format the amount.
|
protected UnitAmount | getPrimaryAmount()
Gets the primary amount (round customized).
|
protected com.ibm.commerce.price.utils.FormattedUnitAmount | getPrimaryFormattedAmount()
Gets the formatted primary amount.
|
StoreAccessBean | getStoreAccessBean()
Gets the store access bean.
|
java.lang.String | getSymbol()
Gets the unit symbol information from the format table.
|
protected void | roundAmount(UnitAmount anAmount)
Round the amount.
|
void | setLangId(java.lang.Integer newLangId)
Sets the language Id to use for the formatting.
|
void | setNumberUsage(java.lang.String newNumberUsage)
(Optional) Set the number usage for the formatting.
|
protected void | setPrimaryAmount(UnitAmount newPrimaryAmount)
Sets the primary amount.
|
void | setStoreAccessBean(StoreAccessBean newStoreAccessBean)
Sets the store access bean to use for formatting.
|
protected void | setUnitManager(UnitManager newUnitManager)
Sets the unit manager that is to be used to retrieve important values.
|
java.lang.String | toString()
Returns a String that represents the value of this object.
|
protected UnitAmountDataBeanImpl()
protected UnitAmountDataBeanImpl(UnitAmount aUnitAmount, StoreAccessBean aStoreAccessBean, java.lang.Integer aLangId)
protected com.ibm.commerce.price.utils.FormattedUnitAmount formatAmount(UnitAmount anAmount) throws ECSystemException
public java.lang.String getCustomizedString() throws ECSystemException
public java.lang.String getDescription() throws ECSystemException
public java.lang.Integer getLangId()
public java.lang.String getNumberUsage()
protected UnitAmount getPrimaryAmount() throws ECSystemException
protected com.ibm.commerce.price.utils.FormattedUnitAmount getPrimaryFormattedAmount() throws ECException
public StoreAccessBean getStoreAccessBean()
public java.lang.String getSymbol() throws ECSystemException
protected void roundAmount(UnitAmount anAmount) throws ECSystemException
public void setLangId(java.lang.Integer newLangId)
public void setNumberUsage(java.lang.String newNumberUsage)
protected void setPrimaryAmount(UnitAmount newPrimaryAmount)
public void setStoreAccessBean(StoreAccessBean newStoreAccessBean)
protected void setUnitManager(UnitManager newUnitManager)
public java.lang.String toString()