public Object copyTo(ObjectLocator locator, Object target, CopyStrategy strategy) { final Object draftCopy = ((target == null)?createNewInstance():target); if (draftCopy instanceof AddressDetails.PostalServiceElements) { final AddressDetails.PostalServiceElements copy = ((AddressDetails.PostalServiceElements) draftCopy); if ((this.addressIdentifier!= null)&&(!this.addressIdentifier.isEmpty())) { List<AddressDetails.PostalServiceElements.AddressIdentifier> sourceAddressIdentifier; sourceAddressIdentifier = this.getAddressIdentifier(); @SuppressWarnings("unchecked") List<AddressDetails.PostalServiceElements.AddressIdentifier> copyAddressIdentifier = ((List<AddressDetails.PostalServiceElements.AddressIdentifier> ) strategy.copy(LocatorUtils.property(locator, "addressIdentifier", sourceAddressIdentifier), sourceAddressIdentifier)); copy.addressIdentifier = null; List<AddressDetails.PostalServiceElements.AddressIdentifier> uniqueAddressIdentifierl = copy.getAddressIdentifier(); uniqueAddressIdentifierl.addAll(copyAddressIdentifier); } else { sourceEndorsementLineCode = this.getEndorsementLineCode(); AddressDetails.PostalServiceElements.EndorsementLineCode copyEndorsementLineCode = ((AddressDetails.PostalServiceElements.EndorsementLineCode) strategy.copy(LocatorUtils.property(locator, "endorsementLineCode", sourceEndorsementLineCode), sourceEndorsementLineCode)); copy.setEndorsementLineCode(copyEndorsementLineCode); } else { copy.endorsementLineCode = null; sourceKeyLineCode = this.getKeyLineCode(); AddressDetails.PostalServiceElements.KeyLineCode copyKeyLineCode = ((AddressDetails.PostalServiceElements.KeyLineCode) strategy.copy(LocatorUtils.property(locator, "keyLineCode", sourceKeyLineCode), sourceKeyLineCode)); copy.setKeyLineCode(copyKeyLineCode); } else { copy.keyLineCode = null; sourceBarcode = this.getBarcode(); AddressDetails.PostalServiceElements.Barcode copyBarcode = ((AddressDetails.PostalServiceElements.Barcode) strategy.copy(LocatorUtils.property(locator, "barcode", sourceBarcode), sourceBarcode)); copy.setBarcode(copyBarcode); } else {
lhsAddressIdentifier = this.getAddressIdentifier(); List<AddressDetails.PostalServiceElements.AddressIdentifier> rhsAddressIdentifier; rhsAddressIdentifier = that.getAddressIdentifier(); if (!strategy.equals(LocatorUtils.property(thisLocator, "addressIdentifier", lhsAddressIdentifier), LocatorUtils.property(thatLocator, "addressIdentifier", rhsAddressIdentifier), lhsAddressIdentifier, rhsAddressIdentifier)) { return false; lhsEndorsementLineCode = this.getEndorsementLineCode(); AddressDetails.PostalServiceElements.EndorsementLineCode rhsEndorsementLineCode; rhsEndorsementLineCode = that.getEndorsementLineCode(); if (!strategy.equals(LocatorUtils.property(thisLocator, "endorsementLineCode", lhsEndorsementLineCode), LocatorUtils.property(thatLocator, "endorsementLineCode", rhsEndorsementLineCode), lhsEndorsementLineCode, rhsEndorsementLineCode)) { return false; lhsKeyLineCode = this.getKeyLineCode(); AddressDetails.PostalServiceElements.KeyLineCode rhsKeyLineCode; rhsKeyLineCode = that.getKeyLineCode(); if (!strategy.equals(LocatorUtils.property(thisLocator, "keyLineCode", lhsKeyLineCode), LocatorUtils.property(thatLocator, "keyLineCode", rhsKeyLineCode), lhsKeyLineCode, rhsKeyLineCode)) { return false; lhsBarcode = this.getBarcode(); AddressDetails.PostalServiceElements.Barcode rhsBarcode; rhsBarcode = that.getBarcode(); if (!strategy.equals(LocatorUtils.property(thisLocator, "barcode", lhsBarcode), LocatorUtils.property(thatLocator, "barcode", rhsBarcode), lhsBarcode, rhsBarcode)) { return false; lhsSortingCode = this.getSortingCode(); AddressDetails.PostalServiceElements.SortingCode rhsSortingCode; rhsSortingCode = that.getSortingCode(); if (!strategy.equals(LocatorUtils.property(thisLocator, "sortingCode", lhsSortingCode), LocatorUtils.property(thatLocator, "sortingCode", rhsSortingCode), lhsSortingCode, rhsSortingCode)) { return false;
lhsAddressIdentifier = leftObject.getAddressIdentifier(); List<AddressDetails.PostalServiceElements.AddressIdentifier> rhsAddressIdentifier; rhsAddressIdentifier = rightObject.getAddressIdentifier(); target.addressIdentifier = null; List<AddressDetails.PostalServiceElements.AddressIdentifier> uniqueAddressIdentifierl = target.getAddressIdentifier(); uniqueAddressIdentifierl.addAll(((List<AddressDetails.PostalServiceElements.AddressIdentifier> ) strategy.merge(LocatorUtils.property(leftLocator, "addressIdentifier", lhsAddressIdentifier), LocatorUtils.property(rightLocator, "addressIdentifier", rhsAddressIdentifier), lhsAddressIdentifier, rhsAddressIdentifier))); lhsEndorsementLineCode = leftObject.getEndorsementLineCode(); AddressDetails.PostalServiceElements.EndorsementLineCode rhsEndorsementLineCode; rhsEndorsementLineCode = rightObject.getEndorsementLineCode(); target.setEndorsementLineCode(((AddressDetails.PostalServiceElements.EndorsementLineCode) strategy.merge(LocatorUtils.property(leftLocator, "endorsementLineCode", lhsEndorsementLineCode), LocatorUtils.property(rightLocator, "endorsementLineCode", rhsEndorsementLineCode), lhsEndorsementLineCode, rhsEndorsementLineCode))); lhsKeyLineCode = leftObject.getKeyLineCode(); AddressDetails.PostalServiceElements.KeyLineCode rhsKeyLineCode; rhsKeyLineCode = rightObject.getKeyLineCode(); target.setKeyLineCode(((AddressDetails.PostalServiceElements.KeyLineCode) strategy.merge(LocatorUtils.property(leftLocator, "keyLineCode", lhsKeyLineCode), LocatorUtils.property(rightLocator, "keyLineCode", rhsKeyLineCode), lhsKeyLineCode, rhsKeyLineCode))); lhsBarcode = leftObject.getBarcode(); AddressDetails.PostalServiceElements.Barcode rhsBarcode; rhsBarcode = rightObject.getBarcode(); target.setBarcode(((AddressDetails.PostalServiceElements.Barcode) strategy.merge(LocatorUtils.property(leftLocator, "barcode", lhsBarcode), LocatorUtils.property(rightLocator, "barcode", rhsBarcode), lhsBarcode, rhsBarcode))); lhsSortingCode = leftObject.getSortingCode(); AddressDetails.PostalServiceElements.SortingCode rhsSortingCode; rhsSortingCode = rightObject.getSortingCode(); target.setSortingCode(((AddressDetails.PostalServiceElements.SortingCode) strategy.merge(LocatorUtils.property(leftLocator, "sortingCode", lhsSortingCode), LocatorUtils.property(rightLocator, "sortingCode", rhsSortingCode), lhsSortingCode, rhsSortingCode))); lhsAddressLatitude = leftObject.getAddressLatitude(); AddressDetails.PostalServiceElements.AddressLatitude rhsAddressLatitude;
theAddressIdentifier = this.getAddressIdentifier(); strategy.appendField(locator, this, "addressIdentifier", buffer, theAddressIdentifier); theEndorsementLineCode = this.getEndorsementLineCode(); strategy.appendField(locator, this, "endorsementLineCode", buffer, theEndorsementLineCode); theKeyLineCode = this.getKeyLineCode(); strategy.appendField(locator, this, "keyLineCode", buffer, theKeyLineCode); theBarcode = this.getBarcode(); strategy.appendField(locator, this, "barcode", buffer, theBarcode); theSortingCode = this.getSortingCode(); strategy.appendField(locator, this, "sortingCode", buffer, theSortingCode); theAddressLatitude = this.getAddressLatitude(); strategy.appendField(locator, this, "addressLatitude", buffer, theAddressLatitude); theAddressLatitudeDirection = this.getAddressLatitudeDirection(); strategy.appendField(locator, this, "addressLatitudeDirection", buffer, theAddressLatitudeDirection); theAddressLongitude = this.getAddressLongitude(); strategy.appendField(locator, this, "addressLongitude", buffer, theAddressLongitude); theAddressLongitudeDirection = this.getAddressLongitudeDirection(); strategy.appendField(locator, this, "addressLongitudeDirection", buffer, theAddressLongitudeDirection); theSupplementaryPostalServiceData = this.getSupplementaryPostalServiceData(); strategy.appendField(locator, this, "supplementaryPostalServiceData", buffer, theSupplementaryPostalServiceData);
theAddressIdentifier = this.getAddressIdentifier(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "addressIdentifier", theAddressIdentifier), currentHashCode, theAddressIdentifier); theEndorsementLineCode = this.getEndorsementLineCode(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "endorsementLineCode", theEndorsementLineCode), currentHashCode, theEndorsementLineCode); theKeyLineCode = this.getKeyLineCode(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "keyLineCode", theKeyLineCode), currentHashCode, theKeyLineCode); theBarcode = this.getBarcode(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "barcode", theBarcode), currentHashCode, theBarcode); theSortingCode = this.getSortingCode(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "sortingCode", theSortingCode), currentHashCode, theSortingCode); theAddressLatitude = this.getAddressLatitude(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "addressLatitude", theAddressLatitude), currentHashCode, theAddressLatitude); theAddressLatitudeDirection = this.getAddressLatitudeDirection(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "addressLatitudeDirection", theAddressLatitudeDirection), currentHashCode, theAddressLatitudeDirection); theAddressLongitude = this.getAddressLongitude(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "addressLongitude", theAddressLongitude), currentHashCode, theAddressLongitude); theAddressLongitudeDirection = this.getAddressLongitudeDirection(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "addressLongitudeDirection", theAddressLongitudeDirection), currentHashCode, theAddressLongitudeDirection); theSupplementaryPostalServiceData = this.getSupplementaryPostalServiceData(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "supplementaryPostalServiceData", theSupplementaryPostalServiceData), currentHashCode, theSupplementaryPostalServiceData);
public AddressDetails.PostalServiceElements marshalPostalServiceElements(PostalServiceElements src) { AddressDetails.PostalServiceElements dest = xal.createAddressDetailsPostalServiceElements(); if (src.isSetAddressIdentifier()) { for (AddressIdentifier addressIdentifier : src.getAddressIdentifier()) dest.getAddressIdentifier().add(marshalAddressIdentifier(addressIdentifier)); } if (src.isSetAddressLatitude()) dest.setAddressLatitude(marshalAddressLatitude(src.getAddressLatitude())); if (src.isSetAddressLatitudeDirection()) dest.setAddressLatitudeDirection(marshalAddressLatitudeDirection(src.getAddressLatitudeDirection())); if (src.isSetAddressLongitude()) dest.setAddressLongitude(marshalAddressLongitude(src.getAddressLongitude())); if (src.isSetAddressLongitudeDirection()) dest.setAddressLongitudeDirection(marshalAddressLongitudeDirection(src.getAddressLongitudeDirection())); if (src.isSetBarcode()) dest.setBarcode(marshalBarcode(src.getBarcode())); if (src.isSetEndorsementLineCode()) dest.setEndorsementLineCode(marshalEndorsementLineCode(src.getEndorsementLineCode())); if (src.isSetKeyLineCode()) dest.setKeyLineCode(marshalKeyLineCode(src.getKeyLineCode())); if (src.isSetSortingCode()) dest.setSortingCode(marshalSortingCode(src.getSortingCode())); if (src.isSetSupplementaryPostalServiceData()) { for (SupplementaryPostalServiceData supplementaryPostalServiceData : src.getSupplementaryPostalServiceData()) dest.getSupplementaryPostalServiceData().add(marshalSupplementaryPostalServiceData(supplementaryPostalServiceData)); } if (src.isSetType()) dest.setType(src.getType()); return dest; }
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; }
public Object createNewInstance() { return new AddressDetails.PostalServiceElements(); }
public void setAddressIdentifier(List<AddressDetails.PostalServiceElements.AddressIdentifier> value) { List<AddressDetails.PostalServiceElements.AddressIdentifier> draftl = this.getAddressIdentifier(); draftl.addAll(value); }
/** * Create an instance of {@link AddressDetails.PostalServiceElements } * */ public AddressDetails.PostalServiceElements createAddressDetailsPostalServiceElements() { return new AddressDetails.PostalServiceElements(); }
/** * Create an instance of {@link AddressDetails.PostalServiceElements } * */ public AddressDetails.PostalServiceElements createAddressDetailsPostalServiceElements() { return new AddressDetails.PostalServiceElements(); }