Additional country and address configurations

Before you begin

If you add a new country, you must do configuration in addition to the configurations required for the country.xml file, described in Configuring the Country XML file.

Procedure

  1. You must add the country to a method of the AddressFormatter class.

    Add a new case option to the switch statement of the AddressFormatter.internalFormat method to handle the formatting of the address string for the new country.

  2. If you extend the Address entity to add a new column, you must also incorporate this column into the following class, enhancement, or configuration file:
    gw.address.AddressFormatter
    Add a new case option to the switch statement of the AddressFormatter.internalFormat method to handle the formatting of the address string for the new country.
    Address.en
    Modify the definition of the display name through the Entity Names editor. See Using the Entity Names editor for details.
    AddressOwnerFieldID.gs
    Add a variable for the new Address column to this class.
    See AddressOwnerFieldId class.
    gw.policylocation.PolicyLocationEnhancement
    Do the following:
    1. Modify the PolicyLocation.addressString method as needed and populate any added column before calling the AddressFormatter class.
    2. Add the get and set values for the new internal address columns.
    gw.policyaddress.PolicyAddressEnhancement
    Do the following:
    1. Modify the PolicyAddress.addressString method as needed and populate any added column before calling the AddressFormatter class.
    2. Add the get and set values for the new internal address columns.
    3. Add the new columns to the copyToNewAddress and copyFromAddress functions.

What to do next

See also