public class TIKHelper
extends java.lang.Object
TIKHelper
Class provides utility methods for
setting up the required information for tax calculation.Modifier and Type | Field and Description |
---|---|
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 zero field of integer
|
static java.lang.Long |
LONG_ZERO
The long zero field
|
static java.lang.Object |
NULL
The null field
|
static int |
SALES_TAX
The Sales Tax field 0
|
static int |
SHIPPING_AND_SALES_TAX
The Old style tax - Shipping and Sales Tax field 2
|
static int |
SHIPPING_TAX
The Shipping Tax field 1
|
Constructor and Description |
---|
TIKHelper()
PriceCalculationHelper constructor comment.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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
public static final int SALES_TAX
public static final int SHIPPING_TAX
public static final int SHIPPING_AND_SALES_TAX
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 JNDIname occured Raised with message _ERR_ADM_CREATEEXCEPTION whenever a failure to create the EJB occured
public 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 JNDIname occured Raised with message _ERR_ADM_CREATEEXCEPTION whenever a failure to create the EJB occured
public 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 JNDIname occured Raised with message _ERR_ADM_CREATEEXCEPTION whenever a failure to create the EJB occured
public 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 JNDIname occured Raised with message _ERR_ADM_CREATEEXCEPTION whenever a failure to create the EJB occured
public 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 JNDIname occured Raised with message _ERR_ADM_CREATEEXCEPTION whenever a failure to create the EJB occured
public 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 JNDIname occured Raised with message _ERR_ADM_CREATEEXCEPTION whenever a failure to create the EJB occured