com.softslate.commerce.businessobjects.order
Class StatesAndCountriesBean
java.lang.Object
com.softslate.commerce.businessobjects.core.BaseBusinessObject
com.softslate.commerce.businessobjects.order.StatesAndCountriesBean
- All Implemented Interfaces:
- BusinessObject, StatesAndCountries, java.io.Serializable
public class StatesAndCountriesBean
- extends BaseBusinessObject
- implements StatesAndCountries, java.io.Serializable
Object holding representations of the states and countries active in the
store.
StatesAndCountriesBean is the default implementation of the
StatesAndCountries interface for the application.
- Author:
- David Tobey
- See Also:
StatesAndCountries,
Serialized Form
|
Method Summary |
java.util.Collection |
getCountries()
Retrieves a Collection of Country objects
representing the active states in the system. |
java.util.Map |
getCountryMap()
Retrieves a Map, each of whose keys is a country code, and
whose values is the corresponding Country object. |
java.util.Map |
getStateMap()
Retrieves a Map, each of whose keys is a state code, and
whose values is the corresponding State object. |
java.util.Collection |
getStates()
Retrieves a Collection of State objects
representing the active states in the system. |
void |
setCountries(java.util.Collection countries)
|
void |
setCountryMap(java.util.Map countryMap)
|
void |
setStateMap(java.util.Map stateMap)
|
void |
setStates(java.util.Collection states)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
log
static org.apache.commons.logging.Log log
countries
private java.util.Collection countries
states
private java.util.Collection states
countryMap
private java.util.Map countryMap
stateMap
private java.util.Map stateMap
StatesAndCountriesBean
public StatesAndCountriesBean()
getCountries
public java.util.Collection getCountries()
- Description copied from interface:
StatesAndCountries
- Retrieves a
Collection of Country objects
representing the active states in the system.
- Specified by:
getCountries in interface StatesAndCountries
- Returns:
- A
Collection of Country objects
representing the active states in the system.
setCountries
public void setCountries(java.util.Collection countries)
- Specified by:
setCountries in interface StatesAndCountries
getStates
public java.util.Collection getStates()
- Description copied from interface:
StatesAndCountries
- Retrieves a
Collection of State objects
representing the active states in the system.
- Specified by:
getStates in interface StatesAndCountries
- Returns:
- A
Collection of State objects
representing the active states in the system.
setStates
public void setStates(java.util.Collection states)
- Specified by:
setStates in interface StatesAndCountries
getCountryMap
public java.util.Map getCountryMap()
- Description copied from interface:
StatesAndCountries
- Retrieves a
Map, each of whose keys is a country code, and
whose values is the corresponding Country object.
- Specified by:
getCountryMap in interface StatesAndCountries
- Returns:
- A
Map, each of whose keys is a country code, and
whose values is the corresponding Country object.
setCountryMap
public void setCountryMap(java.util.Map countryMap)
- Specified by:
setCountryMap in interface StatesAndCountries
getStateMap
public java.util.Map getStateMap()
- Description copied from interface:
StatesAndCountries
- Retrieves a
Map, each of whose keys is a state code, and
whose values is the corresponding State object.
- Specified by:
getStateMap in interface StatesAndCountries
- Returns:
- A
Map, each of whose keys is a state code, and
whose values is the corresponding State object.
setStateMap
public void setStateMap(java.util.Map stateMap)
- Specified by:
setStateMap in interface StatesAndCountries
Copyright © SoftSlate, LLC 20032010