public class Country extends Session
Modifier and Type | Field and Description |
---|---|
static java.lang.String | PROP_COUNTRY_CODE
Constant for the country code property name.
|
static java.lang.String | PROP_COUNTRY_NAME
Constant for the country name property name.
|
static java.lang.String | PROP_STATES_OR_PROVINCES
Constant for the state/province property name.
|
Constructor and Description |
---|
Country()
Default constructor for Country.
|
Country(java.lang.String countryCode, java.lang.String countryName)
Constructor for Country.
|
Modifier and Type | Method and Description |
---|---|
void | addStateOrProvince(StateOrProvince stateOrProvince)
This method is a convenience method for updating the "statesOrProvinces" property.
|
StateOrProvince | findStateOrProvinceByCode(java.lang.String code)
Finds the state or province by its code.
|
java.lang.String | getCountryCode()
This method is a convenience method for retrieving the current setting of the "countryCode" property.
|
java.lang.String | getCountryName()
This method is a convenience method for retrieving the current setting of the "countryName" property.
|
StateOrProvince[] | getStatesOrProvinces()
This method is a convenience method for retrieving the current setting of the "stateOrProvince" property.
|
ModelObjectList | getStatesOrProvincesModelObjectList()
This method is a convenience method for retrieving the current setting of the "stateOrProvince" property.
|
void | setCountryCode(java.lang.String code)
This method is a convenience method for setting the "countryCode" property.
|
void | setCountryName(java.lang.String name)
This method is a convenience method for setting the "countryName" property.
|
public static final java.lang.String PROP_COUNTRY_CODE
The value is "countryCode".
The data stored under the "countryCode" property is a String that contains the country code.
public static final java.lang.String PROP_COUNTRY_NAME
The value is "countryName".
The data stored under the "countryName" property is a String that contains the country name.
public static final java.lang.String PROP_STATES_OR_PROVINCES
The value is "statesOrProvinces".
The data stored under the "statesOrProvinces" property is a String that contains the state/province.
public Country()
public Country(java.lang.String countryCode, java.lang.String countryName)
public void addStateOrProvince(StateOrProvince stateOrProvince)
public java.lang.String getCountryCode()
public java.lang.String getCountryName()
public StateOrProvince[] getStatesOrProvinces()
public ModelObjectList getStatesOrProvincesModelObjectList()
public StateOrProvince findStateOrProvinceByCode(java.lang.String code)
public void setCountryCode(java.lang.String code)
public void setCountryName(java.lang.String name)