Address automatic completion and autofill plugin

The address automatic completion plugin uses interface IAddressAutocompletePlugin to declares methods that support automatic completion and fill-in for PolicyCenter. In the base configuration, Guidewire provides Java class DefaultAddressAutocompletePlugin as the implementation class for this plugin.

This class supports the use of the address-config.xml and zone-config.xml files. If you want to implement your own autofill and autocompletion configuration, such as one that does not use zone-config.xml, you can create a class that implements IAddressAutocompletePlugin and provide your own specialized logic.

Alternatively, you can extend DefaultAddressAutocompletePlugin and override the following methods, for example.
autofillAddress(address : AddressFillable, triggerFieldName : String, doOverride : boolean)
The purpose of this method is to autofill and address if there is a unique match with the entered data.
getStates(country : Country): States[]
This method retrieves the states for the given country.