Package com.boondocks.taxcontrols
Class Taxes
- java.lang.Object
-
- java.util.Dictionary<K,V>
-
- java.util.Hashtable<java.lang.String,Tax>
-
- com.boondocks.taxcontrols.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;
Taxes may also be enumerated:
Tax oTax = Taxes.getItem("FIT"); // federal income tax
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
-
-
-
-
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()
-
getTaxNamesForZip
public java.lang.String getTaxNamesForZip(int workZip, int homeZip)
- See Also:
TaxControl.getTaxesForZip(int, int)
-
get
public Tax get(java.lang.String key, java.util.Date paydate)
Returns the named Tax object.- Parameters:
key
- String tax namepaydate
- a Date object, usually null.- Returns:
- Tax object or null if not found.
-
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()
-
-