Exemplo n.º 1
0
  @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;
  }
Exemplo n.º 2
0
  public void setXalAddress(XalAddressProperty xalAddress) {
    if (xalAddress != null) xalAddress.setParent(this);

    this.xalAddress = xalAddress;
  }