public class ShowCountry extends TelesalesResponseBuilderImpl
This class can be extended by any sub-class to override or extend the base features.
Modifier and Type | Field and Description |
---|---|
static java.lang.String | CLASSNAME
Class Name.
|
static java.lang.String | COPYRIGHT
IBM Copyright notice field
|
Constructor and Description |
---|
ShowCountry() |
Modifier and Type | Method and Description |
---|---|
protected void | buildDataArea()
Builds the Data Area subsection of the reply BOD.
|
protected org.w3c.dom.Element | createCountryElement(org.w3c.dom.Element aParentElement, CountryStateListDataBean.Country aCountry)
Builds the Country element.
|
protected org.w3c.dom.Element | createStateOrProvinceElement(org.w3c.dom.Element aParentElement, CountryStateListDataBean.StateProvince aStateOrProvince)
Builds the StateOrProvince element.
|
protected org.w3c.dom.Element | createStatesOrProvincesElement(org.w3c.dom.Element aParentElement, CountryStateListDataBean.Country aCountry)
Builds the StatesOrProvinces element.
|
protected org.w3c.dom.Element | createUserdataInCountryElement(CountryStateListDataBean.Country aCountry, org.w3c.dom.Element countryElement)
This is an empty method to create the UserData element for Country.
|
protected org.w3c.dom.Element | createUserdataInStateOrProvinceElement(CountryStateListDataBean.StateProvince aStateOrProvince, org.w3c.dom.Element stateOrProvinceElement)
This is an empty method to create the UserData element for StateOrProvince.
|
protected java.util.ArrayList | executeGetCountries(SearchCriteria aSearchCriteria)
Gets the list of countries that meet the given search criteria.
|
ITelesalesResponseCacheableCommand | getCacheableCommand()
Returns an initialized cacheable command.
|
protected java.lang.String | getMaxResultSetSize()
This method returns the maximum result set size which is used by the buildDataArea method to populate the resultSetSize attribute in the response.
|
protected java.lang.String | getRootElementName()
Gets the root element name of the response document.
|
protected void | setMaxResultSetSize(java.lang.String maxResultSetSize)
This method sets the maximum result set size which is used by the buildDataArea method to populate the resultSetSize attribute in the response.
|
public static final java.lang.String CLASSNAME
public static final java.lang.String COPYRIGHT
protected void buildDataArea() throws ECException
The following sample indicates the structure of the DataArea element and how it is constructed.
<wc:DataArea> <oa:Show confirm="Always"/> <wc:Country> <-- createCountryElement() --> . . </wc:Country> <wc:Country> <-- createCountryElement() --> . . </wc:Country> </wc:DataArea>
protected org.w3c.dom.Element createCountryElement(org.w3c.dom.Element aParentElement, CountryStateListDataBean.Country aCountry) throws ECException
This method calls the following methods to create the child elements of Country element:
This method also creates the following child elements:
protected org.w3c.dom.Element createUserdataInCountryElement(CountryStateListDataBean.Country aCountry, org.w3c.dom.Element countryElement) throws ECException
... Element userDataElement = createWCDocumentElement(countryElement, BodConstants.TAG_WC_USER_DATA); createUserDataFieldElement(userDataElement, fieldName, fieldValue); ... return userDataElement;
protected org.w3c.dom.Element createStatesOrProvincesElement(org.w3c.dom.Element aParentElement, CountryStateListDataBean.Country aCountry) throws ECException
This method calls the following methods to create the child elements of StatesOrProvinces element:
protected org.w3c.dom.Element createStateOrProvinceElement(org.w3c.dom.Element aParentElement, CountryStateListDataBean.StateProvince aStateOrProvince) throws ECException
This method also creates the following child elements:
protected org.w3c.dom.Element createUserdataInStateOrProvinceElement(CountryStateListDataBean.StateProvince aStateOrProvince, org.w3c.dom.Element stateOrProvinceElement) throws ECException
... Element userDataElement = createWCDocumentElement(stateOrProvinceElement, BodConstants.TAG_WC_USER_DATA); createUserDataFieldElement(userDataElement, fieldName, fieldValue); ... return userDataElement;
protected java.util.ArrayList executeGetCountries(SearchCriteria aSearchCriteria) throws ECException
protected java.lang.String getRootElementName()
public ITelesalesResponseCacheableCommand getCacheableCommand() throws ECException
protected java.lang.String getMaxResultSetSize()
protected void setMaxResultSetSize(java.lang.String maxResultSetSize)