com.ibm.commerce.taxation.commands

Class CategorizedTaxAmount

  • java.lang.Object
    • java.util.Dictionary<K,V>
      • java.util.Hashtable
        • com.ibm.commerce.taxation.commands.CategorizedTaxAmount
  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.util.Map


    public class CategorizedTaxAmount
    extends java.util.Hashtable
    This structure is a hashtable to store the tax amounts for each of the tax categories
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.String getCurrency()
      Returns the currency of the tax amount.
      java.math.BigDecimal getValue()
      Returns the tax amount.
      java.math.BigDecimal getValue(java.lang.Integer anCategory)
      Returns the tax amount for a particular tax category.
      java.math.BigDecimal getValue(java.lang.String astrCategory)
      Returns the tax amount for a particular tax category.
      void setCurrency(java.lang.String astrCurrency)
      Sets the currency of the tax amount.
      • Methods inherited from class java.util.Hashtable

        clear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keys, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, toString, values
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • CategorizedTaxAmount

        public CategorizedTaxAmount(StoreAccessBean aabStore,
                                    java.lang.String astrCurrency)
      • CategorizedTaxAmount

        public CategorizedTaxAmount(java.math.BigDecimal adValue,
                                    StoreAccessBean aabStore,
                                    java.lang.String astrCurrency)
      • CategorizedTaxAmount

        public CategorizedTaxAmount(java.math.BigDecimal adValue,
                                    StoreAccessBean aabStore,
                                    java.lang.String astrCurrency,
                                    java.lang.String astrCategory)
    • Method Detail

      • getCurrency

        public java.lang.String getCurrency()
        Returns the currency of the tax amount.

        Returns:
        the currency of the tax amount.
      • getValue

        public java.math.BigDecimal getValue()
        Returns the tax amount.

        Returns:
        The tax amount.
      • getValue

        public java.math.BigDecimal getValue(java.lang.Integer anCategory)
        Returns the tax amount for a particular tax category.

        Parameters:
        anCategory - the tax category.

        Returns:
        The tax amount for a particular tax category.
      • getValue

        public java.math.BigDecimal getValue(java.lang.String astrCategory)
        Returns the tax amount for a particular tax category.

        Parameters:
        astrCategory - the tax category.

        Returns:
        The tax amount for a particular tax category.
      • setCurrency

        public void setCurrency(java.lang.String astrCurrency)
                         throws ECException
        Sets the currency of the tax amount.
        Parameters:
        astrCurrency - The currency of the tax amount.
        Throws:
        ECException