java.lang.Object | +--com.ibm.commerce.isv.kit.tax.TIKHelper
This TIKHelper
Class provides utility methods for setting up
the required information for tax calculation.
Field Summary | |
---|---|
static java.math.BigDecimal |
BIG_DECIMAL_ZERO The big decimal zero field |
static java.lang.Double |
DOUBLE_ZERO The double zero field |
static java.lang.Integer |
INTEGER_ZERO The integer zero field |
static java.lang.Long |
LONG_ZERO The long zero field |
static java.lang.Object |
NULL The null field |
Constructor Summary | |
---|---|
TIKHelper() PriceCalculationHelper constructor comment. |
Method Summary | |
---|---|
static
TIKHelper |
getInstance() Get the instance of the helper class. |
java.util.Hashtable |
resolveCountryCode(java.lang.String aCountry,
java.util.Enumeration aCountryEnum) Resolves the country code. |
java.util.Hashtable |
resolveStateCode(java.lang.String aState,
java.util.Enumeration aStateEnum) Resolves the state code. |
java.util.Enumeration |
retrieveCountryEntry(
CommandContext aCommandContext, java.lang.String aCountry) Retrieves the country entry based on the input. |
java.util.Enumeration |
retrieveCountryInfo(
CommandContext aCommandContext) Resolves the country code information. |
java.util.Enumeration |
retrieveStateEntry(
CommandContext aCommandContext, java.lang.String aState) Retrieves the state entry based on the input. |
java.util.Enumeration |
retrieveStateInfo(
CommandContext aCommandContext, java.lang.String aCountry) Resolves the state code information. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll,
toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.Object NULL
public static final java.math.BigDecimal BIG_DECIMAL_ZERO
public static final java.lang.Double DOUBLE_ZERO
public static final java.lang.Integer INTEGER_ZERO
public static final java.lang.Long LONG_ZERO
Constructor Detail |
---|
public TIKHelper()
Method Detail |
---|
public static TIKHelper getInstance()
public java.util.Hashtable resolveCountryCode(java.lang.String aCountry, java.util.Enumeration aCountryEnum) throws ECException
aCountry
- the country name or abbreviation.aCountryEnum
- the enumeration of a list of country
information.
ECException
- Raised with message _ERR_ADM_REMOTEEXCEPTION whenever a communication related
problems occured Raised with message _ERR_ADM_FINDEREXCEPTION whenever a
request object is not found Raised with message _ERR_ADM_NAMINGEXCEPTION
whenever a failure to look up the JNDI name occured Raised with message
_ERR_ADM_CREATEEXCEPTION whenever a failure to create the EJB
occuredpublic java.util.Hashtable resolveStateCode(java.lang.String aState, java.util.Enumeration aStateEnum) throws ECException
aState
- the state name of abbreviation.aStateEnum
- the enumeration of a list of state information.
ECException
- Raised with message _ERR_ADM_REMOTEEXCEPTION whenever a communication related
problems occured Raised with message _ERR_ADM_FINDEREXCEPTION whenever a
request object is not found Raised with message _ERR_ADM_NAMINGEXCEPTION
whenever a failure to look up the JNDI name occured Raised with message
_ERR_ADM_CREATEEXCEPTION whenever a failure to create the EJB
occuredpublic java.util.Enumeration retrieveCountryInfo(CommandContext aCommandContext) throws ECException
aCommandContext
- the command context for the language id.
ECException
- Raised with message _ERR_ADM_REMOTEEXCEPTION whenever a communication related
problems occured Raised with message _ERR_ADM_FINDEREXCEPTION whenever a
request object is not found Raised with message _ERR_ADM_NAMINGEXCEPTION
whenever a failure to look up the JNDI name occured Raised with message
_ERR_ADM_CREATEEXCEPTION whenever a failure to create the EJB
occuredpublic java.util.Enumeration retrieveStateInfo(CommandContext aCommandContext, java.lang.String aCountry) throws ECException
aCommandContext
- the command context for the language
id.aCountry
- the country name which the state is part of.
ECException
- Raised with message _ERR_ADM_REMOTEEXCEPTION whenever a communication related
problems occured Raised with message _ERR_ADM_FINDEREXCEPTION whenever a
request object is not found Raised with message _ERR_ADM_NAMINGEXCEPTION
whenever a failure to look up the JNDI name occured Raised with message
_ERR_ADM_CREATEEXCEPTION whenever a failure to create the EJB
occuredpublic java.util.Enumeration retrieveCountryEntry(CommandContext aCommandContext, java.lang.String aCountry) throws ECException
aCommandContext
- the command context for the language
id.aCountry
- the code or the name of the country.
ECException
- Raised with message _ERR_ADM_REMOTEEXCEPTION whenever a communication related
problems occured Raised with message _ERR_ADM_FINDEREXCEPTION whenever a
request object is not found Raised with message _ERR_ADM_NAMINGEXCEPTION
whenever a failure to look up the JNDI name occured Raised with message
_ERR_ADM_CREATEEXCEPTION whenever a failure to create the EJB
occuredpublic java.util.Enumeration retrieveStateEntry(CommandContext aCommandContext, java.lang.String aState) throws ECException
aCommandContext
- the command context for the language
id.aState
- the code or the name of the state.
ECException
- Raised with message _ERR_ADM_REMOTEEXCEPTION whenever a communication related
problems occured Raised with message _ERR_ADM_FINDEREXCEPTION whenever a
request object is not found Raised with message _ERR_ADM_NAMINGEXCEPTION
whenever a failure to look up the JNDI name occured Raised with message
_ERR_ADM_CREATEEXCEPTION whenever a failure to create the EJB
occured