com.ibm.commerce.price.utils

Class QuantityAmountDataBeanImpl

    • Constructor Detail

      • QuantityAmountDataBeanImpl

        public QuantityAmountDataBeanImpl()
                                   throws com.ibm.commerce.exception.ECSystemException
        QuantityAmountDataBeanImpl default constructor.
        Throws:
        com.ibm.commerce.exception.ECSystemException
      • QuantityAmountDataBeanImpl

        public QuantityAmountDataBeanImpl(QuantityAmount aQuantityAmount,
                                          com.ibm.commerce.common.objects.StoreAccessBean aStoreAccessBean,
                                          java.lang.Integer aLangId)
                                   throws com.ibm.commerce.exception.ECSystemException
        QuantityAmountDataBeanImpl constructor.
        Parameters:
        aQuantityAmount - a quantity amount.
        aStoreAccessBean - the store under which the formatting is to occur.
        aLangId - the language Id under which the formatting is to occur.
        Throws:
        com.ibm.commerce.exception.ECSystemException
    • Method Detail

      • getFormattedQuantity

        public FormattedQuantityAmount getFormattedQuantity()
                                                     throws com.ibm.commerce.exception.ECException
        Get the formatted quantity.
        Returns:
        a formatted quantity amount
        Throws:
        com.ibm.commerce.exception.ECException
      • getQuantity

        public QuantityAmount getQuantity()
                                   throws com.ibm.commerce.exception.ECSystemException
        Get the quantity (round customized).
        Returns:
        com.ibm.commerce.price.utils.QuantityAmount
        Throws:
        com.ibm.commerce.exception.ECSystemException
      • setQuantity

        public void setQuantity(QuantityAmount newQuantity)
        Set the quantity.
        Parameters:
        newQuantity - the quantity amount.