public PostalServiceElements unmarshalPostalServiceElements(AddressDetails.PostalServiceElements src) { PostalServiceElements dest = new PostalServiceElements(); if (src.isSetAddressIdentifier()) { for (AddressDetails.PostalServiceElements.AddressIdentifier addressIdentifier : src.getAddressIdentifier()) dest.addAddressIdentifier(unmarshalAddressIdentifier(addressIdentifier)); } if (src.isSetAddressLatitude()) dest.setAddressLatitude(unmarshalAddressLatitude(src.getAddressLatitude())); if (src.isSetAddressLatitudeDirection()) dest.setAddressLatitudeDirection(unmarshalAddressLatitudeDirection(src.getAddressLatitudeDirection())); if (src.isSetAddressLongitude()) dest.setAddressLongitude(unmarshalAddressLongitude(src.getAddressLongitude())); if (src.isSetAddressLongitudeDirection()) dest.setAddressLongitudeDirection(unmarshalAddressLongitudeDirection(src.getAddressLongitudeDirection())); if (src.isSetBarcode()) dest.setBarcode(unmarshalBarcode(src.getBarcode())); if (src.isSetEndorsementLineCode()) dest.setEndorsementLineCode(unmarshalEndorsementLineCode(src.getEndorsementLineCode())); if (src.isSetKeyLineCode()) dest.setKeyLineCode(unmarshalKeyLineCode(src.getKeyLineCode())); if (src.isSetSortingCode()) dest.setSortingCode(unmarshalSortingCode(src.getSortingCode())); if (src.isSetSupplementaryPostalServiceData()) { for (AddressDetails.PostalServiceElements.SupplementaryPostalServiceData supplementaryPostalServiceData : src.getSupplementaryPostalServiceData()) dest.addSupplementaryPostalServiceData(unmarshalSupplementaryPostalServiceData(supplementaryPostalServiceData)); } if (src.isSetType()) dest.setType(src.getType()); return dest; }