com.ibm.commerce.price.utils
Class FormattedMonetaryAmount

java.lang.Object
  |
  +--com.ibm.commerce.price.utils.FormattedUnitAmount
        |
        +--com.ibm.commerce.price.utils.FormattedMonetaryAmount

public class FormattedMonetaryAmount
extends com.ibm.commerce.price.utils.FormattedUnitAmount

Formatted monetary amount.


Constructor Summary
FormattedMonetaryAmount(java.lang.String prefix, java.lang.String formattedValue, java.lang.String suffix)
          Construct a formatted monetary amount.
 
Method Summary
protected  com.ibm.commerce.price.utils.FormattedUnitAmount createNewFormattedUnitAmount(java.lang.String prefix, java.lang.String formattedValue, java.lang.String suffix)
          createNewFormattedUnitAmount method comment.
 java.lang.String getFormattedValue()
          Get the formatted value without the prefix and suffix.
 java.lang.String getPrefix()
          Get the prefix for the formatted unit amount.
 java.lang.String getSuffix()
          Get the suffix for the formatted unit amount.
 java.lang.String toString()
          Return [prefix] formattedValue [suffix].
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FormattedMonetaryAmount

public FormattedMonetaryAmount(java.lang.String prefix,
                               java.lang.String formattedValue,
                               java.lang.String suffix)
Construct a formatted monetary amount.
Parameters:
prefix - the prefix for the formatted amount.
formattedValue - the formatted value.
suffix - the suffix for the formatted amount.
Method Detail

createNewFormattedUnitAmount

protected com.ibm.commerce.price.utils.FormattedUnitAmount createNewFormattedUnitAmount(java.lang.String prefix,
                                                                                        java.lang.String formattedValue,
                                                                                        java.lang.String suffix)
createNewFormattedUnitAmount method comment.
Overrides:
createNewFormattedUnitAmount in class com.ibm.commerce.price.utils.FormattedUnitAmount
Following copied from class: com.ibm.commerce.price.utils.FormattedUnitAmount
Parameters:
aValue - double
aUnit - java.lang.String
Returns:
UnitAmount

getFormattedValue

public java.lang.String getFormattedValue()
Get the formatted value without the prefix and suffix.
Returns:
the formatted value.

getPrefix

public java.lang.String getPrefix()
Get the prefix for the formatted unit amount.
Returns:
the prefix.

getSuffix

public java.lang.String getSuffix()
Get the suffix for the formatted unit amount.
Returns:
the suffix.

toString

public java.lang.String toString()
Return [prefix] formattedValue [suffix].
Overrides:
toString in class java.lang.Object
Returns:
the full formatted string for the unit amount.