sourceType = this.getType(); String copyType = ((String) strategy.copy(LocatorUtils.property(locator, "type", sourceType), sourceType)); copy.setType(copyType); } else { copy.type = null;
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; }
String rhsType; rhsType = rightObject.getType(); target.setType(((String) strategy.merge(LocatorUtils.property(leftLocator, "type", lhsType), LocatorUtils.property(rightLocator, "type", rhsType), lhsType, rhsType)));