State typelist abbreviation methods
The following methods used by the State typelist are defined in
gw.entity.GWStateEnhancement.gsx.
State.getAbbreviation
- Parameters – none
- Return value –
typekey.StateAbbreviation - Comments – Returns the abbreviation
typekey for the state as defined in the
StateAbbreviationtypelist. This value can vary based on the current language setting. Returnsnullif no abbreviation is defined, such as for Japanese prefectures.
State.getState
- Parameters
–
country:Country, anAbbreviation:String - Return value –
typekey.State - Comments – Look up a
Stateby using the country typecode and the country-dependent, localized state abbreviation. For example, if the language is U.S. English:getState(TC_AU, "WA")returns Western Australia.getState(TC_US, "WA")returns Washington.
State.getStateAbbreviation
- Parameters
–
country:Country, anAbbreviation:String - Return value – typekey.
StateAbbreviation - Comments – Looks up a
StateAbbreviationby using the country and the country-dependent, localized state abbreviation. For example, if the language is U.S. English:getStateAbbreviation(TC_AU, "WA")returns theStateAbbreviationtypekey for Western Australia.getStateAbbreviation(TC_US, "WA")returns theStateAbbreviationtypekey for Washington.
