@AccessLevel(value=EXTERNAL)
@Implementable
public interface BlankAddressData
Example: If a functionality needs the localized address string for en, then the implementation of this interface is for en and can be called as "EnBlankAddressData". This has to be created and bound using "en" code in "Locale".
Example of binding in module class:
// Declare the map binder.
// Binds the product name class to localized name type.
mapbinder.addBinding(LOCALEEntry.ENGLISH).toInstance(new EnBlankAddressDataImpl());
Example usage:
{ @code BlankAddressData blankAddressData = blankAddressDataMap.get(LOCALEEntry.ENGLISH); String addressData = blankAddressData.getAddressDataForLocale(); }Note: This interface is used as part of the anonymous client registration process. If the default blank address format needs to be changed for this process, the following environment variable should be updated
EnvVars#ENV_INTAKEPROSPECTPERSONREGISTRATIONDEFAULTADDRESSDATALOCALE
.
The value of this environment variable should have an implementation of this
interface bound to it.Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAddressDataForLocale()
Gets a blank address data string which contains the correct
address layout for the specified locale.
|
java.lang.String getAddressDataForLocale() throws curam.util.exception.AppException, curam.util.exception.InformationalException
curam.util.exception.AppException
curam.util.exception.InformationalException