Configuring address formats by country

The country.xml files in the country folders define settings that control the appearance of address information for each country in PolicyCenter. To access the country.xml file for a specific country, navigate to the following location in the Project window in Guidewire Studio for PolicyCenter:
  • configuration > config > geodata > countryCode
For example, the country.xml file for the address-related information in Australia is in the following location in Studio:
  • configuration > config > geodata > AU

In the base configuration, Guidewire provides country.xml definition files for the following countries:

  • AU – Australia
  • CA – Canada
  • DE – Germany
  • FR – France
  • GB – Great Britain
  • JP – Japan
  • US – United States

Setting <Country> attributes

You can set the following attributes on the <Country> element.

Attribute

Description

PCFMode

PCF mode for GlobalAddressInputSet.pcf. In the base configuration, Guidewire provides three modes for showing address information. The base configuration modes are:

  • BigToSmall – Used to format addresses for Japan
  • PostCodeBeforeCity – Used to format addresses for France and Germany
  • default – Used to format all other addresses

The default value is default.

You can add new PCF modes and use them in the file country.xml.

postalCodeDisplayKey

Name of the display key to use for the postal code label in PolicyCenter. For example:

  • In the United States (US)Web.AddressBook.AddressInputSet.ZIP
  • In Japan (JP)Web.AddressBook.AddressInputSet.Postcode

The default value is Web.AddressBook.AddressInputSet.PostalCode.

cityDisplayKey

Name of the display key to use for the city label for a country. For example:

  • In Great Britain (GB) – Web.AddressBook.AddressInputSet.TownCity

The default value is Web.AddressBook.AddressInputSet.City.

stateDisplayKey

Name of the display key to use for the label designating the major administrative subdivisions in a country. For example:

  • In the United States (US)Web.AddressBook.AddressInputSet.State
  • In Canada (CA)Web.AddressBook.AddressInputSet.Province
  • In Japan (JP)Web.AddressBook.AddressInputSet.Prefecture

The default value is Web.AddressBook.AddressInputSet.State.

visibleFields

Comma-separated list of address-related fields that you want to be visible in PolicyCenter for this country. For example, for AU, the values are:

  • Country
  • AddressLine1
  • AddressLine2
  • AddressLine3
  • City
  • State
  • PostalCode

Any address field that you designate as visible in this file must correspond to the constants defined in AddressOwnerFieldId.gs.

Display key values

For attributes that take display key values, PolicyCenter uses display properties files defined in Resource Bundle 'display' in the Localizations folder. For example:
  • PolicyCenter uses display.properties for U.S. English
  • PolicyCenter uses the appropriate display_languageCode.properties file, such as display_ja_JP.properties for Japan.
If there is no existing display_languageCode.properties file for a region, PolicyCenter uses the default display.properties file.

See also