sourcePostBox = this.getPostBox(); PostBox copyPostBox = ((PostBox) strategy.copy(LocatorUtils.property(locator, "postBox", sourcePostBox), sourcePostBox)); copy.setPostBox(copyPostBox); } else { copy.postBox = null;
public LargeMailUserType marshalLargeMailUser(LargeMailUser src) { LargeMailUserType dest = xal.createLargeMailUserType(); if (src.isSetAddressLine()) { for (AddressLine addressLine : src.getAddressLine()) dest.getAddressLine().add(marshalAddressLine(addressLine)); } if (src.isSetBuildingName()) { for (BuildingName buildingName : src.getBuildingName()) dest.getBuildingName().add(marshalBuildingName(buildingName)); } if (src.isSetDepartment()) dest.setDepartment(marshalDepartment(src.getDepartment())); if (src.isSetLargeMailUserIdentifier()) dest.setLargeMailUserIdentifier(marshalLargeMailUserIdentifier(src.getLargeMailUserIdentifier())); if (src.isSetLargeMailUserName()) { for (LargeMailUserName largeMailUserName : src.getLargeMailUserName()) dest.getLargeMailUserName().add(marshalLargeMailUserName(largeMailUserName)); } if (src.isSetPostalCode()) dest.setPostalCode(marshalPostalCode(src.getPostalCode())); if (src.isSetPostBox()) dest.setPostBox(marshalPostBox(src.getPostBox())); if (src.isSetThoroughfare()) dest.setThoroughfare(marshalThoroughfare(src.getThoroughfare())); if (src.isSetType()) dest.setType(src.getType()); return dest; }
PostBox rhsPostBox; rhsPostBox = rightObject.getPostBox(); target.setPostBox(((PostBox) strategy.merge(LocatorUtils.property(leftLocator, "postBox", lhsPostBox), LocatorUtils.property(rightLocator, "postBox", rhsPostBox), lhsPostBox, rhsPostBox)));