public class MonetaryAmountDataBean extends UnitAmountDataBeanImpl
Constructor and Description |
---|
MonetaryAmountDataBean()
MonetaryAmountDataBean default constructor.
|
MonetaryAmountDataBean(MonetaryAmount aMonetaryAmount,
com.ibm.commerce.common.objects.StoreAccessBean aStoreAccessBean,
java.lang.Integer aLangId)
MonetaryAmountDataBean constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCounterValueListPrefix()
Get the prefix used to start the list of counter values.
|
java.lang.String |
getCounterValueListSeparator()
Get the separator used to separate the list of counter values.
|
java.lang.String |
getCounterValueListSuffix()
Get the suffix used to end the list of counter values.
|
FormattedMonetaryAmount[] |
getFormattedCounterValues()
Get a vector of the formatted counter values
|
FormattedMonetaryAmount |
getPrimaryFormattedPrice()
Get the formatted primary price.
|
MonetaryAmount |
getPrimaryPrice()
Get the primary price (round customized).
|
boolean |
isShowCounterValues()
Return a flag that indicates whether counter values are to be shown in the formatted amount.
|
void |
setCounterValueListPrefix(java.lang.String newCounterValueListPrefix)
Set the prefix used for the counter value list.
|
void |
setCounterValueListSeparator(java.lang.String newCounterValueListSeparator)
Set the separator used for the counter value list.
|
void |
setCounterValueListSuffix(java.lang.String newCounterValueListSuffix)
Set the suffix used for the counter value list.
|
void |
setPrimaryPrice(MonetaryAmount newPrimaryPrice)
Set the primary price.
|
void |
setShowCounterValues(boolean newShowCounterValues)
Set the flag that indicates whether counter values should be shown
in the formatted amount.
|
java.lang.String |
toString()
Returns a String that represents the value of this object.
|
getCustomizedString, getDescription, getLangId, getNumberUsage, getStoreAccessBean, getSymbol, setLangId, setNumberUsage, setStoreAccessBean
public MonetaryAmountDataBean()
public MonetaryAmountDataBean(MonetaryAmount aMonetaryAmount, com.ibm.commerce.common.objects.StoreAccessBean aStoreAccessBean, java.lang.Integer aLangId)
aMonetaryAmount
- a monetary amount.aStoreAccessBean
- the store under which the formatting is to occur.aLangId
- the language Id under which the formatting is to occur.public java.lang.String getCounterValueListPrefix()
public java.lang.String getCounterValueListSeparator()
public java.lang.String getCounterValueListSuffix()
public FormattedMonetaryAmount[] getFormattedCounterValues() throws com.ibm.commerce.exception.ECException
com.ibm.commerce.exception.ECException
public FormattedMonetaryAmount getPrimaryFormattedPrice() throws com.ibm.commerce.exception.ECException
com.ibm.commerce.exception.ECException
public MonetaryAmount getPrimaryPrice() throws com.ibm.commerce.exception.ECSystemException
com.ibm.commerce.exception.ECSystemException
public boolean isShowCounterValues()
public void setCounterValueListPrefix(java.lang.String newCounterValueListPrefix)
newCounterValueListPrefix
- the new counter value list prefix.public void setCounterValueListSeparator(java.lang.String newCounterValueListSeparator)
newCounterValueListSeparator
- the new counter value list separator.public void setCounterValueListSuffix(java.lang.String newCounterValueListSuffix)
newCounterValueListSuffix
- the new counter value list suffix.public void setPrimaryPrice(MonetaryAmount newPrimaryPrice)
newPrimaryPrice
- the primary monetary amount.public void setShowCounterValues(boolean newShowCounterValues)
newShowCounterValues
- show counter values flag.public java.lang.String toString()
toString
in class UnitAmountDataBeanImpl