Class Taxes

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.String,​Tax>

    public class Taxes
    extends java.util.Hashtable<java.lang.String,​Tax>
    Taxes - a collection of Tax objects, implemented as a Hashtable object. Sample usage:
    Taxes oTaxes = taxcontrol1.Taxes;
    Tax oTax = Taxes.getItem("FIT"); // federal income tax

    Taxes may also be enumerated:
    for (int i=0; i<taxcontrol1.Taxes.getSize(); i++){
        oTax = taxcontrol1.Taxes.getItem(i);
    }
    Author:
    Caliber Technology LLC.
    See Also:
    Tax, Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      Taxes()
      Default constructor.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Tax addTax​(Tax oT)
      called from scheme when evaluating a custom tax file.
      void dump()  
      Tax get​(java.lang.String key, java.util.Date paydate)
      Returns the named Tax object.
      static Taxes getCurrent()  
      java.lang.String getTaxNamesForZip​(int workZip, int homeZip)  
      java.lang.String getVersion()
      Returns the tax table version.
      Tax put​(java.lang.String key, Tax t)
      Inserts the Tax object into the Taxes collection.
      void setCompiled​(boolean b)  
      • 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, 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

      • Taxes

        public Taxes()
        Default constructor.
    • Method Detail

      • getVersion

        public java.lang.String getVersion()
        Returns the tax table version. This property is the same as the TaxControl Version property. The version number is obtained directly from the tax table indicated by the TaxControl DataFilename property.
        Returns:
        String Version number of tax table.
        See Also:
        TaxControl.getVersion(), TaxControl.getDataFilename()
      • get

        public Tax get​(java.lang.String key,
                       java.util.Date paydate)
        Returns the named Tax object.
        Parameters:
        key - String tax name
        paydate - a Date object, usually null.
        Returns:
        Tax object or null if not found.
      • put

        public Tax put​(java.lang.String key,
                       Tax t)
        Inserts the Tax object into the Taxes collection.
        Specified by:
        put in interface java.util.Map<java.lang.String,​Tax>
        Overrides:
        put in class java.util.Hashtable<java.lang.String,​Tax>
        Parameters:
        key - String tax name
        t - Tax object.
      • getCurrent

        public static Taxes getCurrent()
      • setCompiled

        public void setCompiled​(boolean b)
      • addTax

        public Tax addTax​(Tax oT)
        called from scheme when evaluating a custom tax file. For internal use only.
      • dump

        public void dump()