public static AddressObject getAddressObject(final AddressDO addressDO)
{
if (addressDO == null) {
return null;
}
final AddressObject address = new AddressObject();
DOConverter.copyFields(address, addressDO);
address.setAddressStatus(addressDO.getAddressStatus() != null ? addressDO.getAddressStatus().toString() : null);
address.setAddressText(addressDO.getAddressText());
address.setBirthday(addressDO.getBirthday());
address.setBusinessPhone(addressDO.getBusinessPhone());
address.setCity(addressDO.getCity());
address.setComment(addressDO.getComment());
address.setCommunicationLanguage(addressDO.getCommunicationLanguage());
address.setContactStatus(addressDO.getContactStatus() != null ? addressDO.getContactStatus().toString() : null);
address.setCountry(addressDO.getCountry());
address.setDivision(addressDO.getDivision());
address.setEmail(addressDO.getEmail());
address.setFax(addressDO.getFax());
address.setFingerprint(addressDO.getFingerprint());
address.setFirstName(addressDO.getFirstName());
address.setForm(addressDO.getForm() != null ? addressDO.getForm().toString() : null);
address.setMobilePhone(addressDO.getMobilePhone());
address.setName(addressDO.getName());
address.setOrganization(addressDO.getOrganization());
address.setPositionText(addressDO.getPositionText());
address.setPostalAddressText(addressDO.getPostalAddressText());
address.setPostalCity(addressDO.getPostalCity());
address.setPostalCountry(addressDO.getPostalCountry());
address.setPostalState(addressDO.getPostalState());
address.setPostalZipCode(addressDO.getPostalZipCode());
address.setPrivateAddressText(addressDO.getPrivateAddressText());
address.setPrivateCity(addressDO.getPrivateCity());
address.setPrivateCountry(addressDO.getPrivateCountry());
address.setPrivateEmail(addressDO.getPrivateEmail());
address.setPrivateMobilePhone(addressDO.getPrivateMobilePhone());
address.setPrivatePhone(addressDO.getPrivatePhone());
address.setPrivateState(addressDO.getPrivateState());
address.setPrivateZipCode(addressDO.getPrivateZipCode());
address.setPublicKey(addressDO.getPublicKey());
address.setState(addressDO.getState());
address.setTitle(addressDO.getTitle());
address.setWebsite(addressDO.getWebsite());
address.setZipCode(addressDO.getZipCode());
return address;
}