com.ibm.commerce.isv.kit.tax
Class TIKHelper

java.lang.Object
  |
  +--com.ibm.commerce.isv.kit.tax.TIKHelper

public class TIKHelper
extends java.lang.Object

This TIKHelper Class provides utility methods for setting up the required information for tax calculation.


Field Summary
static java.math.BigDecimal BIG_DECIMAL_ZERO
           
static java.lang.Double DOUBLE_ZERO
           
static java.lang.Integer INTEGER_ZERO
           
static java.lang.Long LONG_ZERO
           
static java.lang.Object NULL
           
 
Constructor Summary
TIKHelper()
          PriceCalculationHelper constructor comment.
 
Method Summary
static TIKHelper getInstance()
           
 java.util.Hashtable resolveCountryCode(java.lang.String aCountry, java.util.Enumeration aCountryEnum)
          Resolve the country code.
 java.util.Hashtable resolveStateCode(java.lang.String aState, java.util.Enumeration aStateEnum)
          Resolve the state code.
 java.util.Enumeration retrieveCountryInfo(CommandContext aCommandContext)
          Resolve the country code information.
 java.util.Enumeration retrieveStateInfo(CommandContext aCommandContext, java.lang.String aCountry)
          Resolve the state code.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BIG_DECIMAL_ZERO

public static final java.math.BigDecimal BIG_DECIMAL_ZERO

DOUBLE_ZERO

public static final java.lang.Double DOUBLE_ZERO

INTEGER_ZERO

public static final java.lang.Integer INTEGER_ZERO

LONG_ZERO

public static final java.lang.Long LONG_ZERO

NULL

public static final java.lang.Object NULL
Constructor Detail

TIKHelper

public TIKHelper()
PriceCalculationHelper constructor comment.
Method Detail

getInstance

public static TIKHelper getInstance()

resolveCountryCode

public java.util.Hashtable resolveCountryCode(java.lang.String aCountry,
                                              java.util.Enumeration aCountryEnum)
                                       throws ECException
Resolve the country code.

Parameters:
aCountry - the country name or abbreviation.
aCountryEnum - the enumeration of a list of country information.

Returns:
the country code and country name.

resolveStateCode

public java.util.Hashtable resolveStateCode(java.lang.String aState,
                                            java.util.Enumeration aStateEnum)
                                     throws ECException
Resolve the state code.

Parameters:
aState - the state name of abbreviation.
aStateEnum - the enumeration of a list of state information.

Returns:
the state code and state name.

retrieveCountryInfo

public java.util.Enumeration retrieveCountryInfo(CommandContext aCommandContext)
                                          throws ECException
Resolve the country code information.

Parameters:
aCommandContext - the command context for the language id.

Returns:
The enumeration of a list of country code and country name.

retrieveStateInfo

public java.util.Enumeration retrieveStateInfo(CommandContext aCommandContext,
                                               java.lang.String aCountry)
                                        throws ECException
Resolve the state code.

Parameters:
aCommandContext - the command context for the language id.
aCountry - the country name which the state is part of.

Returns:
The enumeration of a list of state code and state name.