public class BillingAddrValidatorImpl extends AddressValidatorImpl implements BillingAddrValidator
If the address is an instance of atg.core.util.ContactInfo, the following properties may also be checked:
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
ADDRESS1_MISSING, CITY_MISSING, COUNTRY_MISSING, COUNTY_MISSING, EMAIL_INVALID, EMAIL_MISSING, ERROR_MAP_KEY, FAX_NUMBER_INVALID, FAX_NUMBER_MISSING, FIRST_NAME_MISSING, LAST_NAME_MISSING, mCountriesWithStates, mValidateAddress1, mValidateCity, mValidateCountry, mValidateCounty, mValidateEmail, mValidateFaxNumber, mValidateFirstName, mValidateLastName, mValidatePhoneNumber, mValidatePostalCode, mValidateState, PHONE_NUMBER_INVALID, PHONE_NUMBER_MISSING, POSTAL_CODE_MISSING, RESOURCE_MAP_KEY, STATE_MISSINGSERVICE_INFO_KEYDEFAULT_LOG_TRACE_STATUSDEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS| Constructor and Description |
|---|
BillingAddrValidatorImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Map |
compileResourceAndErrorMaps()
This method compiles and returns a alternate resource and error key maps.
|
void |
validateBillingAddress(Address pAddr,
java.lang.String pId,
PipelineResult pResult,
java.util.Locale pLocale)
Verify that all required properties are present in a billing address.
|
void |
validateBillingAddress(Address pAddr,
java.lang.String pId,
PipelineResult pResult,
java.util.ResourceBundle pResources)
Verify that all required properties are present in a billing address.
|
addError, addHashedError, countryNeedsState, getCountriesWithStates, getValidateAddress1, getValidateCity, getValidateCountry, getValidateCounty, getValidateEmail, getValidateFaxNumber, getValidateFirstName, getValidateLastName, getValidatePhoneNumber, getValidatePostalCode, getValidateState, isEmpty, setCountriesWithStates, setValidateAddress1, setValidateCity, setValidateCountry, setValidateCounty, setValidateEmail, setValidateFaxNumber, setValidateFirstName, setValidateLastName, setValidatePhoneNumber, setValidatePostalCode, setValidateState, validateAddress, validateAddress, validateAddress, validateAddress, validateAddress, validateEmailAddress, validatePhoneNumberaddLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopServicevlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarningpublic void validateBillingAddress(Address pAddr, java.lang.String pId, PipelineResult pResult, java.util.Locale pLocale)
validateBillingAddress in interface BillingAddrValidatorpAddr - The billing address being examined.pId - The id of the object that owns the billing address, used in
constructing error messages. For example, when validating the
address in a credit card, the caller might provide the credit card
id here.pResult - A PipelineResult object in which to store error messages if any
required values are missing from the address.pLocale - The optional locale to use when looking up the resource bundle
that contains error messages. If null, the default server locale
will be used.validateBillingAddress(Address, String, PipelineResult, ResourceBundle)public void validateBillingAddress(Address pAddr, java.lang.String pId, PipelineResult pResult, java.util.ResourceBundle pResources)
validateBillingAddress in interface BillingAddrValidatorpAddr - The billing address being examined.pId - The id of the object that owns the billing address, used in
constructing error messages. For example, when validating the
address in a credit card, the caller might provide the credit card
id here.pResult - A PipelineResult object in which to store error messages if any
required values are missing from the address.pResources - A resource bundle which contains the error stringsAddressValidatorImpl.validateAddress(Address, String, PipelineResult, ResourceBundle, Map),
compileResourceAndErrorMaps()protected java.util.Map compileResourceAndErrorMaps()
For example, the base class defines FirstNameMissing as the resource key and error key and uses
same key to look up error message for missing first name and save the resourced error message in a map.
This class requires a different resource and error key for the same field error message such as BillFirstNameMissing
and MissingBillingingFirstName to look up and save the error message.
Similarly this method looks keys for all the fields and and creates two maps.
one of the map for resource key map and another for error key map.
You can lookup the resource map with resourceMapKey and error map with errorMapKey keys.
-- The resource key map can be accessed using this key. This key contains a map of base class key and alternate resource key.,
The error key map can be accessed using this key. This key contains a map of base class key key and alternate error key.