@Override public Object copyTo(Object target, CopyBuilder copyBuilder) { Address copy = (target == null) ? new Address() : (Address) target; super.copyTo(copy, copyBuilder); if (isSetXalAddress()) { copy.setXalAddress((XalAddressProperty) copyBuilder.copy(xalAddress)); if (copy.getXalAddress() == xalAddress) xalAddress.setParent(this); } if (isSetMultiPoint()) { copy.setMultiPoint((MultiPointProperty) copyBuilder.copy(multiPoint)); if (copy.getMultiPoint() == multiPoint) multiPoint.setParent(this); } if (isSetGenericApplicationPropertyOfAddress()) { for (ADEComponent part : ade) { ADEComponent copyPart = (ADEComponent) copyBuilder.copy(part); copy.addGenericApplicationPropertyOfAddress(copyPart); if (part != null && copyPart == part) part.setParent(this); } } return copy; }
public void setXalAddress(XalAddressProperty xalAddress) { if (xalAddress != null) xalAddress.setParent(this); this.xalAddress = xalAddress; }