private void setAddress ( Address address , RolodexContract rolodex ) { if ( rolodex != null ) { address . setStreet1 ( rolodex . getAddressLine1 ( ) ) ; address . setStreet2 ( rolodex . getAddressLine2 ( ) ) ; address . setCity ( checkNull ( rolodex . getCity ( ) ) ) ; address . setCounty ( rolodex . getCounty ( ) ) ; address . setState ( rolodex . getState ( ) ) ; address . setZipCode ( rolodex . getPostalCode ( ) ) ; if ( rolodex . getCountryCode ( ) != null ) { CountryCodeType . Enum country = CountryCodeType . Enum . forString ( rolodex . getCountryCode ( ) ) ; address . setCountry ( country ) ; } } else { address . setStreet1 ( "" ) ; address . setCity ( "" ) ; } }
This method is to set the rolodex details to AddressType