|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.commerce.price.utils.UnitAmountDataBeanImpl
Monetary amount data bean service class.
Constructor Summary | |
protected |
UnitAmountDataBeanImpl()
UnitAmountDataBeanImpl default constructor. |
protected |
UnitAmountDataBeanImpl(UnitAmount aUnitAmount,
StoreAccessBean aStoreAccessBean,
java.lang.Integer aLangId)
UnitAmountDataBeanImpl constructor. |
Method Summary | |
protected com.ibm.commerce.price.utils.FormattedUnitAmount |
formatAmount(UnitAmount anAmount)
Format the amount. |
java.lang.String |
getCustomizedString()
Get the customized string from the format table. |
java.lang.String |
getDescription()
Get the description of the specified unit. |
java.lang.Integer |
getLangId()
Get the language Id used to decide how to format the unit amounts. |
java.lang.String |
getNumberUsage()
Get the number usage that was used to format the amount. |
protected UnitAmount |
getPrimaryAmount()
Get the primary amount (round customized). |
protected com.ibm.commerce.price.utils.FormattedUnitAmount |
getPrimaryFormattedAmount()
Get the formatted primary amount. |
StoreAccessBean |
getStoreAccessBean()
Get the store access bean. |
java.lang.String |
getSymbol()
Get the unit symbol information from the format table. |
protected void |
roundAmount(UnitAmount anAmount)
Round the amount. |
void |
setLangId(java.lang.Integer newLangId)
Set 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)
Set the primary amount. |
void |
setStoreAccessBean(StoreAccessBean newStoreAccessBean)
Set the store access bean to use for formatting. |
protected void |
setUnitManager(UnitManager newUnitManager)
Set 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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
protected UnitAmountDataBeanImpl()
protected UnitAmountDataBeanImpl(UnitAmount aUnitAmount, StoreAccessBean aStoreAccessBean, java.lang.Integer aLangId)
aUnitAmount
- a unit amount.aStoreAccessBean
- the store under which the formatting is to occur.aLangId
- the language Id under which the formatting is to occur.Method Detail |
protected com.ibm.commerce.price.utils.FormattedUnitAmount formatAmount(UnitAmount anAmount) throws ECSystemException
anAmount
- The unit amount to format.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
anAmount
- com.ibm.commerce.price.utils.MonetaryAmountpublic void setLangId(java.lang.Integer newLangId)
newLangId
- language Id.public void setNumberUsage(java.lang.String newNumberUsage)
newNumberUsage
- The number usage code.protected void setPrimaryAmount(UnitAmount newPrimaryAmount)
newPrimaryAmount
- the primary unit amount.public void setStoreAccessBean(StoreAccessBean newStoreAccessBean)
newStoreAccessBean
- store access bean.protected void setUnitManager(UnitManager newUnitManager)
newUnitManager
- The unit manager.public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |