State typelist abbreviation methods

The following methods used by the State typelist are defined in gw.entity.GWStateEnhancement.gsx.

State.getAbbreviation

  • Parameters – none
  • Return valuetypekey.StateAbbreviation
  • Comments – Returns the abbreviation typekey for the state as defined in the StateAbbreviation typelist. This value can vary based on the current language setting. Returns null if no abbreviation is defined, such as for Japanese prefectures.

State.getState

  • Parameterscountry:Country, anAbbreviation:String
  • Return valuetypekey.State
  • Comments – Look up a State by 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

  • Parameterscountry:Country, anAbbreviation:String
  • Return value – typekey.StateAbbreviation
  • Comments – Looks up a StateAbbreviation by using the country and the country-dependent, localized state abbreviation. For example, if the language is U.S. English:
    • getStateAbbreviation(TC_AU, "WA") returns the StateAbbreviation typekey for Western Australia.
    • getStateAbbreviation(TC_US, "WA") returns the StateAbbreviation typekey for Washington.