AddressOwnerFieldId class
Guidewire provides a gw.api.address.AddressOwnerFieldId class that provides type safety for Address entity fields. If you extend the Address entity with a new column, you must add the new column to this class as a new constant.
In the base configuration, AddressOwnerFieldId provides the following constants that represent address fields:
ADDRESSLINE1
ADDRESSLINE2
ADDRESSLINE1KANJI
ADDRESSLINE2KANJI
ADDRESSLINE3
ADDRESSTYPE
CEDEX
CEDEXBUREAU
CITY
CITYKANJI
COUNTRY
COUNTY
DESCRIPTION
POSTALCODE
STATE
VALIDUNTIL
The class AddressOwnerFieldId also defines a set of constants that use these address field ID constants. Some examples:
public final static var ALL_PCF_FIELDS : Set<AddressOwnerFieldId> =
{ ADDRESSLINE1, ADDRESSLINE2, ADDRESSLINE3, CITY, COUNTY, STATE,
POSTALCODE, COUNTRY, ADDRESSLINE1KANJI, ADDRESSLINE2KANJI,
CITYKANJI, CEDEX, CEDEXBUREAU }.freeze()
public final static var CITY_STATE_ZIP : Set<AddressOwnerFieldId> =
{ CITY, STATE, POSTALCODE, CEDEX, CEDEXBUREAU }.freeze()
public final static var HIDDEN_FOR_SEARCH : Set<AddressOwnerFieldId> =
{ ADDRESSLINE1, ADDRESSLINE2, ADDRESSLINE3, COUNTY, ADDRESSLINE1KANJI,
ADDRESSLINE2KANJI, CEDEX, CEDEXBUREAU }.freeze()
